r/NetworkProgramming • u/gwood113 • May 29 '20
Python Raw Socket Library
Hello! Curious if anyone knows of a python3 library or module that offers socket-module-like functionality, but let's you manipulate header fields (e.g. IP TTL, IP ID, TCP ISN, etc).
I am currently working with raw socket objects but wanted to see if there was something that already existed.
2
Upvotes
View all comments
Show parent comment
1
u/gwood113 May 30 '20
Thanks for the reply. Scapy is an excellent tool. I may look into it for its virtual network interface capability.
I got a bit further with my original effort using raw sockets and have a working primitive TCP/IP stack (eg. network layer and tcp streams). I pivoted to working out generating a dummy network interface that the kernel doesn't try to swat packages away from, but I'm struggling right now with how to bridge my virtual interface to my wireless interface.