Showing posts with label network. Show all posts
Showing posts with label network. Show all posts

Monday, January 26, 2009

samba mount

Using samba to mount a windows shared folder

mount -t cifs -o username=Home\\sandeep //192.168.0.1/Shared/ /media/Shared

Where /media/Shared is the target folder where the network folder will be mounted.

Tuesday, July 22, 2008

tcpdump : capturing data

capture all traffic on port 80 for a specific machine

sudo tcpdump -A -s 0 -i eth0 dst or src host and port 80


Reference : http://code.google.com/support/bin/answer.py?answer=71567&topic=12022

Thursday, June 12, 2008

nmap - portscan

scan all the ports in a given range on a specific machine

nmap -p1-10000 127.0.0.1

The above command will scan host 127.0.0.1(localhost) to see if any of the ports from range 1 to 10000 is up.