From afa5f17a4203537854b84996a9fecb219c18686c Mon Sep 17 00:00:00 2001 From: eneller Date: Fri, 21 Nov 2025 23:35:13 +0100 Subject: [PATCH] refactor --- Makefile | 3 +++ curl.sh | 16 ---------------- wifi4eu.login | 3 +-- 3 files changed, 4 insertions(+), 18 deletions(-) create mode 100644 Makefile delete mode 100644 curl.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5523348 --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +default: deploy +deploy: + rsync -a *.login router:/etc/travelmate diff --git a/curl.sh b/curl.sh deleted file mode 100644 index 7b1da00..0000000 --- a/curl.sh +++ /dev/null @@ -1,16 +0,0 @@ -curl 'http://10.10.0.1:1000/' \ - -X POST \ - -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0' \ - -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \ - -H 'Accept-Language: en-US,en;q=0.5' \ - -H 'Accept-Encoding: gzip, deflate' \ - -H 'Content-Type: application/x-www-form-urlencoded' \ - -H 'Origin: http://10.10.0.1:1000' \ - -H 'Connection: keep-alive' \ - -H 'Referer: http://10.10.0.1:1000/fgtauth?007832616a57bf4e' \ - -H 'Cookie: pushedAt=Sun Nov 02 2025 07:39:17 GMT+0100 (Central European Standard Time)' \ - -H 'Upgrade-Insecure-Requests: 1' \ - -H 'Priority: u=0, i' \ - -H 'Pragma: no-cache' \ - -H 'Cache-Control: no-cache' \ - --data-raw '4Tredir=http%3A%2F%2Fkrksistemi.hr%2Frijeka2&magic=007832616a57bf4e&username=Disclaimer+user&password=123' diff --git a/wifi4eu.login b/wifi4eu.login index ac9dc11..fe31790 100755 --- a/wifi4eu.login +++ b/wifi4eu.login @@ -4,13 +4,12 @@ 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" \ + -H "Referer: $trm_domain/fgtauth?$magic" \ --data "4Tredir=https://krksistemi.hr/rijeka2/" \ --data "magic=$magic" \ --data "username=Disclaimer user" \