-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.sh
72 lines (66 loc) · 2.06 KB
/
configure.sh
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
##############################################################
# THIS IS A LEGAL PROGRAM, DON'T USE THIS FOR ILLEGAL ATTACKS!
# ONLY ASSHOLES ATTACK PRIVATE ORGS!
# RESPECT!
# COPYRIGHT DIO-BRANDO, JOSH WASH 2021-2022
##############################################################
cyan='\e[0;36m'
green='\e[0;32m'
red='\e[1;31m'
Escape="\033";
Reset="${Escape}[0m";
if [ $1 == '-h' ] || [ $1 == '--help' ]; then
echo -e "Usage: ./configure.sh [OPTION]
./configure.sh -h --help to show this message and exit
./configure.sh -r --root to use this cfg in sudo mode
,/configure.sh -n --no-root to use this cfg not in sudo mode
./configure.sh -t --termux to configure this tool in termux android
"
exit 1
fi
if [ $1 == '-r' ] || [ $1 == '--root' ]; then
echo -en $Reset"["; echo -en $green"#"; echo -e $Reset"]" "Starting config script!"
sleep 2
[[ `id -u` -eq 0 ]] > /dev/null 2>&1 || {
echo -en $Reset"["; echo -en $red"!"; echo -en $Reset"]"; echo -en " You must be root to run the script"; echo -e $Reset ; exit 1;
}
{
cp -r lib/ src/ wordlists/ configures/ /usr/bin/
cp dbuster /usr/bin/
} || { # catch
echo run this program with admin permissions!
exit 1
}
{ # try
chmod +x dbuster
chmod +x src/init
chmod +x lib/reqs
} || { # catch
echo error, missing files!
echo creating!
exit 1
}
exit 1
fi
if [ $1 == '-t' ] || [ $1 == '--termux' ]; then
clear
echo -en $Reset"["; echo -en $green"#"; echo -e $Reset"]" "Starting config script!"
sleep 2
{
cp -r lib/ src/ wordlists/ configures/ $HOME/../usr/bin
cp dbuster $HOME/../usr/bin
chmod +x $HOME/../usr/bin/dbuster
} || { # catch
echo bin/local not found, are you using windows? use configure_windows.sh!
exit 1
}
{ # try
chmod +x dbuster
chmod +x src/init
chmod +x lib/reqs
} || { # catch
echo error, missing files!
echo creating!
exit 1
}
fi