$ python3 scanner.py http://www.example.com/forum
#!/usr/bin/python3
import urllib.request, re, sys
host = sys.argv[1]
try:
l = urllib.request.urlopen('http://punbb.informer.com/svn/additions/punbb-1.3/extensions/')
except urllib.error.HTTPError:
print('Cannot enumerate available extensions from http://punbb.informer.com/')
exit()
e = l.read().decode()
e = re.sub('<.*?>', '', e)
e = re.findall('(pun_.*/)', e)
for i in e:
try:
urllib.request.urlopen(host + '/extensions/' + i)
print('YES - ' + i)
except urllib.error.HTTPError:
print('NO - ' + i)
0 comments:
Post a Comment