Searched via google a lot about this question but I can't figure out a solution for this. I am trying to implement an MPI portscanner using the gnu c hping library. Only problem is, the hping homepage is down, and the usage is for shell only. I want to use hping to check if a port is open or closed (three-way-tcp handshake successful or not).
Are there any examples for this?
You can execute hping and parse its output. Algorythm is simple: