robertdavidgraham / masscan

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

Segmentation Fault #224

Open kgibbs64 opened 8 years ago

kgibbs64 commented 8 years ago

Segmentation fault: please post this backtrace to:

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

2: [linux-gate.so.1(__kernel_sigreturn+0) [0xb77cac14]] ?? ??:0 1: [masscan() [0x80515a8]] ?? ??:0

ghost commented 8 years ago

It might be really helpfull if you also posted what you where running at the time, what config etc.

kgibbs64 commented 8 years ago

I was running Kali lInux 2.0 x64, using the default config using the PF_Ring Module. Apparently, Masscan messes up when using PF_ring, works otherwise.

ghost commented 8 years ago

It happens when your system tryes to do an:

adapter->ring = PFRING.open(adapter_name, 1500, 0);//PF_RING_REENTRANT);

and it then cant find the adapter.

rawsock.c line 678 if your curious, and PFRING is defined in rawsock-pfring.c

While the PFRING struct checks to see if you have the drivers installed, it does not seem to check if there is a NIC with pf_ring support. My guess is that masscan can't check for the PF_Ring support before it can load the drivers, but that is just a guess cause I do not have access to a PF_RING nic atm.