Created
August 25, 2019 22:43
-
-
Save Arefu/87d95dca68abce2a13f6d6e10967c912 to your computer and use it in GitHub Desktop.
KAMAR's Parent Portal Account Unblocker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Give This Script A Username, Fill In The Password and Parent Portal Address And It Will Do The Rest. | |
# k8d3b9d2b374d1c768b5996e5e2553ccc May Change! It Was Static For Me! It's A Hidden Input On The Login Page. | |
# Use Fiddler Or Alternative Tool To Find Your Hash (Might Be School Specific?) | |
# | |
param ([string]$UserName) | |
$userAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0" | |
$headers = @{"Host"="<FILL>"; "Accept"="text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8";"Referer"="https://<FILL>/index.php/configure/login"; "Accept-Language"="en-GB,en;q=0.5"; "Accept-Encoding"="gzip, deflate, br";"Content-Type"="application/x-www-form-urlencoded";"Upgrade-Insecure-Requests"="1"} | |
$Reply = Invoke-WebRequest "https://<FILL>/index.php/configure/login" -SessionVariable Portal -Headers $headers -UserAgent $userAgent | |
$Reply.RawContent -match "[a-f0-9]{32}" | Out-Null | |
Invoke-WebRequest "https://<FILL>/index.php/configure/login" -UserAgent $userAgent -WebSession $Portal -Method Post -Body "k8d3b9d2b374d1c768b5996e5e2553ccc=$($Matches[0])&chicken=<USERNAME>&banana=<PASSWORD>" -Headers $headers | Out-Null | |
Invoke-WebRequest "https://<FILL>/index.php/configure/security?username=$($UserName)" -WebSession $Portal -Headers $headers -UserAgent $userAgent | Out-Null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment