TVT618

AutoSploit - Automated Mass Exploiter of Remote Hosts

May 29th, 2018
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.42 KB | None | 0 0
  1. AutoSploit - Automated Mass Exploiter of Remote Hosts
  2. As the name might suggest AutoSploit attempts to automate the exploitation of remote hosts. Targets can be collected automatically through Shodan, Censys or Zoomeye. But options to add your custom targets and host lists have been included as well. The available Metasploit modules have been selected to facilitate Remote Code Execution and to attempt to gain Reverse TCP Shells and/or Meterpreter sessions. Workspace, local host and local port for MSF facilitated back connections are configured by filling out the dialog that comes up before the exploit component is started.
  3.  
  4. Operational Security Consideration
  5. Receiving back connections on your local machine might not be the best idea from an OPSEC standpoint. Instead consider running this tool from a VPS that has all the dependencies required, available.
  6. The new version of AutoSploit has a feature that allows you to set a proxy before you connect and a custom user-agent.
  7.  
  8. Request: GitHackTools recommends that you should install AutoSploit on Pentest OS like Kali Linux or Parrot Security OS
  9. * Metasploit
  10. * Shodan API. Sign up for Shodan account to get the API here: https://secure.link/lRWG60O3
  11. * Censys ID and API. Sign up for Censys account to get the API and ID here: https://secure.link/ldKUTxGE
  12. Helpful links
  13. Usage: https://github.com/NullArray/AutoSploit#usage
  14. Installing: https://github.com/NullArray/AutoSploit#Installation
  15. Dependencies: https://github.com/NullArray/AutoSploit#dependencies
  16. User Manual: https://github.com/NullArray/AutoSploit/wiki
  17. * Extensive usage breakdown: https://github.com/NullArray/AutoSploit/wiki/Usage#usage-options
  18. * Screenshots: https://github.com/NullArray/AutoSploit/wiki/Examples-and-images
  19. * Reporting bugs/ideas: https://github.com/NullArray/AutoSploit/wiki/Bugs-and-ideas#bugs
  20. * Development guidelines: https://github.com/NullArray/AutoSploit/wiki/Development-information#development-of-autosploit
  21. Shoutouts: https://github.com/NullArray/AutoSploit#acknowledgements
  22. Development: https://github.com/NullArray/AutoSploit#active-development
  23. Discord server: https://discord.gg/9BeeZQk
  24. README translations: https://github.com/NullArray/AutoSploit#translations
  25.  
  26. Install on Linux: GitHackTools recommends that you should install AutoSploit on Pentest OS like Kali Linux or Parrot Security OS
  27. git clone https://github.com/NullArray/Autosploit
  28. chmod +x install.sh
  29. sudo ./install.sh
  30. sudo python autosploit.py
  31.  
  32. Install on Docker
  33. git clone https://github.com/NullArray/AutoSploit.git
  34. cd AutoSploit
  35. chmod +x install.sh
  36. sudo ./install.sh
  37. cd Docker
  38. sudo docker network create -d bridge haknet
  39. sudo docker run --network haknet --name msfdb -e POSTGRES_PASSWORD=s3cr3t -d postgres
  40. sudo docker build -t autosploit .
  41. sudo docker run -it --network haknet -p 80:80 -p 443:443 -p 4444:4444 autosploit
  42.  
  43. More information on running Docker can be found here: https://github.com/NullArray/AutoSploit/tree/master/Docker
  44.  
  45. Usage
  46. Starting the program with python autosploit.py will open an AutoSploit terminal session. The options for which are as follows.
  47.  
  48. 1. Usage And Legal
  49. 2. Gather Hosts
  50. 3. Custom Hosts
  51. 4. Add Single Host
  52. 5. View Gathered Hosts
  53. 6. Exploit Gathered Hosts
  54. 99. Quit
  55.  
  56. Choosing option 2 will prompt you for a platform specific search query. Enter IIS or Apache in example and choose a search engine. After doing so the collected hosts will be saved to be used in the Exploit component.
  57.  
  58. As of version 2.0 AutoSploit can be started with a number of command line arguments/flags as well. Type python autosploit.py -h to display all the options available to you. I've posted the options below as well for reference.
  59.  
  60. usage: python autosploit.py -[c|z|s|a] -[q] QUERY
  61. [-C] WORKSPACE LHOST LPORT [-e] [--whitewash] PATH
  62. [--ruby-exec] [--msf-path] PATH [-E] EXPLOIT-FILE-PATH
  63. [--rand-agent] [--proxy] PROTO://IP:PORT [-P] AGENT
  64.  
  65. optional arguments:
  66. -h, --help show this help message and exit
  67.  
  68. search engines:
  69. possible search engines to use
  70.  
  71. -c, --censys use censys.io as the search engine to gather hosts
  72. -z, --zoomeye use zoomeye.org as the search engine to gather hosts
  73. -s, --shodan use shodan.io as the search engine to gather hosts
  74. -a, --all search all available search engines to gather hosts
  75.  
  76. requests:
  77. arguments to edit your requests
  78.  
  79. --proxy PROTO://IP:PORT
  80. run behind a proxy while performing the searches
  81. --random-agent use a random HTTP User-Agent header
  82. -P USER-AGENT, --personal-agent USER-AGENT
  83. pass a personal User-Agent to use for HTTP requests
  84. -q QUERY, --query QUERY
  85. pass your search query
  86.  
  87. exploits:
  88. arguments to edit your exploits
  89.  
  90. -E PATH, --exploit-file PATH
  91. provide a text file to convert into JSON and save for
  92. later use
  93. -C WORKSPACE LHOST LPORT, --config WORKSPACE LHOST LPORT
  94. set the configuration for MSF (IE -C default 127.0.0.1
  95. 8080)
  96. -e, --exploit start exploiting the already gathered hosts
  97.  
  98. misc arguments:
  99. arguments that don't fit anywhere else
  100.  
  101. --ruby-exec if you need to run the Ruby executable with MSF use
  102. this
  103. --msf-path MSF-PATH pass the path to your framework if it is not in your
  104. ENV PATH
  105. --whitelist PATH only exploit hosts listed in the whitelist file
  106.  
  107. Dependencies
  108. Note: All dependencies should be installed using the above installation method, however, if you find they are not:
  109.  
  110. AutoSploit depends on the following Python2.7 modules.
  111. * requests
  112. * psutil
  113.  
  114. Should you find you do not have these installed get them with pip like so.
  115. sudo pip install requests psutil
  116. or...
  117. sudo pip install -r requirements.txt
  118.  
  119. Since the program invokes functionality from the Metasploit Framework you need to have this installed also. Get it from Rapid7 by clicking here.
  120.  
  121. Acknowledgements
  122. Special thanks to Ekultek without whoms contributions to the project version 2.0 would have been a lot less spectacular.
  123. And thanks to Khast3x for setting up Docker support.
  124.  
  125. Active Development
  126. While this isn't exactly a Beta release, AutoSploit 2.0 is an early release nonetheless as such the tool might be subject to changes in the future.
  127. I've been working on the new version of the tool in an open source capacity with the help of a number of developers that have expressed an interest in doing so. If you would like to keep up to date on all the most recent developments be sure to check out the Development Branch.
  128. If you would like to contribute to the development of this project please be sure to read CONTRIBUTING.md as it contains our contribution guidelines.
  129.  
  130. Please, also, be sure to read our contribution standards before sending pull requests
  131.  
  132. If you need some help understanding the code, or want to chat with some other AutoSploit community members, feel free to join our Discord server.
  133.  
  134. Note: If you happen to encounter a bug please feel free to Open a Ticket.
  135.  
  136. Thanks in advance.
  137.  
  138. Translations: Chinese and French
  139.  
  140. Download AutoSploit: https://github.com/NullArray/AutoSploit
Advertisement
Add Comment
Please, Sign In to add comment