Last active
December 20, 2015 11:25
-
-
Save sidharthv96/4256a2800b23a727be1e to your computer and use it in GitHub Desktop.
Script to fetch the results. Save the file as results.sh. Enter your roll number inside the file. Execute the command chmod +x results.sh . Then run using ./results.sh
This file contains 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
id=$(date | md5 | head -c 26) | |
echo $id | |
mkdir "D$id" | |
for reg in {1..9} | |
do | |
echo -e "\n\n\n----------------------------------------------------------------------------------------\n$reg" | |
curl "http://202.88.252.21/CuPbhavan/res_newregentry.php?id=4789" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -H "Referer: http://202.88.252.21/CuPbhavan/curesultonline.php" -H "X-DevTools-Emulate-Network-Conditions-Client-Id: 77109F89-1E59-4D14-902A-4FEF1DEC0380" -H "Upgrade-Insecure-Requests: 1" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36" --compressed --data "regno=ETAOECS00$reg&sum=107&id=4789&sessionok=yes" --compressed -o 1.html | |
curl "http://202.88.252.21/CuPbhavan/res_newregentry.php" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -H "Referer: http://202.88.252.21/CuPbhavan/res_newregentry.php?id=4789" -H "Origin: http://202.88.252.21" -H "X-DevTools-Emulate-Network-Conditions-Client-Id: 77109F89-1E59-4D14-902A-4FEF1DEC0380" -H "Upgrade-Insecure-Requests: 1" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36" -H "Content-Type: application/x-www-form-urlencoded" -H "Cookie: PHPSESSID=$id" --data "regno=ETAOECS00$reg&sum=115&id=4789&sessionok=yes" --compressed -o 2.html | |
curl "http://202.88.252.21/CuPbhavan/rs_newcheck.php" -H "Host: 202.88.252.21" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.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" --compressed -H "Referer: http://202.88.252.21/CuPbhavan/res_newregentry.php" -H "Cookie: PHPSESSID=$id" -H "Connection: keep-alive" -o 3.html | |
curl "http://202.88.252.21/CuPbhavan/cubtech7/sugrres.php" -H "Host: 202.88.252.21" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.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" --compressed -H "Referer: http://202.88.252.21/CuPbhavan/rs_newcheck.php" -H "Cookie: PHPSESSID=$id" -H "Connection: keep-alive" -o 4.html | |
curl "http://202.88.252.21/CuPbhavan/cubtech7/barch_res.php" -H "Host: 202.88.252.21" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.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" --compressed -H "Referer: http://202.88.252.21/CuPbhavan/curesults.php" -H "Cookie: PHPSESSID=$id" -H "Connection: keep-alive" --compressed -o "D$id/$reg.pdf" | |
done | |
for reg in {10..72} | |
do | |
echo -e "\n\n\n----------------------------------------------------------------------------------------\n$reg" | |
curl "http://202.88.252.21/CuPbhavan/res_newregentry.php?id=4789" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -H "Referer: http://202.88.252.21/CuPbhavan/curesultonline.php" -H "X-DevTools-Emulate-Network-Conditions-Client-Id: 77109F89-1E59-4D14-902A-4FEF1DEC0380" -H "Upgrade-Insecure-Requests: 1" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36" --compressed --data "regno=ETAOECS0$reg&sum=107&id=4789&sessionok=yes" --compressed -o 1.html | |
curl "http://202.88.252.21/CuPbhavan/res_newregentry.php" -H "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8" -H "Referer: http://202.88.252.21/CuPbhavan/res_newregentry.php?id=4789" -H "Origin: http://202.88.252.21" -H "X-DevTools-Emulate-Network-Conditions-Client-Id: 77109F89-1E59-4D14-902A-4FEF1DEC0380" -H "Upgrade-Insecure-Requests: 1" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36" -H "Content-Type: application/x-www-form-urlencoded" -H "Cookie: PHPSESSID=$id" --data "regno=ETAOECS0$reg&sum=115&id=4789&sessionok=yes" --compressed -o 2.html | |
curl "http://202.88.252.21/CuPbhavan/rs_newcheck.php" -H "Host: 202.88.252.21" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.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" --compressed -H "Referer: http://202.88.252.21/CuPbhavan/res_newregentry.php" -H "Cookie: PHPSESSID=$id" -H "Connection: keep-alive" -o 3.html | |
curl "http://202.88.252.21/CuPbhavan/cubtech7/sugrres.php" -H "Host: 202.88.252.21" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.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" --compressed -H "Referer: http://202.88.252.21/CuPbhavan/rs_newcheck.php" -H "Cookie: PHPSESSID=$id" -H "Connection: keep-alive" -o 4.html | |
curl "http://202.88.252.21/CuPbhavan/cubtech7/barch_res.php" -H "Host: 202.88.252.21" -H "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.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" --compressed -H "Referer: http://202.88.252.21/CuPbhavan/curesults.php" -H "Cookie: PHPSESSID=$id" -H "Connection: keep-alive" --compressed -o "D$id/$reg.pdf" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment