Python Forum

Full Version: Scapy, creating response for GET request.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
I built code to sniff GET requests. When I detect GET request I drop it (using other tool I stop it from reaching the router) and then I want to create fake response with html code of webpage. How can I do that? I tried but after GET I need to send ACK before sending the code and I don't know how to send ACK.
You are asking us to help you in creating man in the middle tool?
No, I have the code already. I just don't know how to responds to GET request using scapy.
I think here is one example.
This is what I was lookig for. Thanks for help.