Skip to content
ppp16bitPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

55 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netls

netls discovers devices on the local network with ARP and displays a stable snapshot of what each user-requested scan observed.

Install

Requirements:

  • Linux
  • Go 1.26.5 or newer
  • make, sudo, and the setcap/getcap tools

Build, install to /usr/local/bin, and grant the raw-socket capability needed for ARP discovery:

git clone https://github.com/ppp16bit/netls.git
cd netls
make install

The Makefile provides these targets:

Command Action
make build Build ./netls without elevated privileges
make install Build, install to /usr/local/bin, apply CAP_NET_RAW, and verify it
make verify Verify the installed binary has CAP_NET_RAW
make clean Remove the local build

make install uses sudo only to create the installation directory, install the binary, and apply its capability. To build locally without installing:

make build
sudo setcap cap_net_raw+ep ./netls

Reapply setcap whenever the binary is rebuilt or replaced.

Use

List the available network interfaces:

netls interfaces

Open the interactive UI. It starts idle; press s when you are ready to scan:

netls

The TUI uses the terminal's ANSI palette, so its colors follow the active terminal theme. Color output defaults to automatic detection and can be controlled explicitly:

netls --color=auto
netls --color=always
netls --color=never

In auto mode, terminal capabilities and conventional environment settings such as a non-empty NO_COLOR are respected.

Terminal UI commands:

Key Action
↑ / ↓ or j / k Move the selection
g / G or Home / End Select the first / last device
s Start the initial scan
r Rescan from the results screen
/ or Ctrl+F Filter the current snapshot
e Edit the custom name
t / T Add / remove a tag
n / N Edit / remove notes
l / L Edit / remove the role override
f Toggle favorite
x Export the current snapshot
* Toggle favorite-only filtering
o Cycle name, IP, and role sorting
? Show all shortcuts
q Quit

Scan or list devices on a specific interface:

netls scan --interface wlan0
netls devices --interface wlan0

Each scan reports devices that answered on the current local broadcast domain; ARP does not cross routers or VLANs, and a missing reply does not prove a device is offline. TUI results remain unchanged until you explicitly rescan. Run netls help for all commands and options.

By default, custom names, favorites, notes, tags, and role overrides are stored in SQLite under the user configuration directory. Set NETLS_DB=off or NETLS_DB=memory for process-local, non-persistent overrides. Discovery fields such as IP, hostname, and vendor are never stored as device history.

If scanning fails with operation not permitted, grant the capability to the exact binary being run:

sudo setcap cap_net_raw+ep "$(command -v netls)"
getcap "$(command -v netls)"

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages