This commit is contained in:
eneller
2025-11-21 23:35:13 +01:00
parent b2ebb960a5
commit bd33f56ad6
3 changed files with 3 additions and 18 deletions

2
Makefile Normal file
View File

@@ -0,0 +1,2 @@
deploy:
rsync -a *.login router:/etc/travelmate

16
curl.sh
View File

@@ -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'

View File

@@ -4,13 +4,12 @@
trm_fetch="$(command -v curl)" trm_fetch="$(command -v curl)"
trm_domain="http://10.0.1.1:1000" trm_domain="http://10.0.1.1:1000"
magic="$($trm_fetch -Ls -o /dev/null -w '%{urle.query}' $trm_domain)" magic="$($trm_fetch -Ls -o /dev/null -w '%{urle.query}' $trm_domain)"
echo "magic=$magic"
# log in # log in
curl $trm_domain \ curl $trm_domain \
-X POST \ -X POST \
-L \ -L \
-H "Referer: http://10.10.0.1:1000/fgtauth?$magic" \ -H "Referer: $trm_domain/fgtauth?$magic" \
--data "4Tredir=https://krksistemi.hr/rijeka2/" \ --data "4Tredir=https://krksistemi.hr/rijeka2/" \
--data "magic=$magic" \ --data "magic=$magic" \
--data "username=Disclaimer user" \ --data "username=Disclaimer user" \