Skip to content

fix: add pid_callback to expose nmap scan process PIDs (#103)#110

Open
fazalpsinfo-cmyk wants to merge 1 commit into
nmmapper:mainfrom
fazalpsinfo-cmyk:fix/extend-pid-callback-103
Open

fix: add pid_callback to expose nmap scan process PIDs (#103)#110
fazalpsinfo-cmyk wants to merge 1 commit into
nmmapper:mainfrom
fazalpsinfo-cmyk:fix/extend-pid-callback-103

Conversation

@fazalpsinfo-cmyk

Copy link
Copy Markdown

Problem

Currently, there is no way for the library caller to retrieve the process ID (PID) of the running nmap scan, making it impossible to stop or kill the scan asynchronously.

Fix

Add a pid_callback attribute on the Nmap class (and consequently on inherited/asynchronous classes like NmapAsync). When defined, this callback is invoked with the PID of the spawned process as its argument immediately after the subprocess starts.

Disclosure

Found and fixed by Muhamed Fazal PS — independent security researcher.
Support my open source security work: https://buymeacoffee.com/muhamedfazalps

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.

1 participant