EvilZone

Programming and Scripting => Scripting Languages => : chr0mefalcon March 16, 2013, 04:32:40 PM

: Python nfqueue
: chr0mefalcon March 16, 2013, 04:32:40 PM
Im having trouble using the nfqueue module in python to intercept traffic queue from iptables.


I am able to capture the packets modify the content like i want to, but i do not know how to send them, or allow the modified version through the queue.


I haven't been able to find to much documentation on the web about this. But from what i can find is that this is how i should re accept the packets through the queue


        payload.set_verdict_modified(nfqueue.NF_ACCEPT, str(pkt), len(pkt))

[/size]where as put is the new packet you created. The packet was modified using scapy.

[/size]Any ideas why this isn't working would be really helpful. Thanks
: Re: Python nfqueue
: 0poitr March 16, 2013, 07:49:56 PM
http://www.netfilter.org/documentation/HOWTO//netfilter-hacking-HOWTO.html (http://www.netfilter.org/documentation/HOWTO//netfilter-hacking-HOWTO.html)

might help.