[HN Gopher] How to send raw network packets in Python with tun/tap
       ___________________________________________________________________
        
       How to send raw network packets in Python with tun/tap
        
       Author : mfrw
       Score  : 14 points
       Date   : 2022-09-06 17:39 UTC (5 hours ago)
        
 (HTM) web link (jvns.ca)
 (TXT) w3m dump (jvns.ca)
        
       | GekkePrutser wrote:
       | Scapy is also super handy for this:
       | https://pypi.org/project/scapy/
        
       | zamadatix wrote:
       | Honorable mention: If you create a VXLAN interface instead of a
       | TUN/TAP interface you can send/receive packets via normal UDP
       | streams with no platform specific logic in your code (assuming
       | UDP networking is part of the std lib of your language of
       | choice). I wouldn't recommend using that solution in production
       | but it's great for quick and easy ground up testing/hacking
       | assuming you don't need to control the buffer exactly you just
       | want to send some bits.
        
       ___________________________________________________________________
       (page generated 2022-09-06 23:02 UTC)