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

Segmentation fault when using invalid port wildcard #2658

Closed
SpaghettiBorgar opened this issue Jun 12, 2023 · 1 comment
Closed

Segmentation fault when using invalid port wildcard #2658

SpaghettiBorgar opened this issue Jun 12, 2023 · 1 comment
Labels

Comments

@SpaghettiBorgar
Copy link

nmap crashes when using invalid expressions in place for numeric wildcard arguments such as for the ports to scan

To reproduce, run nmap -p somestring

While it's an invalid argument, it should still catch and show the error.

  • OS: Linux 6.3.7
  • Output of nmap --version:
Nmap version 7.94 ( https://nmap.org )
Platform: x86_64-pc-linux-gnu
Compiled with: liblua-5.4.6 openssl-3.1.1 libssh2-1.10.0 libz-1.2.13 libpcre-8.45 libpcap-1.10.4 nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select
@dmiller-nmap
Copy link

Thanks for this report! I can reproduce here and I'm looking for a good fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants