Posts

Showing posts from April, 2013

Installing Kali Linux Tools in Ubuntu or Linux Mint

Image
Kali linux is a debian based and its not easy to configure it on a typical PC. If the machine is UEFI based, then Kali is tough to customize.

So what is the alternative....? Here is the answer: Katoolin

Its the name of the package system for installing the entire kali linux tools (Penetration Testing) in Ubuntu or Debian based system.

Here I am trying to install inside my Linux Mint

OS Used: Linux Mint 18.2 Sonya
Prequisites: Python 2.7
Always perform these steps after the installation of ubuntu or Linux Mint

$] sudo apt update
$] sudo apt install build-essential autoconf automake libxmu-dev
$] sudo apt install git
$] git clone https://github.com/LionSec/katoolin.git
$] sudo cp katoolin/katoolin.py /usr/bin/katoolin
$] sudo katoolin

This will give various options as shown below
 In the above pic. Select 2 to View categories and you will get the screen as shown in the next image.
Select "0" to install all the applications.

This will install 1.3G to download and 3.5 GB space will be…

Print the Congestion Window Graph in NS2

Image
Congestion window size is a major factor in predicting the performance of a TCP Network. NS2 handles the Congestion window like a variable cwnd_ and it can be printed to a graph and as well printed as values at various intervals of time.
The following tcl script will let you understand the working of the network (TCP Reno Protocol) and also helps you in plotting the characteristics of Congestion window value.
Xgraph is used to plot the congestion window. To install xgraph, one can use the ns-allinone-2.3x package or directly install using
yum install xgraph (fedora) and
sudo apt-get install xgraph (Ubuntu, Linux Mint and Debian families)
Each and every line of the code is explained with comments. Still any doubts, please post your queries in the comment section.
When you copy and paste the following lines in your editor, see whether the characters are ASCII or else download here.

#create simulator
set ns [new Simulator]        
#to create nodes
set n0 [$ns node]
set n1 [$ns node]
set n2 […

NS2 Scenario Generator

Image
If you are tired of writing code using .tcl files, here is a solution for that. This software is a little bit old, as it released sometime during 2007, still some of the students/Researchers are not aware of this software.
So, you need not waste your time in editing the tcl files. And since this software is written in java, it works well with almost any Operating System (With JRE installed on the System)

You can download the software from this link https://sites.google.com/site/pengjungwu/nsg
Some features of this software

wired and wireless nodes will be createdestablish connection between the nodesCreating links (Duplex-Link and Simplex-Link)TCP and UDP agents are supportedCreating applications (CBR and FTP)Node movementAnd still there are lot more as the developer of this software is actively maintaining the software and you can expect lot more in the future also.
You can download the software from this link directly. https://sites.google.com/site/pengjungwu/nsg/NSG2.1.jar?attredire…

Top 10 Networking Commands in Linux

Image
There are many network commands linux supports but there are only a few commands that explore the major things in a network. There are 10 such networking commands in Linux to explore the routing, packets, etc.
if you want to know about the commands use "man commandname" (without Quotes)
Command 1:
# ifconfig
you may use the options to configure ifconfig -v (for showing the verbose mode)
command to configure the given network interface (wlan0, eth0, etc)
Command 2 :
# ping 172.16.1.10

To send ICMP, Echo request to hosts

Here is the output
PING 172.16.1.10 (172.16.1.10) 56(84) bytes of data.
64 bytes from 172.16.1.10: icmp_req=1 ttl=128 time=0.735 ms
64 bytes from 172.16.1.10: icmp_req=2 ttl=128 time=0.871 ms

--- 172.16.1.10 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.735/0.803/0.871/0.068 ms
Command 3:  traceroute domainname or IP Address print the route packets trace to network host Ex:  traceroute www.vit.ac.in See…