From 7078f8debc3326db4d3af7815120d3aa50ffb141 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 16 Feb 2017 10:32:40 -0500 Subject: [PATCH] Sn1per by 1N3@CrowdShield --- CHANGELOG.md | 2 ++ sniper | 17 +++++++++-------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 077ec46..8a39a57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,6 @@ ## CHANGELOG: +* v2.3 - Fixed minor issues with missing $TARGET definitions for NMap (CC. @helo86) +* v2.2f - Added various optimizations and minor code fixes * v2.2e - Changed NMap scan options (removed -P0 flag) * v2.2d - Added MongoDB checks * v2.2d - Improved NMap scanning options diff --git a/sniper b/sniper index 9e1f22a..f4499b3 100644 --- a/sniper +++ b/sniper @@ -1,5 +1,5 @@ #!/bin/bash -# + -- --=[Sn1per v2.2 by 1N3 +# + -- --=[Sn1per by 1N3 # + -- --=[http://crowdshield.com # # Sn1per - Automated Pentest Recon Tool @@ -32,6 +32,7 @@ # sniper loot # +VER="2.3" TARGET="$1" MODE="$2" OPT1="$3" @@ -130,7 +131,7 @@ function help { echo -e "$OKRED /_/ $RESET" echo "" echo -e "$OKORANGE + -- --=[http://crowdshield.com$RESET" - echo -e "$OKORANGE + -- --=[sn1per v2.2 by 1N3$RESET" + echo -e "$OKORANGE + -- --=[sniper v$VER by 1N3$RESET" echo -e "$OKORANGE + -- --=[Usage:" echo "" echo ' [*] sniper ' @@ -168,7 +169,7 @@ if [ -z $TARGET ]; then echo -e "$OKRED /_/ $RESET" echo -e "" echo -e "$OKORANGE + -- --=[http://crowdshield.com$RESET" - echo -e "$OKORANGE + -- --=[sn1per v2.2 by 1N3$RESET" + echo -e "$OKORANGE + -- --=[sniper v$VER by 1N3$RESET" echo -e "$OKORANGE + -- --=[Usage: sniper $RESET" echo "" exit @@ -255,7 +256,7 @@ if [ "$MODE" = "stealth" ]; then echo -e "$OKRED /_/ $RESET" echo -e "$RESET" echo -e "$OKORANGE + -- --=[http://crowdshield.com" - echo -e "$OKORANGE + -- --=[sn1per v2.2 by 1N3" + echo -e "$OKORANGE + -- --=[sniper v$VER by 1N3" echo -e "$OKRED " echo -e "$OKRED ./\." echo -e "$OKRED ./ '\." @@ -395,7 +396,7 @@ if [ "$MODE" = "airstrike" ]; then echo -e "$OKRED /_/ $RESET" echo -e "$RESET" echo -e "$OKORANGE + -- --=[http://crowdshield.com" - echo -e "$OKORANGE + -- --=[sn1per v2.2 by 1N3" + echo -e "$OKORANGE + -- --=[sniper v$VER by 1N3" for a in `cat $TARGET`; do @@ -600,7 +601,7 @@ echo -e "$OKRED /____/_/ /_/___/ .___/\___/_/ $RESET" echo -e "$OKRED /_/ $RESET" echo -e "$RESET" echo -e "$OKORANGE + -- --=[http://crowdshield.com" -echo -e "$OKORANGE + -- --=[sn1per v2.2 by 1N3" +echo -e "$OKORANGE + -- --=[sniper v$VER by 1N3" echo -e "$RESET" echo -e "$OKGREEN + -- ----------------------------=[Running Nslookup]=------------------------ -- +$RESET" nslookup $TARGET @@ -837,7 +838,7 @@ else then echo -e "$OKGREEN + -- ----------------------------=[Saving Web Screenshots]=------------------ -- +$RESET" echo -e "$OKGREEN + -- ----------------------------=[Running NMap HTTP Scripts]=--------------- -- +$RESET" - nmap -A -sV -T5 -p 80 --script=http-enum,http-headers,http-server-header,http-php-version,http-iis-webdav-vuln,http-vuln-*,http-phpmyadmin-dir-traversal + nmap -A -sV -T5 -p 80 --script=http-enum,http-headers,http-server-header,http-php-version,http-iis-webdav-vuln,http-vuln-*,http-phpmyadmin-dir-traversal $TARGET echo -e "$OKGREEN + -- ----------------------------=[Running Directory Brute Force]=----------- -- +$RESET" dirb http://$TARGET echo -e "$OKGREEN + -- ----------------------------=[Running Wordpress Vulnerability Scans]=--- -- +$RESET" @@ -1022,7 +1023,7 @@ else if [ "$MODE" = "web" ]; then echo -e "$OKGREEN + -- ----------------------------=[Running NMap HTTP Scripts]=--------------- -- +$RESET" - nmap -A -sV -T5 -p 443 --script=http-enum,http-headers,http-server-header,http-php-version,http-iis-webdav-vuln,http-vuln-*,http-phpmyadmin-dir-traversal + nmap -A -sV -T5 -p 443 --script=http-enum,http-headers,http-server-header,http-php-version,http-iis-webdav-vuln,http-vuln-*,http-phpmyadmin-dir-traversal $TARGET echo -e "$OKGREEN + -- ----------------------------=[Running Directory Brute Force]=----------- -- +$RESET" dirb https://$TARGET echo -e "$OKGREEN + -- ----------------------------=[Running Wordpress Vulnerability Scans]=--- -- +$RESET"