mirror of https://github.com/1N3/Sn1per.git
Sn1per Community Edition by @xer0dayz - https://xerosecurity.com
This commit is contained in:
parent
035fb3866a
commit
05d88837a0
|
|
@ -94,16 +94,6 @@ if [ -z "$PORT" ]; then
|
|||
else
|
||||
nmap -Pn -sU -p $PORT --open $TARGET -oX $LOOT_DIR/nmap/nmap-udp-$TARGET.xml
|
||||
fi
|
||||
HOST_UP=$(cat $LOOT_DIR/nmap/nmap-$TARGET.txt $LOOT_DIR/nmap/nmap-$TARGET-*.txt 2> /dev/null | grep "host up" 2> /dev/null)
|
||||
if [ ${#HOST_UP} -ge 2 ]; then
|
||||
echo "$TARGET" >> $LOOT_DIR/nmap/livehosts-unsorted.txt 2> /dev/null
|
||||
fi
|
||||
sort -u $LOOT_DIR/nmap/livehosts-unsorted.txt 2> /dev/null > $LOOT_DIR/nmap/livehosts-sorted.txt 2> /dev/null
|
||||
|
||||
rm -f $LOOT_DIR/nmap/ports-$TARGET.txt 2> /dev/null
|
||||
for PORT in `cat $LOOT_DIR/nmap/nmap-$TARGET.xml $LOOT_DIR/nmap/nmap-$TARGET-*.xml 2>/dev/null | egrep 'state="open"' | cut -d' ' -f3 | cut -d\" -f2 | sort -u | grep '[[:digit:]]'`; do
|
||||
echo "$PORT " >> $LOOT_DIR/nmap/ports-$TARGET.txt
|
||||
done
|
||||
if [ "$SLACK_NOTIFICATIONS_NMAP" == "1" ]; then
|
||||
/bin/bash "$INSTALL_DIR/bin/slack.sh" postfile "$LOOT_DIR/nmap/nmap-$TARGET.txt"
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -276,7 +276,7 @@ if [ "$MODE" = "stealth" ]; then
|
|||
fi
|
||||
if [ $WEBSCREENSHOT = "1" ]; then
|
||||
cd $LOOT_DIR
|
||||
python2 $INSTALL_DIR/bin/webscreenshot.py -r chrome -t 5 http://$TARGET:80
|
||||
python2 $INSTALL_DIR/bin/webscreenshot.py -t 5 http://$TARGET:80
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
@ -426,7 +426,7 @@ if [ "$MODE" = "stealth" ]; then
|
|||
fi
|
||||
if [ $WEBSCREENSHOT = "1" ]; then
|
||||
cd $LOOT_DIR
|
||||
python2 $INSTALL_DIR/bin/webscreenshot.py -r chrome -t 5 https://$TARGET:443
|
||||
python2 $INSTALL_DIR/bin/webscreenshot.py -t 5 https://$TARGET:443
|
||||
fi
|
||||
echo -e "$OKRED[+]$RESET Screenshot saved to $LOOT_DIR/screenshots/$TARGET-port443.jpg"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue