From 16be943139e9e511962a6af57a428eaabfc5a16a Mon Sep 17 00:00:00 2001 From: root Date: Sat, 9 Sep 2017 10:35:50 -0400 Subject: [PATCH] Sn1per by 1N3CrowdShield --- install.sh | 6 +++--- sniper | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index a5be1e5..74ecbc0 100644 --- a/install.sh +++ b/install.sh @@ -32,7 +32,7 @@ mkdir $LOOT_DIR/screenshots 2> /dev/null mkdir $LOOT_DIR/nmap 2> /dev/null mkdir $LOOT_DIR/reports 2> /dev/null mkdir $LOOT_DIR/output 2> /dev/null -cp -Rf $PWD/* $INSTALL_DIR +cp -Rf $PWD/* $INSTALL_DIR 2> /dev/null cd $INSTALL_DIR echo -e "$OKORANGE + -- --=[Installing package dependencies...$RESET" @@ -45,7 +45,7 @@ gem install ruby-nmap net-http-persistent mechanize text-table echo -e "$OKORANGE + -- --=[Cleaning up old extensions...$RESET" rm -Rf Findsploit/ BruteX/ Goohak/ XSSTracer/ MassBleed/ SuperMicro-Password-Scanner/ CMSmap/ yasuo/ Sublist3r/ shocker/ jexboss/ serializekiller/ testssl.sh/ SimpleEmailSpoofer/ ssh-audit/ plugins/ 2> /dev/null -mkdir $PLUGINS_DIR +mkdir $PLUGINS_DIR 2> /dev/null cd $PLUGINS_DIR mkdir -p $PLUGINS_DIR/nmap_scripts/ 2> /dev/null @@ -67,7 +67,7 @@ git clone https://github.com/arthepsy/ssh-audit git clone https://github.com/m0rtem/CloudFail.git wget https://svn.nmap.org/nmap/scripts/http-vuln-cve2017-5638.nse -O /usr/share/nmap/scripts/http-vuln-cve2017-5638.nse wget https://raw.githubusercontent.com/xorrbit/nmap/865142904566e416944ebd6870d496c730934965/scripts/http-vuln-INTEL-SA-00075.nse -O /usr/share/nmap/scripts/http-vuln-INTEL-SA-00075.nse -cp $INSTALL_DIR/bin/iis-buffer-overflow.nse /usr/share/nmap/scripts/iis-buffer-overflow.nse +cp $INSTALL_DIR/bin/iis-buffer-overflow.nse /usr/share/nmap/scripts/iis-buffer-overflow.nse 2> /dev/null echo -e "$OKORANGE + -- --=[Setting up environment...$RESET" cd $PLUGINS_DIR/CloudFail/ && apt-get install python3-pip && pip3 install -r requirements.txt cd $PLUGINS_DIR/Findsploit/ && bash install.sh diff --git a/sniper b/sniper index 74a6c83..1d226d3 100755 --- a/sniper +++ b/sniper @@ -169,6 +169,11 @@ function update { fi } +if [ "$TARGET" = "update" ]; then + update + exit +fi + function init { mkdir -p $LOOT_DIR 2> /dev/null mkdir $LOOT_DIR/domains 2> /dev/null