[GH-ISSUE #13] Linux support #6

Closed
opened 2026-02-26 12:22:20 +03:00 by kerem · 13 comments
Owner

Originally created by @Fabxx on GitHub (Jan 20, 2022).
Original GitHub issue: https://github.com/brentvollebregt/whos-on-my-network/issues/13

trying to run this from linux, webapp works but when i try to scan it says npcap is required, tho there's nmap available already.

Originally created by @Fabxx on GitHub (Jan 20, 2022). Original GitHub issue: https://github.com/brentvollebregt/whos-on-my-network/issues/13 trying to run this from linux, webapp works but when i try to scan it says npcap is required, tho there's nmap available already.
kerem closed this issue 2026-02-26 12:22:21 +03:00
Author
Owner

@brentvollebregt commented on GitHub (Jan 22, 2022):

It looks like for Linux, you will need tcpdump as noted here.

I'm not sure what flavour you are running but following the "Platform-specific instructions" from that link above might get you running.

<!-- gh-comment-id:1019022159 --> @brentvollebregt commented on GitHub (Jan 22, 2022): It looks like for Linux, you will need `tcpdump` as [noted here](https://scapy.readthedocs.io/en/latest/installation.html#platform-specific-instructions). I'm not sure what flavour you are running but following the "Platform-specific instructions" from that link above might get you running.
Author
Owner

@Fabxx commented on GitHub (Jan 22, 2022):

I'm using kali distro which should have all of that already

<!-- gh-comment-id:1019270700 --> @Fabxx commented on GitHub (Jan 22, 2022): I'm using kali distro which should have all of that already
Author
Owner

@brentvollebregt commented on GitHub (Jan 23, 2022):

Kali is based on Debian - if you execute tcpdump in the terminal, does it work?

<!-- gh-comment-id:1019458557 --> @brentvollebregt commented on GitHub (Jan 23, 2022): Kali is based on Debian - if you execute `tcpdump` in the terminal, does it work?
Author
Owner

@Fabxx commented on GitHub (Jan 25, 2022):

yes

<!-- gh-comment-id:1021365654 --> @Fabxx commented on GitHub (Jan 25, 2022): yes
Author
Owner

@brentvollebregt commented on GitHub (Jan 25, 2022):

If you execute sudo apt-get install tcpdump - do you get a different message when running the application?

<!-- gh-comment-id:1021532725 --> @brentvollebregt commented on GitHub (Jan 25, 2022): If you execute `sudo apt-get install tcpdump` - do you get a different message when running the application?
Author
Owner

@Fabxx commented on GitHub (Jan 26, 2022):

it's useless to do it since it's already installed, no changes are made when doing it, the application still asks for npcap

<!-- gh-comment-id:1022676430 --> @Fabxx commented on GitHub (Jan 26, 2022): it's useless to do it since it's already installed, no changes are made when doing it, the application still asks for npcap
Author
Owner

@brentvollebregt commented on GitHub (Jan 27, 2022):

Are you able to provide the traceback and error?

<!-- gh-comment-id:1022858165 --> @brentvollebregt commented on GitHub (Jan 27, 2022): Are you able to provide the traceback and error?
Author
Owner

@Fabxx commented on GitHub (Jan 27, 2022):

there's no error, it just asks for npcap and i can't continue. Are you sure the program looks for other alternatives rather than npcap?

<!-- gh-comment-id:1022943616 --> @Fabxx commented on GitHub (Jan 27, 2022): there's no error, it just asks for npcap and i can't continue. Are you sure the program looks for other alternatives rather than npcap?
Author
Owner

@brentvollebregt commented on GitHub (Jan 27, 2022):

Right, I see you are getting this error here, in the except blocks.

In a Python shell, if you execute:

from scapy.all import arping
result, _ = arping('192.168.1.1', verbose=0)

Do you get any errors? If so, what are they?

<!-- gh-comment-id:1022959902 --> @brentvollebregt commented on GitHub (Jan 27, 2022): Right, I see you are getting [this error here, in the except blocks](https://github.com/brentvollebregt/whos-on-my-network/blob/b77cd5ec462571a0c1f75e9105d8d90c740a79cc/whos_on_my_network/service/scanning.py#L31). In a Python shell, if you execute: ```python from scapy.all import arping result, _ = arping('192.168.1.1', verbose=0) ``` Do you get any errors? If so, what are they?
Author
Owner

@Fabxx commented on GitHub (Jan 28, 2022):

no errors

<!-- gh-comment-id:1024259062 --> @Fabxx commented on GitHub (Jan 28, 2022): no errors
Author
Owner

@brentvollebregt commented on GitHub (Jan 29, 2022):

Are you able to debug the application? If you put breakpoints on:

What is in the variable exception? (this is in both except blocks).

<!-- gh-comment-id:1025005655 --> @brentvollebregt commented on GitHub (Jan 29, 2022): Are you able to debug the application? If you put breakpoints on: - [whos_on_my_network/service/scanning.py line 31](https://github.com/brentvollebregt/whos-on-my-network/blob/master/whos_on_my_network/service/scanning.py#L31) - [whos_on_my_network/service/scanning.py line 34](https://github.com/brentvollebregt/whos-on-my-network/blob/master/whos_on_my_network/service/scanning.py#L34) What is in the variable `exception`? (this is in both except blocks).
Author
Owner

@brentvollebregt commented on GitHub (Nov 24, 2023):

These exceptions should now be shown in the output

<!-- gh-comment-id:1825187613 --> @brentvollebregt commented on GitHub (Nov 24, 2023): These exceptions should now be shown in the output
Author
Owner

@brentvollebregt commented on GitHub (Jun 7, 2024):

The docker file uses Linux - this tool works on Linux

<!-- gh-comment-id:2154741398 --> @brentvollebregt commented on GitHub (Jun 7, 2024): The docker file uses Linux - this tool works on Linux
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whos-on-my-network#6
No description provided.