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

what’s wrong? #50

Closed
wuruipeng404 opened this issue Sep 18, 2020 · 5 comments
Closed

what’s wrong? #50

wuruipeng404 opened this issue Sep 18, 2020 · 5 comments
Assignees

Comments

@wuruipeng404
Copy link

image

@Ullaakut Ullaakut self-assigned this Sep 18, 2020
@Ullaakut
Copy link
Owner

Hi @357711589, thanks for reporting this issue, I'll look into it when I have some time :) unable to parse nmap output should not happen, so it might be due to your version of nmap, I need to check on my side if I get the same result when running the same command.

@wuruipeng404
Copy link
Author

Hi @357711589, thanks for reporting this issue, I'll look into it when I have some time :) unable to parse nmap output should not happen, so it might be due to your version of nmap, I need to check on my side if I get the same result when running the same command.

nmap version is 7.80
macOS version also the latest version

This error sometimes occurs, sometimes not。
So it makes me very confused

@Ullaakut
Copy link
Owner

Ullaakut commented Sep 19, 2020

Hi @357711589 !

Using the same nmap version you did, on MacOS, I was able to reproduce this issue:

$> /usr/local/bin/nmap baidu.com -T3 --max-retries 2 --version-intensity 7 --max-rtt-timeout 3600000ms -p 1-700 --max-parallelism 20 -oX -

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE nmaprun>
<?xml-stylesheet href="file:///usr/local/bin/../share/nmap/nmap.xsl" type="text/xsl"?>
<!-- Nmap 7.80 scan initiated Sat Sep 19 13:21:17 2020 as: /usr/local/bin/nmap -T3 -&#45;max-retries 2 -&#45;version-intensity 7 -&#45;max-rtt-timeout 3600000ms -p 1-700 -&#45;max-parallelism 20 -oX - baidu.com -->
<nmaprun scanner="nmap" args="/usr/local/bin/nmap -T3 -&#45;max-retries 2 -&#45;version-intensity 7 -&#45;max-rtt-timeout 3600000ms -p 1-700 -&#45;max-parallelism 20 -oX - baidu.com" start="1600514477" startstr="Sat Sep 19 13:21:17 2020" version="7.80" xmloutputversion="1.04">
<scaninfo type="connect" protocol="tcp" numservices="700" services="1-700"/>
<verbose level="0"/>
<debugging level="0"/>

Assertion failed: (bmin <= bmax), function box, file ./utils.h, line 163.
fish: '/usr/local/bin/nmap baidu.com -…' terminated by signal SIGABRT (Abort)

It seems like it's a bug with nmap, where it attempts to make an assertion and aborts the execution because it is not met.

In the meantime, I'm not sure what to do besides to try to tweak the parameters until you find something that does not trigger this bug. Also, don't hesitate to report it to the nmap issue tracker.

(as you can see, there have been other similar issues in the past: https://github.com/nmap/nmap/issues?q=assertion+failed)

@wuruipeng404
Copy link
Author

Hi @357711589 !

Using the same nmap version you did, on MacOS, I was able to reproduce this issue:

$> /usr/local/bin/nmap baidu.com -T3 --max-retries 2 --version-intensity 7 --max-rtt-timeout 3600000ms -p 1-700 --max-parallelism 20 -oX -

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE nmaprun>
<?xml-stylesheet href="file:///usr/local/bin/../share/nmap/nmap.xsl" type="text/xsl"?>
<!-- Nmap 7.80 scan initiated Sat Sep 19 13:21:17 2020 as: /usr/local/bin/nmap -T3 -&#45;max-retries 2 -&#45;version-intensity 7 -&#45;max-rtt-timeout 3600000ms -p 1-700 -&#45;max-parallelism 20 -oX - baidu.com -->
<nmaprun scanner="nmap" args="/usr/local/bin/nmap -T3 -&#45;max-retries 2 -&#45;version-intensity 7 -&#45;max-rtt-timeout 3600000ms -p 1-700 -&#45;max-parallelism 20 -oX - baidu.com" start="1600514477" startstr="Sat Sep 19 13:21:17 2020" version="7.80" xmloutputversion="1.04">
<scaninfo type="connect" protocol="tcp" numservices="700" services="1-700"/>
<verbose level="0"/>
<debugging level="0"/>

Assertion failed: (bmin <= bmax), function box, file ./utils.h, line 163.
fish: '/usr/local/bin/nmap baidu.com -…' terminated by signal SIGABRT (Abort)

It seems like it's a bug with nmap, where it attempts to make an assertion and aborts the execution because it is not met.

In the meantime, I'm not sure what to do besides to try to tweak the parameters until you find something that does not trigger this bug. Also, don't hesitate to report it to the nmap issue tracker.

(as you can see, there have been other similar issues in the past: https://github.com/nmap/nmap/issues?q=assertion+failed)

OK, thanks a lot.

@Ullaakut
Copy link
Owner

Ullaakut commented Oct 1, 2020

Closing this here, then

@Ullaakut Ullaakut closed this as completed Oct 1, 2020
This issue was closed.
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

No branches or pull requests

2 participants