Skip to content

Conversation

@poyotanp
Copy link

Description

This PR implements a port scanner for Linux using the ss and ps commands.
Also, the parse_address function defined in darwin.rs has been moved to a separate utils.rs as it can be used generically by scanners on other platforms.

How it works

  • Use ss -Htlnp to get the ports being used, their PIDs, and process names.
  • Use ps -axo pid,user,command to get the PID, user, and full command.

Changes

  • scanner/linux.rs: Implement a Linux port scanner.
  • scanner/darwin.rs & scanner/utils.rs: Move parse_address function to utils.rs

@productdevbook productdevbook merged commit cce43ee into productdevbook:feat/rust-backend Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants