This repository was archived by the owner on Oct 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinstall.sh
More file actions
47 lines (47 loc) · 1.33 KB
/
install.sh
File metadata and controls
47 lines (47 loc) · 1.33 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
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "To install darknet.py must be run as root"
exit 1
fi
echo "Installing darknet.py v1.1"
echo "Checking NetworkManager Requirement"
if which NetworkManager; then
echo "NetworkManager [OK]"
echo "Checking IPTables Requirement"
if which iptables; then
echo "IPTables [OK]"
echo "Checking Python3 Requirement"
if which python3; then
echo "python3 [OK]"
echo "Checking cURL Requirement"
if which curl; then
echo "cURL [OK]"
echo "Checking Tor Requirement"
if which tor; then
echo 'Tor [OK]'
echo "Installing darknet.py"
python3 ./setup.py install
echo "darknet.py Sucessfully Installed!"
echo "Run darknet.py --start --torid <YOUR_Tor_ID> to start darknet.py now!"
darknet.py -h
echo "Check https://github.com/multiversecoder/darknet.py for more information"
else
echo "Tor is not Installed"
echo "Install Tor and retry the installation"
fi
else
echo "cURL not Installed"
echo "Install cURL and retry the installation"
fi
else
echo "Python3 not Installed"
echo "Install Python3 and retry the installation"
fi
else
echo "IPTables not Installed"
echo "Install IPTables and retry the installation"
fi
else
echo "NetworkManager not installed"
echo "Install NetworkManager and retry the installation"
fi