Proof of concept

This commit is contained in:
tim 2022-07-04 17:10:01 +09:30
commit d9520e1eec
1 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#!/bin/bash
number_plate="1"
curl --silent 'https://account.ezyreg.sa.gov.au/r/veh/an/checkRegistration' -H 'Content-Type: application/json' -H 'Referer: https://account.ezyreg.sa.gov.au/account/check-registration.htm' -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36' --data-raw '{"plateNumber":"'$number_plate'","registrationType":"VEHICLE"}' --compressed | jq -r .checkRegistrationDetails[].expiryDate