This repository was archived by the owner on Dec 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscanner
More file actions
executable file
·126 lines (113 loc) · 3.69 KB
/
Copy pathscanner
File metadata and controls
executable file
·126 lines (113 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
#!/bin/sh
#---------- Variables ----------
#Colours
greenColour="\e[0;32m\033[1m"
endColour="\033[0m\e[0m"
redColour="\e[0;31m\033[1m"
blueColour="\e[0;34m\033[1m"
yellowColour="\e[0;33m\033[1m"
purpleColour="\e[0;35m\033[1m"
turquoiseColour="\e[0;36m\033[1m"
grayColour="\e[0;37m\033[1m"
dot="${redColour}[${endColour}${yellowColour}*${endColour}${redColour}]${endColour}"
#---------- Functions ----------
function doneText(){
echo -e "\n$dot ${blueColour}Done!${endColour}..."
}
# Banner
function banner(){
clear
echo " "
echo -e "${redColour} █████████ "
echo -e "${redColour} ███░░░░░███ "
echo -e "${redColour} ░███ ░░░ ██████ ██████ ████████ ████████ ██████ ████████ "
echo -e "${redColour} ░░█████████ ███░░███ ░░░░░███ ░░███░░███ ░░███░░███ ███░░███░░███░░███ "
echo -e "${redColour} ░░░░░░░░███░███ ░░░ ███████ ░███ ░███ ░███ ░███ ░███████ ░███ ░░░ "
echo -e "${redColour} ███ ░███░███ ███ ███░░███ ░███ ░███ ░███ ░███ ░███░░░ ░███ "
echo -e "${redColour} ░░█████████ ░░██████ ░░████████ ████ █████ ████ █████░░██████ █████ "
echo -e "${redColour} ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░ ░░░░░ ░░░░ ░░░░░ ░░░░░░ ░░░░░ ${purpleColour}by: ${yellowColour}@kyb3rvizsla @s4ori"
echo " "
echo -e "\n${yellowColour}Use:"
echo -e "${grayColour}[${endColour}${yellowColour}*${endColour}${grayColour}]${endColour} ${greenColour}scanner ${turquoiseColour}<Mode> <IP>"
echo -e "\n${yellowColour}Modes:"
echo -e "$dot${purpleColour} -f ${blueColour}Fast"
echo -e "$dot${purpleColour} -d ${blueColour}Detailed"
echo -e "$dot${purpleColour} -a ${blueColour}Aggresive"
}
# fast
function fast(){
nmap --min-rate 5000 -p- $fast -Pn -n -oN fastscan
doneText
}
# detailed
function detailed(){
nmap --min-rate 5000 -p- $detailed -sCV -Pn -n -oN detailedscan
doneText
}
# agresive
function agresive(){
sudo nmap --min-rate 5000 -p- $steal -sCV -sS -Pn -n -oN hardscan -Pn
doneText
}
function opciones(){
while getopts ":fdah:help" option;
do
case $option in
f)
state='1'
fast
;;
d)
detailed
;;
a)
agresive
;;
h)
banner
;;
help)
banner
;;
*)
echo -e "${redColour}R U Drunk?${endColour} ${yellowColour}that option does not exist,try with:${endColour} ${grayColour}scanner -help"
;;
esac
done
}
#---------- Script ----------
# Main
state='0'
while getopts ":fdah:help" option;
do
case $option in
f)
state='1'
fast
;;
d)
state='1'
detailed
;;
a)
state='1'
agresive
;;
h)
state='1'
banner
;;
help)
state='1'
banner
;;
*)
echo -e "${redColour}R U Drunk?${endColour} ${yellowColour}that option does not exist,try with:${endColour} ${grayColour}scanner -help"
;;
esac
done
if [ $state = "0" ]; then
banner;
else
whoami > /dev/null
fi