Unix is simple, but it just needs a genius to understand its simplicity.
1.Finger is quite an old protocol which is not used these days.
Type finger /? for more information
The program was written to solve the needs of the user who wanted information about the other users of the network.
Nmap -1R25 -p 79
This will select 25 random Ips and will scan for the finger port
Now acc to my results IP 220.24.214.47 has a finger port which is in a filtered state.
Now type in finger -l 220.24.214.47
SMTP -Simple mail transfer protocol
Use nmap to find 25 random ports which have port 25 as open.
Nmap -iR 25 -p 25
-p is for port no.
Connecting to SMTP
telnet <host name > 25(port no.)
(Please mention the port no., if you dont the port no will be taken as 23)
eg. telnet xyz.host.in.com 25
or telnet 192.98.131.34
SMTP COMMAND SEQUENCE
HELO<host name>
Mail from:receipient email address
rcpt to: sender's email address
DATA
. Message Terminator
Ping: Ping is generally used to determine whether the remote host is up or not.
Type ping <hostname> or IP address
If no packets are lost in sending or receiving then the remote host is definitely up.
eg. ping www.google.com
The default packet size sent & recieved is 32 bytes.
Now lets modify it a little.
Ping -l 64 www.google.com
where 64 is the size of the packet
ping -t www.google.com
This will ping the specified host until stopped. I mean this will keep pinging the host until stopped by Ctrl+C.
Hping(linux only) can be used ping the multiple hosts simultaneously.
Netstat- Netstat displays protocol statistics and the current TCP/IP network connections.
Netstat is a good in built tool that comes with the windows.
The columns are
Protocol Local Address Port No Foriegn address State of connection
TCP 127.0.0.1 49198 Admin:PC 49199 Established
-a option displays all connections and listening ports.This will display for TCP as well as the UDP connections.
-b This is the best option. This displays .exe involved with processes too.
This -b option may be used to detect a trojan horse or a malware.
There are other filtering options available too.
Ipconfig – This displays the current IP of the system and its configuration and current network settings
type ipconfig & press enter.
ipconfig/all displays a detailed information.
So these are some of the useful network tools that come shipped in with Windows.