pellegre / libcrafter

A high level C++ network packet sniffing and crafting library.
298 stars 88 forks source link

Portscan #6

Closed MyZeD closed 10 years ago

MyZeD commented 10 years ago

Hello anybody,

how to adding a method or class to scanning a port or a range of ports over TCP and UDP ?

Regards MyZeD

pellegre commented 10 years ago

hello, you can start by looking at this example : https://github.com/pellegre/libcrafter-examples/blob/master/TCPTraceroute/main.cpp

you should replace the TTL field by different ports and then analyze the response by looking RST or SYN/ACK flags to check if the port is open or close.

MyZeD commented 10 years ago

Okay, thanks