Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import urllib as ul
- url = "https://www.shabak.gov.il/cybHrtHchnology/Pages/01110011-01101000-01100001-01100010-01100001-01101011-00000000-"
- url_end = ".aspx"
- for i in range(0,256):
- print "checking %d",i
- str = bin(i)
- str = str.replace("b","")
- str = str.zfill(8)
- url_cand = url + str + url_end
- print url_cand
- res = ul.urlopen(url_cand)
- res = res.readlines()
- try:
- res[4].index("Error")
- except:
- print(url_cand)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement