forked from BlackBox-CSP/nmap-tor-scanner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-prereqs.sh
executable file
·34 lines (32 loc) · 1.39 KB
/
init-prereqs.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
#!/bin/bash
#apt-get --assume-yes install tor
#echo "ControlPort 9051" >> /etc/tor/torrc
#service tor start
apt-get --assume-yes install libssl-dev libcurl4-openssl-dev python-dev
cd ~/
wget http://pycurl.sourceforge.net/download/pycurl-7.19.5.1.tar.gz
tar -xzvf pycurl-7.19.5.1.tar.gz
cd pycurl-7.19.5.1
python setup.py install
cd ~/
apt-get --assume-yes install tsocks
echo '# This is the configuration for libtsocks (transparent socks) for use' > /etc/tsocks.conf
echo '# with tor, which is providing a socks server on port 9050 by default.' >> /etc/tsocks.conf
echo '#' >> /etc/tsocks.conf
echo '# See tsocks.conf(5) and torify(1) manpages.' >> /etc/tsocks.conf
echo ''>> /etc/tsocks.conf
echo 'server = 127.0.0.1' >> /etc/tsocks.conf
echo 'server_port = 9050' >> /etc/tsocks.conf
echo ''>> /etc/tsocks.conf
echo '# We specify local as 127.0.0.0 - 127.191.255.255 because the' >> /etc/tsocks.conf
echo '# Tor MAPADDRESS virtual IP range is the rest of net 127.' >> /etc/tsocks.conf
echo 'local = 127.0.0.0/255.128.0.0' >> /etc/tsocks.conf
echo 'local = 127.128.0.0/255.192.0.0' >> /etc/tsocks.conf
echo 'local = 127.128.0.0/255.192.0.0' >> /etc/tsocks.conf
sudo rm /usr/lib/python2.7/dist-packages/pycurl*
pip install pycurl --upgrade
pip install stem --upgrade
pip install python-libnmap --upgrade
wget http://xael.org/pages/python-nmap-0.1.4.tar.gz
tar -xzf python-nmap-0.1.4.tar.gz
pip install python-nmap-0.1.4/