-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
53 lines (41 loc) · 1.19 KB
/
build.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
#!/bin/sh
#Generic Dependencies
sudo apt update
sudo apt install -y build-essential
sudo apt install -y gcc make python-minimal libssl-dev git python-pip wget unzip
#Install Seccure
sudo apt-get install -y libgmp-dev build-essential python-dev python-pip libmpfr-dev libmpc-dev
pip install seccure
#Install Ryu
pip install ryu
#Install pcap
sudo apt install -y libpcap-dev
#Selenium Dependencies
#Install Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install -y ./google-chrome-stable_current_amd64.deb
#Install Chrome Driver
version="`wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE`"
echo ${version}
baseUrl="https://chromedriver.storage.googleapis.com"
compUrl="${baseUrl}/${version}"
comStr="wget -N ${compUrl}/chromedriver_linux64.zip"
${comStr}
unzip ./chromedriver_linux64.zip -d /tmp/
sudo mv -f /tmp/chromedriver /usr/local/bin/
sudo chmod +x /usr/local/bin/chromedriver
pip install scapy selenium
#Install scapy, selenium smtplib and imap modules
pip install scapy easyimap
#Finally Let's build actual code.
#Build Client
cd main
cd ./client/c
make
#Build proxy
cd ../../
cd ./proxy/
make center
make single_conn
cd ../
#