0x01 Scapy
The default user on Kali linux is root. so we don’t need to use the command “sudo scapy”!
I tried once to set up the environment on OS X but eventually i just failed. It seems to
be the libdnet problem. I tried a lot of ways to fixed this probem. God damn it, i just
can’t fix it. if you can solve this problem pls let me know!
alright. let’s get started with scapy
first. create a packet using scapy
a=IP(ttl=10)
a
< IP ttl=10 |>
a.src
’127.0.0.1’
a.dst=”192.168.1.1”
a
< IP ttl=10 dst=192.168.1.1 |>
a.src
’192.168.8.14’
del(a.ttl)
a
< IP dst=192.168.1.1 |>
a.ttl
64
as we can see the default ttl is 64.