Footprinting and recon using windows command line – basics :
What is footprinting and reconnaissance :
Footprinting (also known as recon) is the technique used for gathering information about the target. For knowing your target recon is important .
Types of reconnaissance :
Active reconnaissance : interacting actively with the target is active reconnaissance .
Passive reconnaissance : gathering info about the target without interacting with it .
Footprinting helps in :
- Knowing the target
- Reducing the attack area
- Identify vulnerabilitie
- Mapping target
Commands used in this tutorial :
- Ping
- nslookup
- Tracert
Ping:
To know about the usage of any command use -help option with any command
Lets ping something :
Command : ping www.certifiedhacker.com
What info it gives :
1.
Ip of target
2.
Ttl (time to live) helps in
determing the Operating Sysetem of target
3.
If the host is live or not
We can find maximum frame size by using
ping:
Command : ping www.certifiedhacker.com -f -l 1500
-f
is used for specifying not to fragment the packet
And -l is used for setting the frame size
This message means the frame is too large
and need to be fragmented .
You can try different values till you reach
the maximum size.
Like ping www.certifiedhacker.com -f -l 1450
ping www.certifiedhacker.com -f -l 1400
etc etc
tracert :
this command is used for traceroute
command :tracert www.certifiedhacker.com
this will tell the hops through which the
request reaches to destination
nslookup:
used for querying dns info of the target .
command : nslookup www.certifiedhacker.com