On Wed, Jun 20, 2012 at 12:23 AM, adwiteeya agrawal
<adwiteey...@gmail.com> wrote:
Hello,
I wish to do source routing using hping3. I am not sure how to specify the IP addresses for the hops to make. the man command only said that it can include a max on 9 routes and something regarding the RECORD_ROUTE
but i am not exactly able to figure out how to use it
Thanks in advance :)
Source routing is disabled on a lot of machines in an internal network(as it gives an attacker about path packets going out of a network take.) That might be the reason hping is not working for you.
Looking at the man pages of hping, it seems that --lsrr and --ssrr are the options you need.
Normal traceroute working includes sending packets of increasing TTL values and observing the Time-Exceeded packet sent by each intermediate routing device. This logic is obviously not possible for source routing - source routing is implemented using RECORD_ROUTE.
If the RECORD_ROUTE option is checked, a routing device inserts its own address into a structure into the IP datagram and forwards it, and thats how source routing works.
Cheers,
zm
--
Get ready for the Dilli Shakedown!
nullcon security conference Delhi Sept 26-29th 2012
http://nullcon.net
null - Spreading the right Information
null Mailing list charter: http://null.co.in/section/about/null_list_charter/