Segmentation fault when attempting to intercept ICMP packet based on tutorial provided.

Short Issue Description: Segmentation fault when attempting to intercept ICMP packet based on the tutorial provided.

Actions to trigger Issue:

  1. Defined iptables rule as per description provided

iptables -I INPUT 1 -p icmp -j NFQUEUE --queue-balance 0:2

  1. Run python file with following command:

python3 <filename.py>

2b. Code is as follows:

image

  1. Segmentation fault occurs when a ICMP packet is sent over.

No further error message is provided.

Thank you very much for this library, I am attempting to change the data segment of a ICMP packet to learn pypacker. However I was faced with this segmentation fault error.

Thank you!

Edited by Tan Hwei Qiang