Created
September 10, 2015 09:02
-
-
Save flrngel/eb7fe7a5e2786c2abee4 to your computer and use it in GitHub Desktop.
ip2country
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
#!/bin/bash | |
for x in {0..255} | |
do | |
curl 'http://www.ip2nation.com/' -H 'Pragma: no-cache' -H 'Origin: http://www.ip2nation.com' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: ko-KR,ko;q=0.8,en-US;q=0.6,en;q=0.4' -H 'Upgrade-Insecure-Requests: 1' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8' -H 'Cache-Control: no-cache' -H 'Referer: http://www.ip2nation.com/' -H 'Cookie: PHPSESSID=0nma8bl5eee8q9locp9u0s31t4; __utmt=1; __utma=91541954.945369235.1441874069.1441874069.1441874069.1; __utmb=91541954.1.10.1441874069; __utmc=91541954; __utmz=91541954.1441874069.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided)' -H 'Connection: keep-alive' --data "ip=<아이피랑 변수x(달러x) 넣는곳>" --compressed | grep acronym; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment