tag:blogger.com,1999:blog-7303400454979750101.post2614877842172989127..comments2024-03-28T06:49:56.390-07:00Comments on Learning by practicing: Crafting your first IPv6 ICMPv6 Echo Request packet, with a taste of scapyNik Alleyne, MSc | CISSP | GC|IA|IH|REM|PENhttp://www.blogger.com/profile/10282323977269843041noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7303400454979750101.post-62000567376638669072016-09-08T05:52:01.480-07:002016-09-08T05:52:01.480-07:00Hmmmm, do you wish to send me a sample code to my ...Hmmmm, do you wish to send me a sample code to my gmail? Maybe I can help. No promises though as I'm quite busy over the next few weeks.Nik Alleyne, MSc | CISSP | GC|IA|IH|REM|PENhttps://www.blogger.com/profile/10282323977269843041noreply@blogger.comtag:blogger.com,1999:blog-7303400454979750101.post-45846197746364653822016-09-07T22:32:35.842-07:002016-09-07T22:32:35.842-07:00Nik, the reason why I am going this route is preci...Nik, the reason why I am going this route is precisely because I didn't want to use subprocess. The code that I am replacing forks a call to the ping command.Jeff Silverman, Linux sysadminhttps://www.blogger.com/profile/04440802525152028157noreply@blogger.comtag:blogger.com,1999:blog-7303400454979750101.post-20061305516430817062016-09-07T16:11:11.679-07:002016-09-07T16:11:11.679-07:00Jeff,
You may have to try using the python subproc...Jeff,<br />You may have to try using the python subprocess module to redirect that output from stdout to stdin.Nik Alleyne, MSc | CISSP | GC|IA|IH|REM|PENhttps://www.blogger.com/profile/10282323977269843041noreply@blogger.comtag:blogger.com,1999:blog-7303400454979750101.post-16361428985995752642016-09-07T13:30:34.982-07:002016-09-07T13:30:34.982-07:00I am generating an ICMPv6 packet (actually 4 of th...I am generating an ICMPv6 packet (actually 4 of them) using<br /> ans, unans = . srloop(IPv6(dst="fdda:cfd2:28e3:4328:216:25ff:FFFF:FFFE")/ ICMPv6EchoRequest(), count=4, inter=4, timeout=5)<br />and then I measure the length of ans. This works for IPv4, if ans is length 0, then I have 100% failure. However, this does not work for ICMPv6 because ans is full of packet that contain... something... that has ICMPv6DestUnreach in it. I use ans.show(). Unfortunately, this output goes to stdout, whereas I want to look at it using a program.<br />Do you have a suggestion? Thank you.Jeff Silverman, Linux sysadminhttps://www.blogger.com/profile/04440802525152028157noreply@blogger.com