netscanner icon indicating copy to clipboard operation
netscanner copied to clipboard

Interface Switching Not Working (Only eth0 Captures)

Open x9xhack opened this issue 10 months ago • 9 comments

Description: When using the f key to switch interfaces, the app only captures packets from eth0. Selecting other interfaces has no effect.

Steps to Reproduce:

Press f to change the network interface. Select a different interface (e.g., tun0). Capture continues on eth0.

Expected Behavior: Packet capture should work on the selected interface.

Actual Behavior: Only eth0 captures packets, other interfaces are ignored.

OS: kali-rolling 2025-1 Version: netscanner v0.6.2-

x9xhack avatar Mar 06 '25 18:03 x9xhack

Thanks for the report - this is bug. I will fix it ASAP and let you know. Thx again.

Chleba avatar Mar 06 '25 21:03 Chleba

btw. @x9xhack please what exact version of netscanner you using ?

Chleba avatar Mar 06 '25 21:03 Chleba

Thank you for your swift action.

netscanner v0.6.2-

x9xhack avatar Mar 07 '25 03:03 x9xhack

Hi @x9xhack , I fixed it here: https://github.com/Chleba/netscanner/commit/f364a8e4ced36034b93b0e07121bb62c6c02e8f8. Please check if it's working for you and let me know. I will close this issue but feel free to open it if there is any issue with this fix. Thanks.

Chleba avatar Mar 09 '25 00:03 Chleba

Hi @Chleba,

Thank you for the fix.

It still doesn't work for me. Am I doing something wrong?

Image

x9xhack avatar Mar 09 '25 04:03 x9xhack

Hi @x9xhack,

Could you give me more details please ? What OS ? Is the packets from eth0 stop when you switch your interface (that should definitely happen). Is the second interface some virtual interface ? Just more details please.

Chleba avatar Mar 09 '25 10:03 Chleba

Hi

OS: Kali Rolling 2025-1, running in a VM with VMware. tun0 is the OpenVPN virtual interface.

x9xhack avatar Mar 10 '25 05:03 x9xhack

Hi @x9xhack, Please tell me if packet dump logs will stop from eth0 when you switch interface to tun0. Also is there some traffic from tun0 interface ? Thanks.

Chleba avatar Mar 10 '25 17:03 Chleba

Hi @Chleba

1 - Yes, packet dumps stop for eth0 when switching the interface to tun0 2 - Yes , there is traffic for tun0. ( tested with curl , ping , nmap port scan )

x9xhack avatar Mar 11 '25 04:03 x9xhack