robertdavidgraham / masscan

TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.
GNU Affero General Public License v3.0
23.09k stars 3.03k forks source link

Masscan in termux. Rmnet_data1 mac-adress error #542

Open 2chfl opened 3 years ago

2chfl commented 3 years ago

I'm trying to run masscan under termux. It works fine over WiFi, but completely fails over the mobile network (interface rmnet_data1). It doesn't start because it requires explicit mac-adress, but rmnet_data1 interface has no mac-address.

Nmap through the same interface works fine.

I also attach the results of ifconfig. The interface has no mac address.

mass1 mass2

I looked through the other tips and there it was mentioned that you can specify --adapter-mac 00-00-00-00-00-00-00. It didn't work.

By specifying a random Mac for the router and adapter, the scanning starts, but there is nothing in the results

mass3 mass4~01

JorNotJ commented 3 years ago

I have the same problem. I have try to install clang / gcc I have try to ip route / ip addr / change default gw But all failed, could anyone help me?

DamieFC commented 3 years ago

I had something similar, but it was with make. It wouldn't let me build it.

2chfl commented 3 years ago

sudo masscan 1.1.1.1/16 -p 80 --interface rmnet_data1 [-] if(rmnet_data1): unknown data link type: 113(LINUX_SLL) [-] FAIL: failed to detect MAC address of interface: "rmnet_data1" [hint] try something like "--source-mac 00-11-22-33-44-55"

2chfl commented 3 years ago

sudo masscan 1.1.1.1/16 -p 80 --interface rmnet_data1 -vn [+] pcap: found library: libpcap.so [+] interface = rmnet_data1 [+] if(rmnet_data1): pcap: libpcap version 1.10.0 (with TPACKET_V3) [+] if(rmnet_data1): successfully opened [-] if(rmnet_data1): unknown data link type: 113(LINUX_SLL) [+] interface-type = 113 if:rmnet_data1: type=0x0212 [-] FAIL: failed to detect MAC address of interface: "rmnet_data1" [hint] try something like "--source-mac 00-11-22-33-44-55"

anasfanani commented 2 months ago

https://github.com/robertdavidgraham/masscan/issues/780