From 1ac2bdb0ade8ec9a58a9ec71582f88f1c5957e90 Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Mon, 15 Apr 2013 20:37:58 +0200 Subject: add toys/pphidden.py --- toys/pphidden.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 toys/pphidden.py (limited to 'toys') diff --git a/toys/pphidden.py b/toys/pphidden.py new file mode 100644 index 0000000..14419aa --- /dev/null +++ b/toys/pphidden.py @@ -0,0 +1,27 @@ +import requests +import time +import sys + +# http://www.pointerpointer.com/gridPositions.json + +BASE_URL="http://www.pointerpointer.com/images" + +image = int(sys.argv[1]) +sx = int(sys.argv[2]) +sy = int(sys.argv[3]) + +print ">>> Looking for image %d <<<" % image +print ">>>> starting x=%d y=%d <<<<" % (sx, sy) + +for x in range(sx, 2000): + for y in range(sy, 2000): + url = "%s/N%04d_%d_%d.jpg" % (BASE_URL, image, x, y) + sys.stdout.write("[-] %s: " % url) + sys.stdout.flush() + r = requests.get(url) + print r.status_code + if r.status_code != 404: + print "[*] found !" + sys.exit(0) + time.sleep(0.2) +sys.exit(1) -- cgit v1.2.3-59-g8ed1b