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
Operational Security Consideration
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.
The new version of AutoSploit has a feature that allows you to set a proxy before you connect and a custom user-agent.
Clone the repo. Or deploy via Docker. Details for which can be found here
git clone https://github.com/NullArray/AutoSploit.git
Starting the program with
python autosploit.pywill open an AutoSploit terminal session. The options for which are as follows.
1. Usage And Legal
2. Gather Hosts
3. Custom Hosts
4. Add Single Host
5. View Gathered Hosts
6. Exploit Gathered Hosts
2will prompt you for a platform specific search query. Enter
Apachein example and choose a search engine. After doing so the collected hosts will be saved to be used in the
As of version 2.0 AutoSploit can be started with a number of command line arguments/flags as well. Type
python autosploit.py -hto display all the options available to you. I've posted the options below as well for reference.
usage: python autosploit.py -[c|z|s|a] -[q] QUERY
[-C] WORKSPACE LHOST LPORT [-e]
[--ruby-exec] [--msf-path] PATH [-E] EXPLOIT-FILE-PATH
[--rand-agent] [--proxy] PROTO://IP:PORT [-P] AGENT
-h, --help show this help message and exit
possible search engines to use
-c, --censys use censys.io as the search engine to gather hosts
-z, --zoomeye use zoomeye.org as the search engine to gather hosts
-s, --shodan use shodan.io as the search engine to gather hosts
-a, --all search all available search engines to gather hosts
arguments to edit your requests
run behind a proxy while performing the searches
--random-agent use a random HTTP User-Agent header
-P USER-AGENT, --personal-agent USER-AGENT
pass a personal User-Agent to use for HTTP requests
-q QUERY, --query QUERY
pass your search query
arguments to edit your exploits
-E PATH, --exploit-file PATH
provide a text file to convert into JSON and save for
-C WORKSPACE LHOST LPORT, --config WORKSPACE LHOST LPORT
set the configuration for MSF (IE -C default 127.0.0.1
-e, --exploit start exploiting the already gathered hosts
arguments that don't fit anywhere else
--ruby-exec if you need to run the Ruby executable with MSF use
--msf-path MSF-PATH pass the path to your framework if it is not in your
AutoSploit depends on the following Python2.7 modules.
Should you find you do not have these installed get them with pip like so.
pip install requests psutil
Since the program invokes functionality from the Metasploit Framework you need to have this installed also. Get it from Rapid7 by clicking here.
pip install -r requirements.txt