Skip to content

Feat/nmap scanner - #32

Open
prisharai wants to merge 2 commits into
nyu-mlab:mainfrom
prisharai:feat/nmap-scanner
Open

prisharai wants to merge 2 commits into
nyu-mlab:mainfrom
prisharai:feat/nmap-scanner

Conversation

@prisharai

Copy link
Copy Markdown

Your checklist for this pull request

  • I've documented or updated the documentation of every function this PR changes
  • I've added tests that prove my fix is effective or that my feature works (if possible)

Detailed description

Adds nmap scanning to the core as a new background worker running next to the mDNS and SSDP scanners. Off by default and only runs if the user turns on the ENABLE_NMAP_SCAN setting. Results stored in existing metadata_json column.

New file nmap_scanner.py:
[more information to come]

Test plan

Run the same commands CI uses:

ruff check
pytest src/tests

Closing issues

...

prisharai added 2 commits July 6, 2026 22:05
nmap_scanner.py is self-contained module that scans devices
with nmap and stores results in devices.metadata_json

- get_devices_to_scan(): selects inspected devices that
  are due for a scan based on timestamp
- run_nmap_on_device(): runs nmap (default -sV) and
  writes them to database

No production code paths call this yet.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant