ARP Scan
$ sudo arp-scan -l
$ sudo arp-scan 192.168.1.0/24
----------------------------------------------------
ARP Scan Realtime
$ sudo watch arp-scan --interface=wlan0 -l
$ sudo watch arp-scan --interface=eth0 192.168.1.0/24
----------------------------------------------------
subota, 16. lipnja 2012.
Delete Routes in ubuntu
delete route
$ sudo route del [-net|-host] netmask gw dev X
example:
$ sudo route del -host 192.20.0.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0
$ sudo route del -net 192.20.0.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0
or
$ sudo route del -host 192.20.0.0 gw 192.168.1.1 dev eth0
$ sudo route del -net 192.20.0.0 gw 192.168.1.1 dev eth0
$ sudo /etc/init.d/networking restart
or
$ sudo /etc/init.d/networking start
$ sudo /etc/init.d/networking stop
$ route -n
$ sudo route del [-net|-host]
example:
$ sudo route del -host 192.20.0.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0
$ sudo route del -net 192.20.0.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0
or
$ sudo route del -host 192.20.0.0 gw 192.168.1.1 dev eth0
$ sudo route del -net 192.20.0.0 gw 192.168.1.1 dev eth0
$ sudo /etc/init.d/networking restart
or
$ sudo /etc/init.d/networking start
$ sudo /etc/init.d/networking stop
$ route -n
Add routes in ubuntu
add routes
$ sudo route add [-net|-host] netmask gw dev X
example:
$ sudo route add -host 192.20.0.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0
$ sudo route add -net 192.20.0.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0
or
$ sudo route add -host 192.20.0.0 gw 192.168.1.1 dev eth0
$ sudo route add -net 192.20.0.0 gw 192.168.1.1 dev eth0
$ sudo /etc/init.d/networking restart
or
$ sudo /etc/init.d/networking start
$ sudo /etc/init.d/networking stop
$ route -n
$ sudo route add [-net|-host]
example:
$ sudo route add -host 192.20.0.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0
$ sudo route add -net 192.20.0.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0
or
$ sudo route add -host 192.20.0.0 gw 192.168.1.1 dev eth0
$ sudo route add -net 192.20.0.0 gw 192.168.1.1 dev eth0
$ sudo /etc/init.d/networking restart
or
$ sudo /etc/init.d/networking start
$ sudo /etc/init.d/networking stop
$ route -n
Change hostname in ubuntu
change hostname
$ sudo gedit /etc/hostname
$ sudo /etc/init.d/hostname restart
$ sudo gedit /etc/hostname
$ sudo /etc/init.d/hostname restart
nedjelja, 3. lipnja 2012.
IP Scanners
1. arp-scan
2. nmap
3. Angry IP Scanner
---------------------------------
1. arp-scan
$ sudo apt-get install arp-scan
$ sudo arp-scan -l #Scans the local network
$ sudo arp-scan 192.168.1.0/24 #Scans 192.168.1.0 255.255.255.0
$ sudo arp-scan 192.168.1.1-192.168.1.254 #Scans the obvious range
---------------------------------
2. nmap
$ sudo apt-get install nmap
$ sudo nmap -sP 192.168.1.0/24 #Scans 192.168.1.0 255.255.255.0
$ sudo nmap -sP 192.168.1.1-254 #Scans the obvious range
---------------------------------
3. Angry IP Scanner
http://www.angryip.org/w/Download
or
http://sourceforge.net/projects/ipscan/files/ipscan3-binary/3.0-beta6/ipscan_3.0-beta6_i386.deb
$ sudo dpkg -i ipscan_3.0-beta6_i386.deb
---------------------------------
Pretplati se na:
Postovi (Atom)