blob: cef18e2506d09bda0a0464f14eec2e262501ddfd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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)
|