Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!bin/bash
- # make GET request, save the resulting page in out.txt and get
- # the string with two numbers
- string=`curl -s --header "X-0x0ACE-Key: rqpRWeogGbrv69RMpWzEdLeNjPam0XkJYe3lo1OJKqYZQ285y4nwAVkxDbalPn5K" http://5.9.247.121/d34dc0d3 | tee out.txt | grep "</span><br /><br /><br />"`
- echo end curl
- # Finish of parsing of interesting numbers
- first=`echo $string | awk '{print $1}' | cut -d'[' -f2 | cut -d',' -f1`
- second=`echo $string | awk '{print $3}' | cut -d']' -f1`
- # Estimate mid prime
- echo prime
- mid_prime=`./prime_all $first $second`
- echo end prime
- # Compose resulting list of numbers
- solution=${mid_prime::-1}
- # Parse the same GET request result to obtain the "verification"
- # string
- verification=`cat out.txt | grep hidden | awk '{print $4}' | cut -d'"' -f2`
- echo sending
- curl -v -i -H "Expect:" --header "X-0x0ACE-Key: rqpRWeogGbrv69RMpWzEdLeNjPam0XkJYe3lo1OJKqYZQ285y4nwAVkxDbalPn5K" http://5.9.247.121/d34dc0d3 --data "verification=$verification&solution=$solution"
Advertisement
Add Comment
Please, Sign In to add comment