-
Notifications
You must be signed in to change notification settings - Fork 542
Installation Instructions
Installation instructions for Ubuntu 10.10 should work with little to no modification on previous versions.
To install the packages needed for Backtrack, you only need to install git-core
:
$ sudo apt-get install libavahi-compat-libdnssd1 git-core
$ sudo apt-get install python-setuptools
Once those packages are installed, we will install the supporting libraries for python to be able to run the script:
$ sudo easy_install netaddr
$ sudo easy_install dnspython
$ sudo easy_install lxml
Navigate to the folder you want to install the DNSRecon script and run the following command to download the script and files:
$ git clone git://github.com/darkoperator/dnsrecon.git
To keep the script and associated files updated navigate into the dnsrecon
folder and run:
$ git pull
CentOS 5 .x is the open-source version of Red Hat Enterprise Linux, and as with any enterprise product, their main focus is on stability than having the latest version of the packages out there. Since we will need a version of python 2.5 or above, we will have to install Python and configure it to parallel the current version included with the distribution (2.4). Let’s start by changing to the root account:
$ su -
Once in root mode, python is downloaded and configured to be installed in an alternate to not conflict with the version included with the distribution:
# wget http://www.python.org/ftp/python/2.7.1/Python-2.7.1.tgz # tar xvzf ./Python-2.7.1.tgz # cd Python-2.7.1 # ./configure --prefix=/opt/python2.7 --with-threads --enable-shared --with-zlib=/usr/include # make # make install # cd ~
After it is installed, the next step is to link all the necessary libraries and check that we can run the new installed version without any problems:
# ln -s /opt/python2.7/lib/libpython2.7.so /usr/lib # ln -s /opt/python2.7/lib/libpython2.7.so.1.0 /usr/lib # ln -s /opt/python2.7/bin/python /usr/local/bin/python # ln -s /opt/python2.7/bin/python /usr/bin/python2.7 # ln -s /opt/python2.7/lib/python2.7.so /opt/python2.7/lib/python2.7/config/ # /sbin/ldconfig -v # env python -V
Once it has been confirmed that the version of Python being shown is 2.7 the next step is to install easy install on the machine to be able to manage the Python libraries:
# http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg#md5=fe1f997bc722265116870bc7919059ea # sh setuptools-0.6c11-py2.7.egg --prefix=/opt/python2.7 # ln -s /opt/python2.7/bin/easy_install /usr/local/bin/easy_install
The next step is to use easy_install to install the latest versions of the necessary libraries for the script:
# easy_install netaddr # easy_install dnspython
Once the libraries are installed the next step is to install git to download the latest version of the script and keep it updated since we will be using an alternate repository for the packages:
# rpm -ivh http://repo.webtatic.com/yum/centos/5/`uname -i`/webtatic-release-5-1.noarch.rpm # yum install --enablerepo=webtatic git
Use Git to mirror the script project:
# git clone [email protected]:darkoperator/dnsrecon.git
To keep the script and associated files updated navigate into the dnsrecon
folder and run:
# git pull
Requirements installed with:
$ sudo yum install python-dns python-netaddr
Navigate to the folder you want to install the DNSRecon script and run the following command to download the script and files:
$ git clone [email protected]:darkoperator/dnsrecon.git
To keep the script and associated files updated navigate into the dnsrecon
folder and run:
$ git pull
Tested on Fedora 16.