Footprinting Lab 1
Footprinting Lab 1: whois,ping,tracert
My resume of module 02 footprinting form CEH material
Level: ultra easy
Get max Frame size
To get max frame size using ping command:
-
On Windows
1
> ping www.certifiedhacker.com -f -1 1500
Where:
- -f send fragmented frames
- -l buffer size
-
On Linux
1
$ ping www.certifiedhacker.com -s 1500
Where:
- -s buffer size
On Windows is needed specify that frames are fragmented (-f)
On Linux all frames are already fragmented by default
Check host response
If the host response like a normal ping:
|
|
the host accepts the frame size (10 in the above example)
but if get no response or any other error, the host not accepts the frame size
Using ping as traceroute
In a terminal
- On Windows
1
> tracert www.google.com
- **On Linux
1
$ traceroute www.google.com
these commands show the paths of trafic from your pc to internet
but how get the same result only using a ping command?
R: using TTL (Time To Live) parameter
-
On Windows
1
> ping www.google.com -i 1 -n 1
where:
- -i TTL in miliseconds
- -n number of frames tho send
-
**On Linux
1
$ ping www.google.com -t 3 -c 1
where:
- -t TTL in miliseconds
- -c stop after n replies
Get Paths
Specifing the TTL parameter, the response show a diferent ip like this:
|
|
in this case i get 192.168.2.1 (my home gw)
Now with TTL to 3:
|
|
i get 10.11.254.113, simply increasing TTL your get a diferent ip until get the final ip 64.233.186.105
this is a very easy technique to get paths like traceroute or tracert
Nslookup
This tool is used to check DNS records for solve problems, to get ip addres associated to an URL:
- On Windows
1
> nslookup google.com
- **On Linux
1
$ nslookup www.google.com
to get more detailled info about this command check here