-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·71 lines (70 loc) · 2.4 KB
/
install.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
#!/bin/bash
##################################################################
################ DETTE SKRIPT VIL INSTALLERE NETTO ##############
##################################################################
flag=0
install=0
clear
echo "# NETTO INSTALLER - version 0.24a"
echo ""
(sudo cp -i -v netto /usr/bin/netto)
echo ""
echo "DETTE SKRIPTS FUNKTIONALITET ER BASERET PÅ NETWORKMANAGER (nmcli)."
echo "HVIS NETWORKMANAGER IKKE ER DIN PRIMÆRE NETVÆRKSDRIVER, VIL DELE"
echo "AF SKRIPTET IKKE FUNGERE."
echo ""
echo "HVIS DER MANGLER PAKKER, DER ER NØDVENDIGE FOR SKRIPTETS FULDE"
echo "FUNKTIONALITET, LISTES DISSE HER UNDER:"
echo ""
if ! command -v nmcli &> /dev/null; then
echo "(!) NETWORKMANAGER IKKE INSTALLERET ELLER IKKE TILSTRÆKKELIGT OPSAT."
echo "(!) Skriptet har muligvis meget begrænset funktion."
echo ""
flag=$((flag+1))
elif ! command -v openvpn &> /dev/null; then
echo "(!) OPENVPN IKKE INSTALLERET ELLER IKKE TILSTRÆKKELIGT OPSAT."
echo " Skriptets funktion er begrænset."
echo ""
flag=$((flag+1))
elif ! command -v aircrack-ng &> /dev/null; then
echo "(!) AIRCRACK-NG IKKE INSTALLERET ELLER IKKE TILSTRÆKKELIGT OPSAT."
echo " Skriptets funktion er begrænset."
echo ""
flag=$((flag+1))
elif ! command -v hashcat &> /dev/null; then
echo "(!) HASHCAT IKKE INSTALLERET ELLER IKKE TILSTRÆKKELIGT OPSAT."
echo " Skriptets funtion er begrænset."
echo ""
flag=$((flag+1))
elif ! command -v ifconfig &> /dev/null; then
echo "(!) IFCONFIG IKKE INSTALLERET ELLER IKKE TILSTRÆKELIGT OPSAT."
echo " skriptets funtion er begrænset."
echo ""
flag=$((flag+1))
elif ! command -v lsusb &> /dev/null; then
echo "(!) LSUSB IKKE INSTALLERET ELLER IKKE TILSTRÆKELIGT OPSAT."
echo " skriptets funtion er begrænset."
echo ""
flag=$((flag+1))
fi
if [ ! $flag == 0 ]; then
echo "SKRIPTET MANGLER MINIMUM $flag INSTALLATIONER."
echo "DISSE KAN INSTALLERES VED BRUG AF DISTRIBUTIONENS"
echo "PAKKEHÅNDTERING."
elif [ $flag == 0 ]; then
echo "(!) INGEN MANGLENDE PAKKER FUNDET."
fi
pathd="${HOME}/dicts"
pathr="${HOME}/rules"
patov="/etc/openvpn"
if [ ! -d $pathd ]; then
echo "(!) ORDBØGER RELATERET TIL AIRCRACK-NG OG HASHCAT PLACERES I $pathd."
echo ""
elif [ ! -d $pathr ]; then
echo "(!) REGEL LISTER RELATERET TIL AIRCRACK-NG OG HASHCAT PLACERES I $pathr."
echo ""
elif [ ! -d $patov ]; then
echo "(!) OPENVPN KONFIGURATIONS -OG ADGANGSKODEFILER PLACERES I $pathr."
echo ""
fi
exit