idealeer / xmap

XMap is a fast network scanner designed for performing Internet-wide IPv6 & IPv4 network research scanning.
Apache License 2.0
376 stars 46 forks source link

Non point-point IPv6 scanner #8

Closed demingry closed 2 years ago

demingry commented 2 years ago

I started a xmap instance on Azure virtual machine, Azure only provide IPv6 balance, not point to point (/128) public address, middle-ware convert. It can ping IPv6 address correctly and can be accessed via IPv6 address, but xmap does not work. I tried to capture network packets when scanning. Sniffer packet sent but no response(like www.sdu.edu.cn and www.sdwu.edu.cn, the two alive hosts I do promise I can correctly ping, but xmap cannot detect up). Alternatively, another provider, Ubuntu20 installed, with p2p IPv6 and I got public IPv6 add via ifconfig->eth0, but ./xmap output:

Jan 08 08:17:48.907 [ERROR] get_gateway-linux: interface specified (eth0) does not match the interface of the default gateway (). You will need to manually specify the MAC address of your gateway. Jan 08 08:17:48.907 [FATAL] xmap: could not detect default gateway address for eth0. Try setting default gateway mac address (-G).

arp -a no record, curious.

demingry commented 2 years ago

tcpdump showed obviously, ping host request with response packet, however, xmap sent request but no response packet.

idealeer commented 2 years ago

Hi, XMap identifies the gateway MAC address by arp detection (IPv4). So if arp -a does not work, XMap can neither find the gateway MAC address.

To solve this issue, just set the gateway MAC address with -G.

demingry commented 2 years ago

IPv6 only, no IPv4 supported.