![]() |
|
[Python] Modify payloads in packets NFQUEUE + Scapy - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] Modify payloads in packets NFQUEUE + Scapy (/showthread.php?tid=4765596) |
Modify payloads in packets NFQUEUE + Scapy - The_R - Apr 6, 2015 I was searching to modify payloads in packets. And I found a succesfull way. This script will setup an iptable (tcp and destination port 80) to set each received packet into our QUEUE. standard --queue-num 0. After that I am replacing the GET method to TST just to test is. And it works. Got questions on how this all works? Feel free to ask them! PHP Code * - MR.FREE - Apr 6, 2015 Your using a Linux firewall iptable rule to grab all TCP port 80 packets and then injecting GET into those packets? Am I understanding that right? You said these packets are going into a Queue and then you inject GET? If the packets are already received(in queue), whats the thought process or benefit in injecting these packets? Your using a firewall rule to do this so either way its either your firewall or your targets firewall and you already have root so why inject packets?? Or Am I totally misunderstanding this? * - The_R - Apr 6, 2015 I use this to inject adds in http packets. With a mitm attack we can set a callback loop over each packet and inject arbitary code into each packet in the queue. Get me? The firewall rule is just to make sure only destination port 80 (http) Packets will get in the queue. |