Author Topic: Python nfqueue  (Read 2548 times)

0 Members and 2 Guests are viewing this topic.

Offline chr0mefalcon

  • NULL
  • Posts: 1
  • Cookies: 0
    • View Profile
Python nfqueue
« on: 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

Offline 0poitr

  • Peasant
  • *
  • Posts: 149
  • Cookies: 64
    • View Profile
Imagination is the first step towards Creation.