Injecting code in the content of web packets using scapy and netfilterqueue. Basic packet manipulation techniques are explored in the following codes. We first remove encoding to make the response packets readable. This response is then manipulated using regex.
Download the repository, run the main program using:
Python == 3.7.4
Scapy == 2.4.3
NetfilterQueue == 0.8.1
File | Information |
---|---|
flush.py | Run this once the main program has closed |
injector.py | Main program |
output.png | Injection screenshot |
removeEncoding.py | Make responses readable |
setup.py | Run this before injection |
injectorhttps.py | Main program for HTTPS, read the comments before running! |