Skip to content

Installation Instructions

Jacob Reynolds edited this page Apr 7, 2018 · 4 revisions

Installation Instructions

Ubuntu / Debian / Backtrack

Installation instructions for Ubuntu 10.10 they should work with little to no modification on previous versions. Install needed packages, 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

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 just navigate into the dnsrecon folder and run:

$ git pull

CentOS

CentOS 5 .x is the open source version of Red Hat Enterprise Linux and as any enterprise product their main focus is for stability than to have 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 be in parallel with the current version included with the distribution (2.4). Let start by changing to the root account:

$ su -

Once in root mode python is downloaded, configured to be installed in an alternate so as 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, 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 showed 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 install the next step is to install git so as 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 git://github.com/darkoperator/dnsrecon.git

To keep the script and associated files updated just navigate into the dnsrecon folder and run:

# git pull

Fedora

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 git://github.com/darkoperator/dnsrecon.git

To keep the script and associated files updated just navigate into the dnsrecon folder and run:

$ git pull

Tested on Fedora 16.

Clone this wiki locally
You can’t perform that action at this time.