diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2013-04-15 20:37:58 +0200 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2013-04-15 20:37:58 +0200 |
commit | 1ac2bdb0ade8ec9a58a9ec71582f88f1c5957e90 (patch) | |
tree | ac3374c9c185ea0a177dd5bf34d6e0e529d17191 /toys | |
parent | viensamoi: nicer references in README (diff) | |
download | laurent-tools-1ac2bdb0ade8ec9a58a9ec71582f88f1c5957e90.tar.xz laurent-tools-1ac2bdb0ade8ec9a58a9ec71582f88f1c5957e90.zip |
add toys/pphidden.py
Diffstat (limited to 'toys')
-rw-r--r-- | toys/pphidden.py | 27 |
1 files changed, 27 insertions, 0 deletions
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) |