-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall
More file actions
62 lines (51 loc) · 2.22 KB
/
install
File metadata and controls
62 lines (51 loc) · 2.22 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
#!/usr/bin/bash
# OPEN TESTING V1 - WHITE-SPACE INSTALLER
echo """
┏━━━┓╋╋╋╋╋╋╋╋╋╋┏━━━━┓╋╋╋╋┏┓
┃┏━┓┃╋╋╋╋╋╋╋╋╋╋┃┏┓┏┓┃╋╋╋┏┛┗┓
┃┃┃┃┣━━┳━━┳━┓╋╋┗┛┃┃┣┻━┳━┻┓┏╋┳━┓┏━━┓
┃┃┃┃┃┏┓┃┃━┫┏┓┳━━┓┃┃┃┃━┫━━┫┃┣┫┏┓┫┏┓┃
┃┗━┛┃┗┛┃┃━┫┃┃┣━━┛┃┃┃┃━╋━━┃┗┫┃┃┃┃┗┛┃
┗━━━┫┏━┻━━┻┛┗┛╋╋╋┗┛┗━━┻━━┻━┻┻┛┗┻━┓┃
╋╋╋╋┃┃╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┏━┛┃
╋╋╋╋┗┛╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋╋┗━━┛
INSTALLER
v1 WHITE-SPACE
Pease wait while 0penTesting installs...
"""
# Termux install
if [ "$PREFIX" = "/data/data/com.termux/files/usr" ]; then
pkg install -y git python
pip3 install -r app/dist/requirements.txt
echo "Making files executable..."
chmod +x app/0pentesting-framework.py
chmod +x app/dist/0pf
chmod +x app/web_app/webserver.py
chmod +x app/web_app/debug_webserver.py
chmod +x app/dist/start_webserver.py
chmod +x app/dist/update_mgr.py
mv app/dist/0pf ../../
# MacOS install
elif [ "$(uname)" = "Darwin" ]; then
INSTALL_DIR="/usr/local/0penTesting-Framework"
BIN_DIR="/usr/local/bin"
BASH_PATH="/bin/bash"
TERMUX=false
# Deb-based Linux install
else
sudo apt-get install -y git python3 python3-pip
echo "Installing apt's..."
sudo apt-get install -y python3 python3-pip
echo "Installing pip's..."
pip3 install -r app/dist/requirements.txt
echo "Making files executable..."
chmod +x app/0pentesting-framework.py
chmod +x app/dist/0pf
chmod +x app/web_app/webserver.py
chmod +x app/web_app/debug_webserver.py
chmod +x app/dist/start_webserver.py
chmod +x app/dist/update_mgr.sh
sudo mv app/dist/0pf ../../
alias 0pf="bash $PWD/0pf"
fi
echo "Tool installed successfully! To get started restart the terminal sesh and type: 0pf";