![]() ![]() I am intrested in further development of this scanner. After that working thread waits for some timeout, stops its listening thread and prints out listening thread's report about received packets. After that scanner fills up a stack of addresses to scan (like a list of jobs to be done).Įach working thread makes one listening thread, and than picks up one host address from stack, than creates and send raw SYN-packets, one packet for each port in a scanning range. At a startup it creates some number of threads, but not greater than the number of hosts to scan, and not greater than MAX_THREADS constant, specified in the header file. scanner 192.168.10.0/24 123-321 -d -d flag means services detection (scanner will try to find each open port in association table) Since in UNIX systems (including Linux) you must have user priveleges, therefore you have to run scanner with sudo. It can scan just one host, or a specified subnet, if you want to.Ĭompile: gcc main.c -o scanner -lresolv -pthread Usage You may learn more about scan techniques here This scanner uses TCP SYN technique to distinguish between open and closed ports. This is an educational project, which I wrote as a networks task for university. Here you can find a simple port-scanner for Linux, just like NMap, but tiny. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |