Pages

Showing posts with label NAMP. Show all posts
Showing posts with label NAMP. Show all posts

Saturday, December 21, 2013

NAMP

To list all open ports in our local machine
# nmap -v localhost

Namp database of ports to the service
 
# /usr/share/namp/nmap-service

To save nmap scan to a file
 
# nmap -V -oN namp.scan.1 localhost

Nmap usually scans TCP ports to scan UDP based ports
 
# namp -v -sU localhost

To check a purticular port is listening or not
 
# namp -v -p 631 localhost

To get OS finger print of a remote system
 
# nmap -v -o remoteserver

To scan an ip range in a file
 
# namp iL filename 
 
To list all the machine that are up and running in the current networl
# namp -iL uu

Wednesday, September 15, 2010

SQUID monitoring

tail -f /var/log/squid/access.log | awk '{print$3 " " $8 " " $7}' // Use this script to monitor the We usage in ur home network