Skip to content

Assertion `source->ss_family == AF_INET' failed. #2757

@Gispa

Description

@Gispa

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.

Nmaperror

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions