Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

detect the presence of nmap #691

Open
asarubbo opened this issue Nov 15, 2024 · 1 comment · May be fixed by #694
Open

detect the presence of nmap #691

asarubbo opened this issue Nov 15, 2024 · 1 comment · May be fixed by #694

Comments

@asarubbo
Copy link

If nmap does not exist on the system, it ends with:

[~] Starting Script(s)
sh: line 1: nmap: command not found
[!] Error Exit code = 127

I think would be an improvement to check if there is a working nmap binary ( like which -a nmap ), and if missing just print to install nmap to let rustscan use it.

@PsypherPunk
Copy link
Collaborator

That could work. If it's running with --scripts default something like harryfei/which-rs could detect nmap and error. Will take a look.

PsypherPunk added a commit to PsypherPunk/RustScan that referenced this issue Nov 18, 2024
if using the equivalent of `--scripts default`, use
[`which`](https://github.com/harryfei/which-rs) to verify that an `nmap`
binary can be found.

closes bee-san#691
@PsypherPunk PsypherPunk linked a pull request Nov 18, 2024 that will close this issue
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 a pull request may close this issue.

2 participants