Assertion `source->ss_family == AF_INET' failed. · Issue #2757 · nmap/nmap · GitHub
Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert Assertion `source->ss_family == AF_INET' failed. #2757 New issue Copy link New issue Copy link Closed Closed Assertion `source->ss_family == AF_INET' failed. #2757 Copy link Labels Nmap Description Gispa opened on Dec 7, 2023 Issue body actions Describe the bug Scan aborts when attempting to scan TCP port 53 with these scan options sudo nmap <targetIP> -p53 -D RND:5 -n -Pn -A . this is the output: Starting Nmap 7.94 ( https://nmap.org ) at 2023-12-07 18:45 AEDT nmap: traceroute.cc:653: virtual unsigned char* ICMPProbe::build_packet(const sockaddr_storage*, u32*) const: Assertion source->ss_family == AF_INET' failed.
Aborted` To Reproduce sudo nmap <targetIP> -p53 -D RND:5 -n -Pn -A Expected behavior Scan to complete and display port 53 version details Version info (please complete the following information): OS: Linux Parrot OS 5.3 (Oracle Virtual Machine) Output of nmap --version : Nmap version 7.94 ( https://nmap.org ) Platform: x86_64-unknown-linux-gnu Compiled with: nmap-liblua-5.4.4 openssl-1.1.1w nmap-libssh2-1.10.0 libz-1.2.11 nmap-libpcre-7.6 nmap-libpcap-1.10.4 nmap-libdnet-1.12 ipv6 Compiled without: Available nsock engines: epoll poll select Output of nmap --iflist Starting Nmap 7.94 ( https://nmap.org ) at 2023-12-07 18:50 AEDT INTERFACES DEV (SHORT) IP/MASK TYPE UP MTU MAC lo (lo) 127.0.0.1/8 loopback up 65536 lo (lo) ::1/128 loopback up 65536 enp0s3 (enp0s3) 10.0.2.15/24 ethernet up 1500 08:00:27:A3:EB:68 enp0s3 (enp0s3) fe80::978f:cd0d:9567:1f9f/64 ethernet up 1500 08:00:27:A3:EB:68 tun0 (tun0) 10.10.14.101/23 point2point up 1500 tun0 (tun0) fe80::fca7:9a68:a346:be35/64 point2point up 1500 tun0 (tun0) dead:beef:2::1063/64 point2point up 1500 ROUTES DST/MASK DEV METRIC GATEWAY 10.0.2.0/24 enp0s3 100 10.10.10.0/23 tun0 0 10.10.14.1 10.10.14.0/23 tun0 0 10.129.0.0/16 tun0 0 10.10.14.1 0.0.0.0/0 enp0s3 100 10.0.2.2 ::1/128 lo 0 dead:beef:2::1063/128 tun0 0 fe80::978f:cd0d:9567:1f9f/128 enp0s3 0 fe80::fca7:9a68:a346:be35/128 tun0 0 ::1/128 lo 256 dead:beef:2::/64 tun0 256 fe80::/64 tun0 256 dead:beef::/64 tun0 1024 fe80::/64 enp0s3 1024 ff00::/8 enp0s3 256 ff00::/8 tun0 256 Additional context Using Openvpn to connect to HackTheBox Academys VPN to complete the medium lab in the module Network enumeration with Nmap. completed it successfully earlier in the day, went to try again to make notes and this happened.
Activity Gispa added Nmap on Dec 7, 2023 xmehulx commented on Jul 12, 2024 xmehulx on Jul 12, 2024 More actions Try adjusting the speeds. For me this still happens when combining the -D flag with speed -T4 . That's when I am able to reproduce it I guess all the time. nmap-bot closed this as completed in a600528 on Jun 17, 2025 pull added a commit that references this issue on Jun 17, 2025 Set ss_family when generating random decoys.
Fixes nmap#2757 . This issue will close once commit a600528 is merged into the 'master' branch. a600528 Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Metadata Metadata Assignees No one assigned Labels Nmap Type No type Projects No projects Milestone No milestone Relationships None yet Development No branches or pull requests Issue actions You can’t perform that action at this time.