Skip to content

Starfurye/scanner_LAN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Port Scanner on LAN

This scanner is only available on Linux, do not try to run it on Windows and WSL cause the latter do not support physical network adapter.

Not recommended on other Unix distributions, they may have different definitions for protocol handlers.

Building

  1. make
$ make
  1. clean files
$ make clean

Usage

  1. Scan all hosts on LAN, it uses fping to search hosts in LAN, search results is saved in hosts.log:
$ sudo ./scanner
  1. Scan specific host with ip address:
$ sudo ./scanner -i [ip address]
$ sudo ./scanner -i 192.168.1.102
  1. Scan specific hosts with ip address within [start port, end port]:
$ sudo ./scanner -i [ip address] [start port] [end port]
$ sudo ./scanner -i 192.168.1.102 251 996

about default values

It's free to configure default values since this scanner is under development up to now.

In common.c > getHosts(), line 30

CIDR address for fping: 192.168.1.0/24;

In common.h, line 26, 27:

default start port: 1, default end port: 1024.

About

A simple TCP port scanner on LAN.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published