Saturday 10 November 2012

INetSim Installation of Ubuntu 12.10


INetSim Installation on Ubuntu 12.10
by The Security Goth version 1.0 dated 10th November 2012

Before we begin, I will occasionally put some odd notes in or write things in a very simple/plain fashion.  This is not a slight on my readers, but just in case someone is just starting out and doesn't have a great level of experience yet. Regular font for information Courier New Bold for stuff to type.

Note - in this installation the easiest way to get to the terminal is CTRL-Alt-t  open one now and lock it to the launcher for easy access.

Install OS - ubuntu-12.10-desktop-i386.iso (I used easy mode on VMWare Workstation 7.0.0 build-203739)

There was 76 updates for my installation, install these before continuing. Reboot in accordance with the Software Updater message (if applicable).

Switch user to root (keep your environment variables) - 

sudo su

Install Perl (although mine was installed already, but best to check anyway)  -

apt-get install perl

Install Perl library Net::Server -   

apt-get install libnet-server-perl

Install Perl library Net::DNS (you might already have it, but check anyway)  -  

apt-get install libnet-dns-perl

Install Perl library IPC::Shareable  -

apt-get install libipc-shareable-perl

Install Perl library Digest::SHA -  

apt-get install libdigest-sha-perl

Install Perl library IO::Socket::SSL -

apt-get install libio-socket-ssl-perl

If not root already switch user to root (keep your environment variables) - 

sudo su

Create a new group called inetsim -   

groupadd inetsim

Check you have a user named nobody -  

cat /etc/passwd | grep nobody

Download INetSim (I am using inetsim 1.2.3) from www.inetsim.org (http://www.inetsim.org/downloads.html) -  http://www.inetsim.org/downloads/inetsim-1.2.3.tar.gz

Extract the tarball -  

tar zxvf inetsim-1.2.3.tar.gz

Go into the newly extracted folder - 

cd inetsim-1.2.3

run setup.sh (it sorts out some permissions and stuff) -  

./setup.sh

Then test to see if it will run -

./inetsim

Now the hard bit, configuring it the way you want it, the way you need it.  This is not included in this guide, but samples will be posted soon (hopefully).

3 comments:

  1. Hi. Nice post. I have tried to follow your instruction. Unfortunately, when I was trying to run the inetsime, it didn't work. There is a message:

    Can't locate IPC/Shareable.pm in @INC (@INC contains: ./lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl) at lib/INetSim/Config.pm line 18.
    BEGIN failed--compilation aborted at lib/INetSim/Config.pm line 18.
    Compilation failed in require at lib/INetSim.pm line 20.
    BEGIN failed--compilation aborted at lib/INetSim.pm line 20.
    Compilation failed in require at ./inetsim line 20.
    BEGIN failed--compilation aborted at ./inetsim line 20.

    Could you help me to solve the issue?
    Regards,

    ReplyDelete
    Replies
    1. I had the same problem as well. First you gotta install cpanminus by doing sudo apt-get install cpanminus. Then, you can do sudo cpanm IPC::Shareable to install the missing library.

      Delete
    2. I had the same problem as well. First you gotta install cpanminus by doing sudo apt-get install cpanminus. Then, you can do sudo cpanm IPC::Shareable to install the missing library.

      Delete