Initial Commit

This commit is contained in:
eneller
2025-11-15 08:08:19 +01:00
commit b2ebb960a5
4 changed files with 39 additions and 0 deletions

17
wifi4eu.login Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
# auto-login for https://wifi4eu.ec.europa.eu or general fortigate
# initial request to get magic id
trm_fetch="$(command -v curl)"
trm_domain="http://10.0.1.1:1000"
magic="$($trm_fetch -Ls -o /dev/null -w '%{urle.query}' $trm_domain)"
echo "magic=$magic"
# log in
curl $trm_domain \
-X POST \
-L \
-H "Referer: http://10.10.0.1:1000/fgtauth?$magic" \
--data "4Tredir=https://krksistemi.hr/rijeka2/" \
--data "magic=$magic" \
--data "username=Disclaimer user" \
--data "password=123"