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

Sendto errors always truncate #2797

Open
executionByFork opened this issue Mar 11, 2024 · 0 comments
Open

Sendto errors always truncate #2797

executionByFork opened this issue Mar 11, 2024 · 0 comments
Labels

Comments

@executionByFork
Copy link

executionByFork commented Mar 11, 2024

Describe the bug
When Sendto errors occur, after 10 are generated a message is sent informing the user that future errors will be omited which reads as follows:

Omitting future Sendto error messages now that 10 have been shown.  Use -d2 if you really want to see them.

This message says that the omission can be bypassed by using the -d2 flag. However, after rerunning the scan with -d2, these errors are still omitted and no longer written to stderr. I additionally tried running a scan without -d2 and instead increasing the debugging level to 2 with the d key. Errors were still omitted.

The errors in question that I would like to continue being written to stderr look like this:

Offending packet: TCP 10.X.X.X:PORT > 10.X.X.X:PORT S ttl=54 id=19711 iplen=44  seq=4025177164 win=1024 <mss 1460>sendto in send_ip_packet_sd: sendto(9, packet, 44, 0, 10.X.X.X, 16) => Operation not permitted

Note: This issue was encountered by another user as can be seen mentioned on this stackexchange post
https://unix.stackexchange.com/q/337082/229446

To Reproduce
Block IPs via iptables firewall, and run a scan against them to generate Sendto errors. Attempt to use -d2 to bypass the 10 error limit.

Expected behavior
Using the -d2 flag, or increasing debug level to 2+, should print all Sendto errors.

Version info (please complete the following information):

  • OS:
$ lsb_release -a                          
No LSB modules are available.
Distributor ID: Kali
Description:    Kali GNU/Linux Rolling
Release:        2024.1
Codename:       kali-rolling
  • Output of nmap --version:
$ nmap --version
Nmap version 7.94SVN ( https://nmap.org )
Platform: x86_64-pc-linux-gnu
Compiled with: liblua-5.4.6 openssl-3.1.4 libssh2-1.11.0 libz-1.2.13 libpcre2-10.42 libpcap-1.10.4 nmap-libdnet-1.12 ipv6
Compiled without:
Available nsock engines: epoll poll select
  • Output of nmap --iflist
    Not posting. I don't wish to leak client info and this error seems system independent.
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