From acabacdf84690ca190e80efceaebcb9ce1863100 Mon Sep 17 00:00:00 2001 From: WP Engine Marketing Date: Wed, 8 May 2019 09:22:29 -0700 Subject: [PATCH] Sn1per Community Edition by @xer0dayz - https://xerosecurity.com --- modes/airstrike.sh | 4 ++-- modes/bruteforce.sh | 4 ++-- modes/discover.sh | 4 ++-- modes/flyover.sh | 4 ++-- modes/fullportonly.sh | 4 ++-- modes/fullportscan.sh | 4 ++-- modes/normal.sh | 7 ++++--- modes/normal_webporthttp.sh | 5 +++-- modes/normal_webporthttps.sh | 5 +++-- modes/nuke.sh | 4 ++-- modes/osint.sh | 4 ++-- modes/osint_stage_2.sh | 4 ++-- modes/recon.sh | 4 ++-- modes/stealth.sh | 6 ++++-- modes/web.sh | 3 --- modes/web_autopwn.sh | 4 ++-- modes/webporthttp.sh | 5 +++-- modes/webporthttps.sh | 5 +++-- modes/webscan.sh | 4 ++-- 19 files changed, 44 insertions(+), 40 deletions(-) diff --git a/modes/airstrike.sh b/modes/airstrike.sh index c9b8d14b..b66b3afb 100644 --- a/modes/airstrike.sh +++ b/modes/airstrike.sh @@ -62,7 +62,7 @@ if [ "$MODE" = "airstrike" ]; then echo "$TARGET $MODE `date +"%Y-%m-%d %H:%M"`" 2> /dev/null >> $LOOT_DIR/scans/tasks.txt 2> /dev/null echo "sniper -t $TARGET -m $MODE --noreport $args" >> $LOOT_DIR/scans/$TARGET-$MODE.txt if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Starting scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi sniper $args | tee $WORKSPACE_DIR/output/sniper-$TARGET-$MODE-`date +"%Y%m%d%H%M"`.txt 2>&1 else @@ -77,7 +77,7 @@ if [ "$MODE" = "airstrike" ]; then loot fi if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Scan completed: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi exit fi diff --git a/modes/bruteforce.sh b/modes/bruteforce.sh index 2780a682..56dd9d59 100644 --- a/modes/bruteforce.sh +++ b/modes/bruteforce.sh @@ -7,7 +7,7 @@ else echo -e "$OKRED RUNNING BRUTE FORCE $RESET" echo -e "${OKGREEN}====================================================================================${RESET}" if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Running brute force: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per brute force: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi brutex $TARGET | tee $LOOT_DIR/credentials/brutex-$TARGET 2> /dev/null sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g" $LOOT_DIR/credentials/brutex-$TARGET 2> /dev/null > $LOOT_DIR/credentials/brutex-$TARGET.txt 2> /dev/null @@ -17,6 +17,6 @@ else rm -f scan.log echo "" if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Finished brute force: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per brute force: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi fi \ No newline at end of file diff --git a/modes/discover.sh b/modes/discover.sh index 85e36c9f..b130d9f6 100644 --- a/modes/discover.sh +++ b/modes/discover.sh @@ -18,7 +18,7 @@ if [ "$MODE" = "discover" ]; then echo "$TARGET $MODE `date +"%Y-%m-%d %H:%M"`" 2> /dev/null >> $LOOT_DIR/scans/tasks.txt 2> /dev/null echo "sniper -t $TARGET -m $MODE --noreport $args" >> $LOOT_DIR/scans/$OUTFILE-$MODE.txt 2> /dev/null if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Starting scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi sniper -t $TARGET -m $MODE --noreport $args | tee $LOOT_DIR/output/sniper-$MODE-`date +"%Y%m%d%H%M"`.txt 2>&1 exit @@ -62,7 +62,7 @@ if [ "$MODE" = "discover" ]; then echo -e "$OKRED SCAN COMPLETE! $RESET" echo -e "${OKGREEN}====================================================================================${RESET}" if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Scan completed: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi sniper -f $LOOT_DIR/ips/discover-$OUT_FILE-sorted.txt -m flyover -w $WORKSPACE exit diff --git a/modes/flyover.sh b/modes/flyover.sh index 314fe118..de2006d3 100644 --- a/modes/flyover.sh +++ b/modes/flyover.sh @@ -38,7 +38,7 @@ if [ "$MODE" = "flyover" ]; then echo "sniper -f $FILE -m $MODE --noreport $args" >> $LOOT_DIR/scans/$WORKSPACE-$MODE.txt sniper $args | tee $WORKSPACE_DIR/output/sniper-$WORKSPACE-$MODE-`date +"%Y%m%d%H%M"`.txt 2>&1 if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python /usr/share/sniper/bin/slack.py "Starting scan: $FILE $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per scan: $FILE [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi args="" @@ -102,7 +102,7 @@ if [ "$MODE" = "flyover" ]; then loot fi if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Scan completed: $FILE $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per scan: $FILE [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi fi exit diff --git a/modes/fullportonly.sh b/modes/fullportonly.sh index e14fce10..1891f7d4 100644 --- a/modes/fullportonly.sh +++ b/modes/fullportonly.sh @@ -25,7 +25,7 @@ if [ "$MODE" = "fullportonly" ]; then logo if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Starting scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi echo "$TARGET" >> $LOOT_DIR/domains/targets.txt if [ -z "$PORT" ]; then @@ -63,7 +63,7 @@ if [ "$MODE" = "fullportonly" ]; then echo -e "${OKGREEN}====================================================================================${RESET}" echo "$TARGET" >> $LOOT_DIR/scans/updated.txt if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Scan completed: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi loot exit diff --git a/modes/fullportscan.sh b/modes/fullportscan.sh index 8c5d89d0..410ea217 100644 --- a/modes/fullportscan.sh +++ b/modes/fullportscan.sh @@ -7,7 +7,7 @@ else echo -e "$OKRED PERFORMING TCP PORT SCAN $RESET" echo -e "${OKGREEN}====================================================================================${RESET}" if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Running full port scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per full portscan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi nmap -vv -sT -sV -O -A -T4 -oX $LOOT_DIR/nmap/nmap-$TARGET-fullport.xml -p $FULL_PORTSCAN_PORTS $TARGET | tee $LOOT_DIR/nmap/nmap-$TARGET cp -f $LOOT_DIR/nmap/nmap-$TARGET-fullport.xml $LOOT_DIR/nmap/nmap-$TARGET.xml 2> /dev/null @@ -21,6 +21,6 @@ else sed -r "s/ /dev/null > $LOOT_DIR/nmap/nmap-$TARGET-udp.txt 2> /dev/null rm -f $LOOT_DIR/nmap/nmap-$TARGET 2> /dev/null if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Finished brute force: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per full portscan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi fi \ No newline at end of file diff --git a/modes/normal.sh b/modes/normal.sh index 008f3abf..7565cf20 100644 --- a/modes/normal.sh +++ b/modes/normal.sh @@ -23,10 +23,11 @@ if [ "$REPORT" = "1" ]; then args="$args -w $WORKSPACE" fi args="$args --noreport" - echo "$TARGET $MODE `date +"%Y-%m-%d %H:%M"`" 2> /dev/null >> $LOOT_DIR/scans/tasks.txt 2> /dev/null + + echo "$TARGET normal `date +"%Y-%m-%d %H:%M"`" 2> /dev/null >> $LOOT_DIR/scans/tasks.txt 2> /dev/null echo "sniper -t $TARGET -m $MODE --noreport $args" >> $LOOT_DIR/scans/$TARGET-normal.txt if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Starting scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per scan: $TARGET [normal] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi sniper $args | tee $LOOT_DIR/output/sniper-$TARGET-`date +"%Y%m%d%H%M"`.txt 2>&1 exit @@ -1203,7 +1204,7 @@ echo -e "$OKRED SCAN COMPLETE! $RESET" echo -e "${OKGREEN}====================================================================================${RESET}" echo "$TARGET" >> $LOOT_DIR/scans/updated.txt if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Scan completed: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per scan: $TARGET [normal] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi if [ "$LOOT" = "1" ] && [ -z "$NOLOOT" ]; then loot diff --git a/modes/normal_webporthttp.sh b/modes/normal_webporthttp.sh index 47898d97..8dc20008 100644 --- a/modes/normal_webporthttp.sh +++ b/modes/normal_webporthttp.sh @@ -1,6 +1,6 @@ if [ "$MODE" = "web" ]; then if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Running web mode scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per HTTP web scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi if [ "$PASSIVE_SPIDER" == "1" ]; then echo -e "${OKGREEN}====================================================================================${RESET}" @@ -23,6 +23,7 @@ if [ "$MODE" = "web" ]; then cat $LOOT_DIR/web/waybackurls-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null cat $LOOT_DIR/web/weblinks-http-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null cat $LOOT_DIR/web/passivespider-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null + sed -ir "s//dev/null fi if [ "$WEB_BRUTE_COMMONSCAN" == "1" ]; then echo -e "${OKGREEN}====================================================================================${RESET}" @@ -122,7 +123,7 @@ if [ "$MODE" = "web" ]; then cd $INSTALL_DIR fi if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Finished brute force: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per HTTP web scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi cd $INSTALL_DIR if [ "$METASPLOIT_EXPLOIT" == "1" ]; then diff --git a/modes/normal_webporthttps.sh b/modes/normal_webporthttps.sh index 9980a5ec..7b4651b3 100644 --- a/modes/normal_webporthttps.sh +++ b/modes/normal_webporthttps.sh @@ -1,6 +1,6 @@ if [ "$MODE" = "web" ]; then if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Running web mode scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per HTTPS web scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi if [ "$PASSIVE_SPIDER" == "1" ]; then echo -e "${OKGREEN}====================================================================================${RESET}" @@ -23,6 +23,7 @@ if [ "$MODE" = "web" ]; then cat $LOOT_DIR/web/waybackurls-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null cat $LOOT_DIR/web/weblinks-https-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null cat $LOOT_DIR/web/passivespider-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null + sed -ir "s//dev/null fi if [ "$WEB_BRUTE_COMMONSCAN" == "1" ]; then echo -e "${OKGREEN}====================================================================================${RESET}" @@ -121,7 +122,7 @@ if [ "$MODE" = "web" ]; then cd $INSTALL_DIR fi if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Finished web mode scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per HTTPS web scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi cd $INSTALL_DIR if [ "$METASPLOIT_EXPLOIT" == "1" ]; then diff --git a/modes/nuke.sh b/modes/nuke.sh index 137fc653..abde5426 100644 --- a/modes/nuke.sh +++ b/modes/nuke.sh @@ -43,7 +43,7 @@ if [ "$MODE" = "nuke" ]; then echo "$TARGET $MODE `date +"%Y-%m-%d %H:%M"`" 2> /dev/null >> $LOOT_DIR/scans/tasks.txt 2> /dev/null echo "sniper -t $TARGET -m $MODE --noreport $args" >> $LOOT_DIR/scans/$TARGET-$MODE.txt if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Starting scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi sniper $args | tee $WORKSPACE_DIR/output/sniper-$TARGET-$MODE-`date +"%Y%m%d%H%M"`.txt 2>&1 else @@ -60,7 +60,7 @@ if [ "$MODE" = "nuke" ]; then loot fi if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Scan completed: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi exit fi \ No newline at end of file diff --git a/modes/osint.sh b/modes/osint.sh index 9a54d244..526de737 100644 --- a/modes/osint.sh +++ b/modes/osint.sh @@ -1,6 +1,6 @@ if [ "$OSINT" = "1" ]; then if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Running OSINT: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per OSINT scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi echo -e "${OKGREEN}====================================================================================${RESET}" echo -e "$OKRED GATHERING WHOIS INFO $RESET" @@ -27,6 +27,6 @@ if [ "$OSINT" = "1" ]; then metagoofil -d $TARGET -t doc,pdf,xls,csv,txt -l 25 -n 25 -o $LOOT_DIR/osint/ -f $LOOT_DIR/osint/$TARGET.html 2> /dev/null | tee $LOOT_DIR/osint/metagoofil-$TARGET.txt 2> /dev/null fi if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Finished OSINT: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per OSINT scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi fi diff --git a/modes/osint_stage_2.sh b/modes/osint_stage_2.sh index 29451d98..2963f5e3 100644 --- a/modes/osint_stage_2.sh +++ b/modes/osint_stage_2.sh @@ -5,7 +5,7 @@ echo -e "${OKGREEN}====================================================================================${RESET}" else if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Running stage 2 OSINT check: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per stage 2 OSINT scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi if [ $GOOHAK = "1" ]; then echo -e "${OKGREEN}====================================================================================${RESET}" @@ -24,7 +24,7 @@ fi GHDB="1" if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Finished stage 2 OSINT check: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per stage 2 OSINT scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi fi fi diff --git a/modes/recon.sh b/modes/recon.sh index 45be718c..1283861e 100644 --- a/modes/recon.sh +++ b/modes/recon.sh @@ -1,6 +1,6 @@ if [ "$RECON" = "1" ]; then if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Running recon scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per recon scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi echo -e "${OKGREEN}====================================================================================${RESET}" echo -e "$OKRED GATHERING DNS SUBDOMAINS VIA SUBLIST3R $RESET" @@ -103,6 +103,6 @@ if [ "$RECON" = "1" ]; then curl -s -L --data "ip=$TARGET" https://2ip.me/en/services/information-service/provider-ip\?a\=act | grep -o -E '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/[0-9]{1,2}' | tee $LOOT_DIR/nmap/subnets-$TARGET.txt fi if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Finished recon scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per recon scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi fi \ No newline at end of file diff --git a/modes/stealth.sh b/modes/stealth.sh index 84137029..0054fefc 100644 --- a/modes/stealth.sh +++ b/modes/stealth.sh @@ -31,7 +31,7 @@ if [ "$MODE" = "stealth" ]; then echo "$TARGET $MODE `date +"%Y-%m-%d %H:%M"`" 2> /dev/null >> $LOOT_DIR/scans/tasks.txt 2> /dev/null echo "sniper -t $TARGET -m $MODE --noreport $args" >> $LOOT_DIR/scans/$TARGET-$MODE.txt if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Starting scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi sniper $args | tee $LOOT_DIR/output/sniper-$TARGET-$MODE-`date +"%Y%m%d%H%M"`.txt 2>&1 exit @@ -208,6 +208,7 @@ if [ "$MODE" = "stealth" ]; then cat /usr/share/blackwidow/$TARGET*/* > $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null cat $LOOT_DIR/web/waybackurls-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null cat $LOOT_DIR/web/passivespider-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null + sed -ir "s//dev/null fi if [ "$WEB_BRUTE_STEALTHSCAN" == "1" ]; then echo -e "${OKGREEN}====================================================================================${RESET}" @@ -323,6 +324,7 @@ if [ "$MODE" = "stealth" ]; then cat /usr/share/blackwidow/$TARGET*/* > $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null cat $LOOT_DIR/web/waybackurls-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null cat $LOOT_DIR/web/passivespider-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null + sed -ir "s//dev/null fi if [ $WEB_BRUTE_STEALTHSCAN == "1" ]; then echo -e "${OKGREEN}====================================================================================${RESET}" @@ -401,7 +403,7 @@ if [ "$MODE" = "stealth" ]; then loot fi if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Scan completed: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi exit fi \ No newline at end of file diff --git a/modes/web.sh b/modes/web.sh index 4c1104d1..987e2020 100644 --- a/modes/web.sh +++ b/modes/web.sh @@ -16,9 +16,6 @@ if [ "$MODE" = "web" ]; then fi echo "$TARGET $MODE `date +"%Y-%m-%d %H:%M"`" 2> /dev/null >> $LOOT_DIR/scans/tasks.txt 2> /dev/null echo "sniper -t $TARGET -m $MODE --noreport $args" >> $LOOT_DIR/scans/$TARGET-$MODE.txt - if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Starting scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" - fi sniper -t $TARGET -m $MODE --noreport $args | tee $LOOT_DIR/output/sniper-$TARGET-$MODE-`date +"%Y%m%d%H%M"`.txt 2>&1 exit fi diff --git a/modes/web_autopwn.sh b/modes/web_autopwn.sh index 3aa6006a..aa21dda0 100644 --- a/modes/web_autopwn.sh +++ b/modes/web_autopwn.sh @@ -1,5 +1,5 @@ if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Running web autopwn: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per webpwn scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi echo -e "${OKGREEN}====================================================================================${RESET}" echo -e "$OKRED RUNNING HTTP PUT UPLOAD SCANNER $RESET" @@ -216,6 +216,6 @@ sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g" $LOOT_DIR/output/msf-$TARGET-port$PORT-drupal_restws_unserialize.raw > $LOOT_DIR/output/msf-$TARGET-port$PORT-drupal_restws_unserialize.txt 2> /dev/null rm -f $LOOT_DIR/output/msf-$TARGET-port$PORT-drupal_restws_unserialize.raw 2> /dev/null if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Finished web autopwn: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per webpwn scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi \ No newline at end of file diff --git a/modes/webporthttp.sh b/modes/webporthttp.sh index 8cce6160..1cfdb846 100644 --- a/modes/webporthttp.sh +++ b/modes/webporthttp.sh @@ -17,7 +17,7 @@ if [ "$MODE" = "webporthttp" ]; then echo "$TARGET $MODE port$PORT `date +"%Y-%m-%d %H:%M"`" 2> /dev/null >> $LOOT_DIR/scans/tasks.txt 2> /dev/null echo "sniper -t $TARGET -m $MODE -p $PORT --noreport $args" >> $LOOT_DIR/scans/$TARGET-$MODE.txt if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Starting scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per scan: http://$TARGET:$PORT [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi sniper -t $TARGET -m $MODE -p $PORT --noreport $args | tee $LOOT_DIR/output/sniper-$TARGET-$MODE-$PORT-`date +"%Y%m%d%H%M"`.txt 2>&1 exit @@ -176,6 +176,7 @@ if [ "$MODE" = "webporthttp" ]; then cat /usr/share/blackwidow/$TARGET*/$TARGET*.txt 2> /dev/null > $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null cat $LOOT_DIR/web/waybackurls-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null cat $LOOT_DIR/web/passivespider-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null + sed -ir "s//dev/null fi if [ "$WEB_BRUTE_COMMONSCAN" == "1" ]; then echo -e "${OKGREEN}====================================================================================${RESET}" @@ -288,7 +289,7 @@ if [ "$MODE" = "webporthttp" ]; then loot fi if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Scan completed: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per scan: http://$TARGET:$PORT [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi exit fi \ No newline at end of file diff --git a/modes/webporthttps.sh b/modes/webporthttps.sh index 9ff7ba28..4ecf399f 100644 --- a/modes/webporthttps.sh +++ b/modes/webporthttps.sh @@ -17,7 +17,7 @@ if [ "$MODE" = "webporthttps" ]; then echo "$TARGET $MODE port$PORT `date +"%Y-%m-%d %H:%M"`" 2> /dev/null >> $LOOT_DIR/scans/tasks.txt 2> /dev/null echo "sniper -t $TARGET -m $MODE -p $PORT --noreport $args" >> $LOOT_DIR/scans/$TARGET-$MODE.txt if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Starting scan: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per scan: https://$TARGET:$PORT [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi sniper -t $TARGET -m $MODE -p $PORT --noreport $args | tee $LOOT_DIR/output/sniper-$TARGET-$MODE-$PORT-`date +"%Y%m%d%H%M"`.txt 2>&1 exit @@ -186,6 +186,7 @@ if [ "$MODE" = "webporthttps" ]; then cat /usr/share/blackwidow/$TARGET*/$TARGET*.txt 2> /dev/null > $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null cat $LOOT_DIR/web/waybackurls-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null cat $LOOT_DIR/web/passivespider-$TARGET.txt 2> /dev/null >> $LOOT_DIR/web/spider-$TARGET.txt 2>/dev/null + sed -ir "s//dev/null fi if [ "$WEB_BRUTE_COMMON" == "1" ]; then echo -e "${OKGREEN}====================================================================================${RESET}" @@ -291,7 +292,7 @@ if [ "$MODE" = "webporthttps" ]; then loot fi if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Scan completed: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per scan: https://$TARGET:$PORT [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi exit fi \ No newline at end of file diff --git a/modes/webscan.sh b/modes/webscan.sh index cece2aa9..084317d4 100644 --- a/modes/webscan.sh +++ b/modes/webscan.sh @@ -47,7 +47,7 @@ if [ "$MODE" = "webscan" ]; then echo "$TARGET" >> $LOOT_DIR/domains/targets.txt touch $LOOT_DIR/scans/$TARGET-webscan.txt 2> /dev/null if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Running webscan mode: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Started Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi if [ "$BURP_SCAN" == "1" ]; then echo -e "${OKGREEN}====================================================================================${RESET}" @@ -78,7 +78,7 @@ if [ "$MODE" = "webscan" ]; then echo "$TARGET" >> $LOOT_DIR/scans/updated.txt loot if [ "$SLACK_NOTIFICATIONS" == "1" ]; then - /usr/bin/python "$INSTALL_DIR/bin/slack.py" "Finished webscan mode: $TARGET $MODE `date +"%Y-%m-%d %H:%M"`" + /usr/bin/python "$INSTALL_DIR/bin/slack.py" "[xerosecurity.com] •?((¯°·._.• Finished Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" fi exit fi \ No newline at end of file