3 ms·
I've been wanting to learn more about the low level networking space. Is this a good library to use as a springboard for that?
by tomrod 5y ago
I've been wanting to learn more about the low level networking space. Is this a good library to use as a springboard for that?
- fedeb95 5y agoI've used it successfully for my ends in a personal project of mine. Together with wireshark it's good for learning in my experience
- ttyprintk 5y agoThe built-in sockets library in Python tells you which constants are already available, and has useful functions like gethostbyaddr. Since you didn’t mention a platform, also note that (last I looked) WSL was inadequate for crafting raw packets.
- deleted 5y ago[deleted]
- freedomben 5y agoIt really depends on how much you already know. "Practical Packet Analysis" (No Starch Press) is a great book that I really appreciated: https://nostarch.com/packetanalysis3 https://nostarch.com/packetanalysis3
- zamadatix 5y agoThis also depends what you consider "low level networking" and how you want to learn. Scapy can be made to work it may just be either under or overkill depending on what you are wanting to achieve. Implementing HTTP from the ground up? Scapy is probably overkill, just open a TCP socket in your language of choice and start building. Just want to understand what happens if different fields are changed below what a standard TCP/UDP socket call gets you access to? Scapy is a great choice to abstract the OS specific pieces out of the way and provide you with prebuilt blocks to base your experimentation off of.