-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from NullArray/dev-beta
Release 2.2
- Loading branch information
Showing
21 changed files
with
444 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ hosts.txt | |
secret.p | ||
uid.p | ||
etc/tokens/* | ||
autosploit_out/* | ||
venv/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Use as a strating point to spin up a box in lightsail. | ||
# the vagrant-lightsail plugin is required | ||
# You probably also need to: | ||
# - Configure the ssh keys path | ||
# - Install and configure the aws-cli package | ||
|
||
Vagrant.configure('2') do |config| | ||
config.vm.synced_folder ".", "/vagrant", type: "rsync", | ||
rsync__exclude: ".git/", | ||
rsync__auto: true | ||
|
||
config.ssh.private_key_path = '/path/to/id_rsa' | ||
config.ssh.username = 'ubuntu' | ||
config.vm.box = 'lightsail' | ||
config.vm.box_url = 'https://github.com/thejandroman/vagrant-lightsail/raw/master/box/lightsail.box' | ||
config.vm.hostname = 'autosploit-launcher' | ||
|
||
config.vm.provider :lightsail do |provider, override| | ||
provider.port_info = [{ from_port: 0, to_port: 65535, protocol: | ||
'all' }] | ||
provider.keypair_name = 'id_rsa' | ||
provider.bundle_id = 'small_1_0' | ||
end | ||
|
||
config.vm.provision "bootstrap", type: "shell", run: "once" do |s| | ||
s.path = "./bootstrap/bootstrap.sh" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
echo "Yolosploit configurator 2.42" | ||
sudo apt-get --yes update | ||
sudo apt-get --yes upgrade | ||
|
||
echo "Installing metasploit. BE PATIENT (5 min max?)" | ||
wget --quiet https://downloads.metasploit.com/data/releases/metasploit-latest-linux-x64-installer.run | ||
chmod +x metasploit-latest-linux-x64-installer.run | ||
sudo ./metasploit-latest-linux-x64-installer.run --unattendedmodeui none --prefix /opt/msf --mode unattended | ||
|
||
echo "Installing python2" | ||
sudo apt-get --yes install python python-pip python-virtualenv git | ||
|
||
sudo apt-get --yes install fish | ||
sudo chsh -s /usr/bin/fish ubuntu | ||
|
||
cd ~ | ||
git clone https://github.com/NullArray/AutoSploit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
from autosploit.main import main | ||
from lib.output import error | ||
|
||
|
||
if __name__ == "__main__": | ||
main() | ||
try: | ||
main() | ||
except KeyboardInterrupt: | ||
error("user aborted session") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
if [[ $# -lt 1 ]]; then | ||
echo "Syntax:" | ||
echo -e "\t./dryrun_autosploit.sh <search_query> [whitelist]" | ||
exit 1 | ||
fi | ||
|
||
echo -e "[!] Make sure you are not on your localhost while running this script, press enter to continue"; | ||
read | ||
|
||
WHITELIST=$2 | ||
SEARCH_QUERY=$1 | ||
LPORT=4444 | ||
|
||
LHOST=`dig +short @resolver1.opendns.com myip.opendns.com` | ||
TIMESTAMP=`date +%s` | ||
|
||
|
||
if [ ! $WHITELIST ]; then | ||
echo "executing: python autosploit.py -s -c -q \"${SEARCH_QUERY}\" --overwrite -C \"msf_autorun_${TIMESTAMP}\" $LHOST $LPORT --exploit-file-to-use etc/json/default_modules.json --dry-run -e" | ||
|
||
python autosploit.py -s -c -q "${SEARCH_QUERY}" --overwrite -C "msf_autorun_${TIMESTAMP}" $LHOST $LPORT --exploit-file-to-use etc/json/default_modules.json --dry-run -e | ||
else | ||
echo "executing: python autosploit.py -s -c -q \"${SEARCH_QUERY}\" --overwrite --whitelist $WHITELIST -e -C \"msf_autorun_${TIMESTAMP}\" $LHOST $LPORT --exploit-file-to-use etc/json/default_modules.json --dry-run -e" | ||
|
||
python autosploit.py -s -c -q "${SEARCH_QUERY}" --overwrite --whitelist $WHITELIST -e -C "msf_autorun_${TIMESTAMP}" $LHOST $LPORT --exploit-file-to-use etc/json/default_modules.json --dry-run -e | ||
fi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"exploits": [ | ||
"auxiliary/fuzzers/dns/dns_fuzzer", | ||
"auxiliary/fuzzers/ftp/client_ftp", | ||
"auxiliary/fuzzers/ftp/ftp_pre_post", | ||
"auxiliary/fuzzers/http/http_form_field", | ||
"auxiliary/fuzzers/http/http_get_uri_long", | ||
"auxiliary/fuzzers/http/http_get_uri_strings", | ||
"auxiliary/fuzzers/ntp/ntp_protocol_fuzzer", | ||
"auxiliary/fuzzers/smb/smb2_negotiate_corrupt", | ||
"auxiliary/fuzzers/smb/smb_create_pipe", | ||
"auxiliary/fuzzers/smb/smb_create_pipe_corrupt", | ||
"auxiliary/fuzzers/smb/smb_negotiate_corrupt ", | ||
"auxiliary/fuzzers/smb/smb_ntlm1_login_corrupt", | ||
"auxiliary/fuzzers/smb/smb_tree_connect", | ||
"auxiliary/fuzzers/smb/smb_tree_connect_corrupt", | ||
"auxiliary/fuzzers/smtp/smtp_fuzzer", | ||
"auxiliary/fuzzers/ssh/ssh_kexinit_corrupt", | ||
"auxiliary/fuzzers/ssh/ssh_version_15", | ||
"auxiliary/fuzzers/ssh/ssh_version_2", | ||
"auxiliary/fuzzers/ssh/ssh_version_corrupt", | ||
"auxiliary/fuzzers/tds/tds_login_corrupt", | ||
"auxiliary/fuzzers/tds/tds_login_username" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.