From 11e203fe910d525060cbc6bf594faac711fc7cc5 Mon Sep 17 00:00:00 2001 From: Yunus YILDIRIM Date: Tue, 12 Jul 2016 12:53:48 +0300 Subject: [PATCH 1/2] update sub-domain hijack list --- sniper | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sniper b/sniper index 518d454..5640807 100644 --- a/sniper +++ b/sniper @@ -226,7 +226,7 @@ if [ "$MODE" = "stealth" ]; then python Sublist3r/sublist3r.py -d $TARGET -vvv -o loot/domains/domains-$TARGET.txt 2>/dev/null dos2unix loot/domains/domains-$TARGET.txt 2>/dev/null echo -e "$OKGREEN + -- ----------------------------=[Checking for Sub-Domain Hijacking]=------- -- +$RESET" - for a in `cat loot/domains/domains-$TARGET.txt`; do dig $a CNAME | egrep -i "heroku|github|bitbucket|squarespace|shopify|desk|teamwork|unbounce|helpjuice|helpscout|pingdom|tictail|campaign monitor|cargocollective|statuspage|tumblr" 2>/dev/null; done; + for a in `cat loot/domains/domains-$TARGET.txt`; do dig $a CNAME | egrep -i "heroku|github|bitbucket|squarespace|shopify|desk|teamwork|unbounce|helpjuice|helpscout|pingdom|tictail|campaign monitor|cargocollective|statuspage|tumblr|amazonaws|hubspot" 2>/dev/null; done; echo -e "$OKGREEN + -- ----------------------------=[Checking Email Security]=----------------- -- +$RESET" python SimpleEmailSpoofer/spoofcheck.py $TARGET 2>/dev/null fi @@ -323,7 +323,7 @@ if [ "$MODE" = "airstrike" ]; then python Sublist3r/sublist3r.py -d $a -vvv -o loot/domains/domains-$a.txt 2>/dev/null dos2unix loot/domains/domains-$a.txt 2>/dev/null echo -e "$OKGREEN + -- ----------------------------=[Checking for Sub-Domain Hijacking]=------- -- +$RESET" - for b in `cat loot/domains/domains-$a.txt`; do dig $b CNAME | egrep -i 'heroku|github|bitbucket|squarespace|shopify|desk|teamwork|unbounce|helpjuice|helpscout|pingdom|tictail|campaign monitor|cargocollective|statuspage|tumblr' 2>/dev/null; done; + for b in `cat loot/domains/domains-$a.txt`; do dig $b CNAME | egrep -i 'heroku|github|bitbucket|squarespace|shopify|desk|teamwork|unbounce|helpjuice|helpscout|pingdom|tictail|campaign monitor|cargocollective|statuspage|tumblr|amazonaws|hubspot' 2>/dev/null; done; echo -e "$OKGREEN + -- ----------------------------=[Checking Email Security]=----------------- -- +$RESET" python SimpleEmailSpoofer/spoofcheck.py $a 2>/dev/null fi @@ -446,7 +446,7 @@ then python Sublist3r/sublist3r.py -d $TARGET -vvv -o loot/domains/domains-$TARGET.txt 2>/dev/null dos2unix loot/domains/domains-$TARGET.txt 2>/dev/null echo -e "$OKGREEN + -- ----------------------------=[Checking for Sub-Domain Hijacking]=------- -- +$RESET" - for a in `cat loot/domains/domains-$TARGET.txt`; do dig $a CNAME | egrep -i 'heroku|github|bitbucket|squarespace|shopify|desk|teamwork|unbounce|helpjuice|helpscout|pingdom|tictail|campaign monitor|cargocollective|statuspage|tumblr' 2>/dev/null; done; + for a in `cat loot/domains/domains-$TARGET.txt`; do dig $a CNAME | egrep -i 'heroku|github|bitbucket|squarespace|shopify|desk|teamwork|unbounce|helpjuice|helpscout|pingdom|tictail|campaign monitor|cargocollective|statuspage|tumblr|amazonaws|hubspot' 2>/dev/null; done; echo -e "$OKGREEN + -- ----------------------------=[Checking Email Security]=----------------- -- +$RESET" python SimpleEmailSpoofer/spoofcheck.py $TARGET 2>/dev/null fi From bbc3894ba0f920b5523fcd61854ebdf19e4b0cdd Mon Sep 17 00:00:00 2001 From: "Arsen A. Gutsal" Date: Thu, 29 Dec 2016 18:24:32 +0200 Subject: [PATCH 2/2] Master merged --- sniper | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/sniper b/sniper index 98b707a..5f7bb84 100644 --- a/sniper +++ b/sniper @@ -59,6 +59,14 @@ cd $INSTALL_DIR # DEFAULT IS "1" (ENABLED) AUTOBRUTE="1" +# CREATE LOOT DIR SUBDIRS +mkdir $LOOT_DIR 2> /dev/null +mkdir $LOOT_DIR/screenshots/ -p 2> /dev/null +mkdir $LOOT_DIR/nmap -p 2> /dev/null +mkdir $LOOT_DIR/domains -p 2> /dev/null +mkdir $LOOT_DIR/output -p 2> /dev/null +mkdir $LOOT_DIR/reports -p 2> /dev/null + function loot { echo -e "$OKRED ____ $RESET" echo -e "$OKRED _________ / _/___ ___ _____$RESET" @@ -289,8 +297,8 @@ if [ "$MODE" = "stealth" ]; then whatweb http://$TARGET echo -e "$OKGREEN + -- ----------------------------=[Checking Headers and Methods]=------------ -- +$RESET" xsstracer $TARGET 80 - echo -e "$OKGREEN + -- ----------------------------=[Saving Web Screenshots]=------------------ -- +$RESET" - cutycapt --url=http://$TARGET --out=$LOOT_DIR/screenshots/$TARGET-port80.jpg + #echo -e "$OKGREEN + -- ----------------------------=[Saving Web Screenshots]=------------------ -- +$RESET" + #cutycapt --url=http://$TARGET --out=$LOOT_DIR/screenshots/$TARGET-port80.jpg fi if [ -z "$port_443" ]; @@ -562,7 +570,7 @@ else nmap -sU -T5 -p U:$OPT1 --open $TARGET fi -service postgresql start +# service postgresql start echo "" echo -e "$OKGREEN + -- ----------------------------=[Running Intrusive Scans]=----------------- -- +$RESET"