NetPeek / fsociety
A legal, read-only look at your own network.
See who is connected to your Wi-Fi, what your own IP / MAC / DNS / listening
ports are, and get a security score for your machine — all from one friendly
command-line tool.
🇷🇺 Русский гайд для новичков: GUIDE.md — установка за 30 секунд и все команды простыми словами.
netpeek scan |
netpeek audit |
|---|---|
Install
One command. Installs both netpeek and fsociety into an isolated
environment — nothing else in your Python is touched:
pipx install netpeek
No pipx? Either install it (python -m pip install --user pipx then
python -m pipx ensurepath) or use plain pip:
pip install netpeek
Then, in a new terminal:
netpeek --help # list of commands
netpeek me # everything about this device
fsociety --help # same tool, other name
Upgrade later with pipx upgrade netpeek (or pip install -U netpeek),
remove with pipx uninstall netpeek.
Optional extra — full DNS records (MX/NS/TXT/DKIM) via dnspython:
pipx inject netpeek dnspython # or: pip install "netpeek[dns]"
Install from source
Clone the repository (for development, or if you prefer a checkout)
git clone https://github.com/dskil/netpeek.git
cd netpeek
then one of these — all three give you the netpeek and fsociety
commands:
| Your OS | Best option | What it does |
|---|---|---|
| Windows | double-click install.cmd (or run it) |
creates an isolated .venv, installs, and adds it to your user PATH |
| Linux / macOS / Git Bash | ./install.sh |
same, and adds the venv to your shell rc file |
| Anywhere | pip install . |
classic install into the active Python |
Then, in a new terminal:
netpeek --help
netpeek me
Don't want to install anything?
Run it straight from the checkout — every wrapper falls back to
python -m netpeek when the package is not installed:
# Windows (cmd / PowerShell)
netpeek.bat --help
fsociety.bat me --ip
# Linux / macOS / Git Bash
./bin/netpeek --help
./bin/fsociety me --ip
All you need is Python 3.9+ on PATH. Nothing is written outside the
repository, and install.cmd / install.sh never need administrator rights.
Removing it
# Windows
uninstall.cmd
# Linux / macOS
./uninstall.sh
That deletes .venv and removes the PATH entry it added. If you installed
with pipx install netpeek, remove it with pipx uninstall netpeek; with
pip install, use pip uninstall netpeek.
$ netpeek me --ip
── IP ADDRESSES ────────────────────────────────────────
Wi-Fi : 192.168.0.42 (IPv4)
Ethernet : 10.0.0.15 (IPv4)
public : 203.0.113.7 (AS64500 Example ISP, XX)
subnet : 192.168.0.0/24
(Addresses in this README use documentation ranges such as 192.0.2.0/24, 198.51.100.0/24 and 203.0.113.0/24, plus the common private example 192.168.0.x — never a real user's addresses.)
Same tool, two names.
netpeekandfsocietyare the same package with the same commands —fsocietyis the name for people who remember the show. Install once, use either.
Why it is legal
NetPeek is a diagnostic tool, not an attack tool. By design:
| It does | It never does |
|---|---|
| Reads what the OS already knows about this machine | No exploits, no cracking, no brute force |
| Pings and reads the ARP table of your own subnet | No scanning outside your private networks |
| Connects to ports of hosts on your network | No data exfiltration, no modification of any system |
| Queries public data (DNS, whois, your own public IP) | No credentials, no passwords, no man-in-the-middle |
The guard is enforced in code, not just in the docs:
netpeek/guard.py refuses every active target that is not
loopback, not this machine, or not inside one of the private subnets this
machine is directly connected to.
Use it on networks you own, or where you have written permission. Check your local laws — scanning even a home network you do not administer can be illegal.
Requirements
Requires Python 3.9+. No mandatory third-party dependencies — the standard
library only. dnspython is an optional extra that upgrades the dns command
(with it, netpeek dns <domain> returns MX, NS, TXT, CNAME and DKIM
selectors; without it, A and AAAA records still resolve).
Works on Windows, Linux and macOS.
The screenshots in this README are generated by
python scripts/render_samples.pyfrom fixed sample text in documentation IP ranges — no real machine's data is published.
Quick start
netpeek me # everything about this device
netpeek me --ports # which ports THIS device is listening on
netpeek scan # who is on my LAN right now
netpeek ports 192.168.0.1 # open ports of my router
netpeek report # writes report.md + report.json
fsociety accepts exactly the same arguments:
fsociety scan
fsociety --help # usage: fsociety ...
What the output looks like
Colours make the important part jump out: labels are grey, addresses and ports are bold cyan, warnings are yellow, "all good" values are green.
── WHOIS — EXAMPLE.COM ─────────────────────────────────
type : domain
registrar : RESERVED-Internet Assigned Numbers Authority
registered : 1995-08-14T04:00:00Z
expires : 2027-08-13T04:00:00Z (265 days left) ← green
last changed: 2026-08-14T07:01:34Z
domain : EXAMPLE.COM ← bold cyan
Colours are turned off automatically when the output is piped or redirected,
and --no-color forces plain text.
Commands
About my device
| Command | What it does |
|---|---|
me |
Full passport of this machine: interfaces, IPs, MACs, gateway, DNS, listening ports, active connections, Wi-Fi |
me --ip / --mac / --dns / --ports / --conns / --wifi / --gateway |
Only that section |
ip |
Local IPv4/IPv6, public IP and your subnets |
mac |
MAC of every interface + hardware vendor |
gateway |
Default gateway and DNS servers |
dns |
DNS servers in use (no argument), or records for a domain |
dns <domain> |
A/AAAA/MX/NS/TXT/CNAME + SPF, DMARC, DKIM check |
myports |
Ports this machine listens on, flagged if reachable from the LAN |
conns |
Active established TCP connections of this machine |
wifi |
SSID, signal, channel, cipher, security |
myip |
Public IP + country / city / provider |
My network
| Command | What it does |
|---|---|
scan |
Devices in your LAN: ICMP sweep fills the ARP cache, then IP + MAC + vendor |
scan --no-sweep |
Passive: only what the ARP cache already knows (instant) |
scan --resolve |
Also try reverse-DNS names |
ports <ip> [--range 22,80,1000-1010] |
Open TCP ports of a host on your subnet |
ports <ip> --dry-run |
Validate the target without sending packets |
banner <ip> <port> |
Service banner (e.g. router login page headers) |
subnet [cidr] |
Mask, range, broadcast, usable hosts |
Public data
| Command | What it does |
|---|---|
whois <domain|ip> |
Registrar, registration/expiry dates, owner (via RDAP) |
tls <host> |
Certificate issuer, expiry and days left |
Health & score
| Command | What it does |
|---|---|
audit |
Findings: exposed risky ports, firewall, last OS update, file permissions |
score |
0–100 score with a short explanation |
firewall |
Firewall status (Windows Defender / ufw / firewalld / pf) |
updates |
Last installed OS update / pending upgrades |
Reports & automation
| Command | What it does |
|---|---|
report |
Full snapshot → report.md + report.json |
export --format md|json|csv|html |
Export the current snapshot |
diff old.json new.json |
Devices that appeared / disappeared / changed MAC |
watch [--interval 60] |
Repeat scan, print devices joining and leaving |
history |
Your recent NetPeek commands (local log) |
Settings
| Command | What it does |
|---|---|
init |
Create config.toml |
config / config get <key> / config set <key> <value> |
Show or change settings |
--json |
Any read-only command can output machine-readable JSON |
--no-color |
Disable ANSI colours (auto-disabled when piped) |
version / --version |
Version information |
Every command supports --help:
netpeek --help # list of commands
netpeek me --help # options of `me`
netpeek ports --help # options of `ports`
JSON output
Every read-only command accepts --json, which makes scripting easy:
netpeek me --ip --json # {"ipv4": [...], "public_ip": ...}
netpeek scan --json # [{"ip": "...", "mac": "...", "vendor": "..."}]
netpeek ports 192.168.0.1 --json
netpeek audit --json
--json also disables colour and never splits a table across lines.
Configuration
Stored outside the repository:
- Windows —
%APPDATA%\netpeek\config.toml - Linux/macOS —
~/.config/netpeek/config.toml
[scan]
sweep = true # sweep before reading the ARP cache
timeout_ms = 400 # ping timeout
workers = 64
[ports]
common_only = true
timeout_s = 0.4
[output]
colour = true
[safety]
require_local_targets = true # keep this on
netpeek config set scan.timeout_ms 800 edits it safely.
Exit codes
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Runtime problem (offline, service unavailable) |
2 |
Usage error — including a target outside your network |
130 |
Interrupted with Ctrl+C |
How it works (and why it is safe)
- Discovery — reads the ARP/neighbour table and, unless
--no-sweepis used, sends a bounded ICMP sweep (max /22) over the private subnets the machine is attached to. No raw sockets, no root required. - Port scan — plain TCP
connect()on a curated port list or a range you choose, after the target passes the guard. - Passwords — never asked, never guessed, never stored.
- Reports — written locally, and
report.*is in.gitignoreso your own network details don't end up on GitHub by accident. - Windows encoding — helper processes are decoded explicitly so Cyrillic or other non-ASCII interface names come out correctly.
Development
pip install ".[dev]"
python -m pytest -q
python -m netpeek --help # runs without installing
python -m netpeek me
The zero-install wrappers are handy during development too:
netpeek.bat --help # Windows
./bin/netpeek --help # Linux / macOS / Git Bash
Before publishing, run the self-check — it runs everything a reviewer would run and prints a PASS/FAIL list:
python scripts/check_before_publish.py
It verifies: required files, both console scripts, no leftover REPLACE_ME,
no real IP addresses committed, reports git-ignored, the whole pytest suite,
--help for every command, that netpeek and fsociety expose identical
commands, that the guard refuses foreign targets, that the real commands work
on this machine, that report writes both files, that both .bat wrappers
work without installing, that install.cmd's dry-run is safe, and that the
package builds into a wheel.
netpeek/
├── pyproject.toml # two console scripts: netpeek + fsociety
├── install.cmd # Windows: venv + install + PATH
├── install.sh # Linux/macOS: same
├── uninstall.cmd # undo the above
├── uninstall.sh
├── netpeek.bat # run without installing (Windows)
├── fsociety.bat
├── bin/
│ ├── netpeek # run without installing (Linux/macOS/Git Bash)
│ └── fsociety
├── scripts/
│ └── check_before_publish.py # pre-publish verification
├── netpeek/
│ ├── main.py # argparse CLI, one handler per command
│ ├── netinfo.py # interfaces, MAC, gateway, DNS, hostname, Wi-Fi
│ ├── ports.py # listening ports & active connections
│ ├── lanscan.py # ARP cache + ping sweep
│ ├── scanner.py # TCP port scan + banner grab
│ ├── guard.py # legality boundary: only local targets
│ ├── external.py # public IP, DNS, whois, TLS
│ ├── audit.py # findings + score
│ ├── report.py # md/json/csv/html output and diff
│ ├── config.py # settings + local history
│ └── util.py # colour, subprocess, IP helpers
└── tests/
Roadmap
- mDNS / Bonjour discovery (optional
zeroconfpackage) - HTML report with charts
- Local OUI database refresh in
update -
systemd/Task Scheduler integration forwatch
Legal
NetPeek is provided for defensive, educational and administrative use on networks you own or are authorised to inspect. Scanning, probing or enumerating systems without permission may be illegal in your country.
The authors accept no liability for misuse. See LICENSE (MIT).
Metadata
Release files for netpeek 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| netpeek-1.0.1.tar.gz | 46.9 kB | With provenance | Details for netpeek-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netpeek-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for netpeek-1.0.1-py3-none-any.whl |
Total release size: 91.5 kB
Release files / netpeek-1.0.1.tar.gz
| Download URL | netpeek-1.0.1.tar.gz |
|---|---|
| Size | 46.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f589e96432b0a0a77cbe2faa4a5ee6fe913f1fd4b9b79b3bbaee13415936911
|
|
BLAKE2b-256 checksum How to use checksums |
2cad859f70fbc17a2d7f9b2b779ba39112dc8d6bc2bf983f0432d243b2875f05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / netpeek-1.0.1-py3-none-any.whl
| Download URL | netpeek-1.0.1-py3-none-any.whl |
|---|---|
| Size | 44.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae09d36b572f16c87d6517a46c075ff1f4f78610decd715ad3ee148639fc99d5
|
|
BLAKE2b-256 checksum How to use checksums |
724d9945cf5ee296cafe11117c7087fb764ff77bb3bcdf721f0db40612ede79c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for netpeek 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for netpeek-1.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.