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

nmap -sV --open --host-timeout 300 -n -T4 -oX - <ip> #2802

Open
dksupriya opened this issue Mar 14, 2024 · 0 comments
Open

nmap -sV --open --host-timeout 300 -n -T4 -oX - <ip> #2802

dksupriya opened this issue Mar 14, 2024 · 0 comments
Labels

Comments

@dksupriya
Copy link

Describe the bug

I am using the 7.70 version on Nmap on centos server. I run the following scan on an IOT device(Electronic controller for a lighting system).
nmap -sV --open --host-timeout 300 -n -T4 -oX -
The nmap command on some hosts never completes and its stuck there for a long time. A core dump gets generated and as per the core dump, it throws a seg fault.
So, I face two issues here

  1. Even though there is a host-timeout, the timeout is not honored
  2. It throws a segmentation fault and generates a core dump maybe after an hour of trying to scan.

I also ran the command with "-d2 --version-trace --packet-trace" option but could not keep it running till the scan throws seg fault.

I ran backtrace on the core file and see only following error

(lldb) bt all

thread I get this error scanning against my gpsd #1, name = 'nmap', stop reason = signal SIGSEGV
frame #0: 0x000000000050c978
I am using this command in my application and want to gracefully exit the scan. Let me know if this is a known issue or is there a workaround.

To Reproduce

Run the following command line on a linux box and we do not get any result even after an hour.
nmap -sV --open --host-timeout 300 -n -T4 -oX -

Expected behavior

Expect the host-timeout to be honored and return a result in 5 min

Version info (please complete the following information):

  • Linux
  • Nmap 7.70
  • Output of nmap --iflist

Additional context
Add any other context about the problem here, such as special network type.

@dksupriya dksupriya added the Nmap label Mar 14, 2024
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

1 participant