My Tech Note's

Categoria: python

Howto make simple duplicate packet with scapy

With scapy you can do any think.

This example, all packets to port 162 are sent to another machine too

#/usr/bin/env python2.6
from scapy.all import *
while True:
        pkt = sniff(count = 1,filter="udp and dst port 162")
        if pkt[0].haslayer(UDP):


you can do with TCP.



© 2020 Sec&Stuff&Others

Theme by Anders NorenUp ↑