Tuesday, February 18, 2014

How to install INetSim in Backtrack

Following are the prerequisites which needs to be installed before installing INetSim:
  1. Perl library Net::Server
  2. Perl library Net::DNS
  3. Perl library IPC::Shareable
  4. Perl library Digest::SHA
  5. Perl library IO::Socket::SSL
  6. Perl library Perlipq (Optional)
The above libraries can be installed either manually or using apt-get method. You can use either one to install the libraries. Manual approach will help you to install the latest libraries.
One library,i.e Perlipq, you need to install manually. This library helps in redirection of ip addresses... i.e port forwarding ,etc,etc ....


1st Approach:
Automated Installation of the prerequisites:

Installing perl library Net::Server
apt-get install libnet-server-perl

Installing perl library Net::DNS
apt-get install libnet-dns-perl

Installing perl library IPC::Shareable
apt-get install libipc-shareable-perl

Installing perl library Digest::SHA
apt-get install libdigest-sha-perl

Installing perl library IO::Socket::SSL
apt-get install libio-socket-ssl-perl



2nd Approach:
Manual installation of the above prerequisites:
Alternatively, you can install the above library packages manually.
Download the above libraries from the following links:
  1. Download Net::Server library from here
  2. Download Net::DNS library from here
  3. Download IPC::Shareable library from here
  4. Download Digest::SHA library from here
  5. Download IO::Socket::SSL library from here
  6. Download Perl library Perlipq from here

Important Points to remember:
For installing Perlipq follow the steps below:
Before installing perl library Perlipq you need to install one more package i.e iptables-dev.
To install iptables-dev, run the following command:
$ apt-get install iptables-dev

After downloading all the libraries from the above links,use the following commands from the respective downloaded folders to install net::server, net::dns, ipc::shareable, digest::sha, io::socket::ssl

$ perl Makefile.PL
$ make
$ make test
$ make install

Use the following commands to install the Perlipq library:
$ perl Makefile.PL
$ make
$ make install

Note: There is one bug in t/simple.t file of perlipq in line number 49. So don't run the make test command .... just install it using make install command as instructed above.


Now, before installing the INetSim run the following command:
$ apt-get -f install

Note:The above command will fix the broken dependency,if any. Hence it is necessary to run the above command.

Now your system is ready to install the INetSim software:
Installing INetSim:
  1. Dowload the INetSim from here
  2. Install it by running the following command:
    $ dpkg -i inetsim_1.2.4-1_all.deb




No comments:

Post a Comment