diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2013-04-20 10:15:30 +0200 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2013-04-20 10:15:30 +0200 |
commit | 06fd0cff83db2a0c98c13976ef7df2a643750a10 (patch) | |
tree | aef9b81dbd9645d531892a7c26411b5ae874ff42 /toys/brhute/pphidden.py | |
parent | brhute: add a few more spikes (diff) | |
download | laurent-tools-06fd0cff83db2a0c98c13976ef7df2a643750a10.tar.xz laurent-tools-06fd0cff83db2a0c98c13976ef7df2a643750a10.zip |
brhute: move to dedicated dir
Diffstat (limited to 'toys/brhute/pphidden.py')
-rw-r--r-- | toys/brhute/pphidden.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/toys/brhute/pphidden.py b/toys/brhute/pphidden.py new file mode 100644 index 0000000..cef18e2 --- /dev/null +++ b/toys/brhute/pphidden.py @@ -0,0 +1,29 @@ +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) + +s = requests.Session() + +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 = s.get(url) + print r.status_code + if r.status_code != 404: + print "[*] found !" + sys.exit(0) + # time.sleep(0.2) +sys.exit(1) |