-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathsetup.sh
executable file
·44 lines (34 loc) · 933 Bytes
/
setup.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
#!/bin/bash
echo "
sdnpwn requires the following software...
From package manager:
- python3
- python3-netifaces
- python3-scipy
- bridge-utils
- python3-tabulate
- python3-pip
- git
From pip:
- scapy
- websocket-client
- python-openflow
This script will now download the above software using apt-get and pip3. If you're ok with this enter 'y' to continue.
"
read -p "Install Required Software? [y/N] " res
if [ "$res" == "y" ]; then
sudo apt-get update
sudo apt-get install python3 python3-pip python3-netifaces python3-scipy git bridge-utils python3-tabulate
pip install scapy
sudo pip install scapy
pip install websocket-client
pip install python-openflow
echo -e "\n
Maven is used by some modules to build Java-based SDN applications"
read -p "Would you like to install Maven? [y/N] " res
if [ "$res" == "y" ]; then
apt-get install maven
fi
else
echo "Quiting."
fi