Custom TCP/IP stack for port scanning
I’ve been working on a port scanner that aims to detect a specific type of service that common port scanners, such as masscan and nmap, cannot analyze. It’s been working somewhat well.
However, I recently changed my implementation to use async IO instead of blocking IO to reduce the amount of threads required. Now, it’s becoming too fast, quickly exhausting all ports and causing errors. To fix this, I need to implement a custom event-driven TCP/IP stack, but this is a time-consuming process.
At this point, I’m considering using libraries like smoltcp. However, I have no experience with custom TCP/IP stacks and I’m unsure about the best course of action.
Note: port scanning itself is legal (at least in my country). Also, I don’t care about languages. I can laern.
submitted by /u/Toshimichi0915
[link] [comments]