Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
1N3
GitHub Repository: 1N3/Sn1per
Path: blob/master/modes/airstrike.sh
4078 views
1
# AIRSTRIKE MODE #####################################################################################################
2
if [[ "$MODE" = "airstrike" ]]; then
3
if [[ -z "$FILE" ]]; then
4
logo
5
echo "You need to specify a list of targets (ie. -f <targets.txt>) to scan."
6
exit
7
fi
8
if [[ "$REPORT" = "1" ]]; then
9
for a in `cat $FILE`;
10
do
11
if [[ "$AUTO_BRUTE" = "1" ]]; then
12
args="$args -b"
13
fi
14
if [[ "$FULLNMAPSCAN" = "1" ]]; then
15
args="$args -fp"
16
fi
17
if [[ "$OSINT" = "1" ]]; then
18
args="$args -o"
19
fi
20
if [[ "$RECON" = "1" ]]; then
21
args="$args -re"
22
fi
23
if [[ ! -z "$WORKSPACE" ]]; then
24
args="$args -w $WORKSPACE"
25
WORKSPACE_DIR=$INSTALL_DIR/loot/workspace/$WORKSPACE
26
echo -e "$OKBLUE[*]$RESET Saving loot to $LOOT_DIR [$RESET${OKGREEN}OK${RESET}$OKBLUE]$RESET"
27
mkdir -p $WORKSPACE_DIR 2> /dev/null
28
mkdir $WORKSPACE_DIR/domains 2> /dev/null
29
mkdir $WORKSPACE_DIR/screenshots 2> /dev/null
30
mkdir $WORKSPACE_DIR/nmap 2> /dev/null
31
mkdir $WORKSPACE_DIR/notes 2> /dev/null
32
mkdir $WORKSPACE_DIR/reports 2> /dev/null
33
mkdir $WORKSPACE_DIR/output 2> /dev/null
34
fi
35
args="$args -m stealth --noreport --noloot"
36
TARGET="$a"
37
args="$args -t $TARGET"
38
echo -e "$OKRED |"
39
echo -e "$OKRED | |"
40
echo -e "$OKRED | -/_\-"
41
echo -e "$OKRED -/_\- ______________(/ . \)______________"
42
echo -e "$OKRED ____________(/ . \)_____________ \___/ <>"
43
echo -e "$OKRED <> \___/ <> <>"
44
echo -e "$OKRED "
45
echo -e "$OKRED ||"
46
echo -e "$OKRED <>"
47
echo -e "$OKRED ||"
48
echo -e "$OKRED <>"
49
echo -e "$OKRED ||"
50
echo -e "$OKRED || BIG"
51
echo -e "$OKRED _____ __ <> (^)))^ BOOM!"
52
echo -e "$OKRED BOOM!/(( )\ BOOM!(( ))) ( ( )"
53
echo -e "$OKRED ---- (__()__)) (() ) )) ( ( ( )"
54
echo -e "$OKRED || |||____|------ \ (/ ___ (__\ /__)"
55
echo -e "$OKRED |__||| | |---|---|||___| |___-----|||||"
56
echo -e "$OKRED | ||. | | | ||| |||||"
57
echo -e "$OKRED |__||| | |---|---|||___| |___-----|||||"
58
echo -e "$OKRED | ||. | | | ||| |||||"
59
echo -e "$OKRED __________________________________________________________"
60
echo -e "$RESET"
61
if [[ ! -z "$WORKSPACE_DIR" ]]; then
62
echo "$TARGET $MODE `date +"%Y-%m-%d %H:%M"`" 2> /dev/null >> $LOOT_DIR/scans/tasks.txt 2> /dev/null
63
echo "sniper -t $TARGET -m $MODE --noreport $args" >> $LOOT_DIR/scans/$TARGET-$MODE.txt
64
echo "[sn1persecurity.com] •?((¯°·._.• Started Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" >> $LOOT_DIR/scans/notifications_new.txt
65
if [[ "$SLACK_NOTIFICATIONS" == "1" ]]; then
66
/bin/bash "$INSTALL_DIR/bin/slack.sh" "[sn1persecurity.com] •?((¯°·._.• Started Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•"
67
fi
68
sniper $args | tee $WORKSPACE_DIR/output/sniper-$TARGET-$MODE-`date +"%Y%m%d%H%M"`.txt 2>&1
69
else
70
echo "$TARGET $MODE `date +"%Y-%m-%d %H:%M"`" 2> /dev/null >> $LOOT_DIR/scans/tasks.txt 2> /dev/null
71
echo "sniper -t $TARGET -m $MODE --noreport $args" >> $LOOT_DIR/scans/$TARGET-$MODE.txt
72
sniper $args | tee $LOOT_DIR/output/sniper-$TARGET-$MODE-`date +"%Y%m%d%H%M"`.txt 2>&1
73
fi
74
args=""
75
done
76
fi
77
echo "[sn1persecurity.com] •?((¯°·._.• Finished Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•" >> $LOOT_DIR/scans/notifications_new.txt
78
if [[ "$SLACK_NOTIFICATIONS" == "1" ]]; then
79
/bin/bash "$INSTALL_DIR/bin/slack.sh" "[sn1persecurity.com] •?((¯°·._.• Finished Sn1per scan: $TARGET [$MODE] (`date +"%Y-%m-%d %H:%M"`) •._.·°¯))؟•"
80
fi
81
if [[ "$LOOT" = "1" ]]; then
82
loot
83
fi
84
exit
85
fi
86
87