Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devices missing in scan #98

Open
thesebastianf opened this issue Aug 31, 2024 · 4 comments
Open

Devices missing in scan #98

thesebastianf opened this issue Aug 31, 2024 · 4 comments

Comments

@thesebastianf
Copy link

thesebastianf commented Aug 31, 2024

Hey I tried v1 and v2 of WYL.
On both it doesnt find some devices on my lan.
Those are devices by LAN cable, 24/7 online and I can ping them.
Any hints why or what I could do to get any device discovered?

screenshot is sorted by IP .. e.g. all devices 192.168.1.1- x.x.x.5 are missing.
I ping 2 of those in the cmd shell
image

@fraintt
Copy link

fraintt commented Sep 2, 2024

I have the same problem, that I cannot ping and the scan cannot find some of my devices.. I can ping the device from the container console

@mochaslave
Copy link

The scan mechanism is based on arp-scan. As you can see, the binary file has been copied into the docker image and executed by this tool.
Since the arp-scan has not been released version for a long time, I built the latest master branch on my Raspberry Pi 5 to compare the 1.10.0 results.

Here are my experimental results:

Setup Platform arp-scan Version Result
Brew install arp-scan Mac M1 1.10.0 No missing
WatchYourLAN Pi 5 1.10.0 Missing some hosts
Execute arp-scan in WatchYourLAN container Pi 5 1.10.0 Missing some hosts
Build binary on Pi 5 Pi 5 1.10.1-git Missing some hosts

Hard to say what's factor cause this issue, but it should be the arp-scan problem.

@StealUrKill
Copy link

I am having similar issues. Except in the console of the docker, it shows an IP address. lets say 192.168.1.23 and pulls the info but it is not displayed in the webpage.

@StealUrKill
Copy link

The scan mechanism is based on arp-scan. As you can see, the binary file has been copied into the docker image and executed by this tool. Since the arp-scan has not been released version for a long time, I built the latest master branch on my Raspberry Pi 5 to compare the 1.10.0 results.

Here are my experimental results:

Setup Platform arp-scan Version Result
Brew install arp-scan Mac M1 1.10.0 No missing
WatchYourLAN Pi 5 1.10.0 Missing some hosts
Execute arp-scan in WatchYourLAN container Pi 5 1.10.0 Missing some hosts
Build binary on Pi 5 Pi 5 1.10.1-git Missing some hosts
Hard to say what's factor cause this issue, but it should be the arp-scan problem.

I built it on linux and tried copying it to the docker but it is missing a bunch of stuff

Successfully copied 222exec -it WYL /bin/sh /app # ldd /usr/bin/arp-scan /lib64/ld-linux-x86-64.so.2 (0x7fd24dfee000) Error loading shared library libpcap.so.0.8: No such file or directory (needed by /usr/bin/arp-scan) libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fd24dfee000) Error relocating /usr/bin/arp-scan: pcap_set_promisc: symbol not found Error relocating /usr/bin/arp-scan: pcap_findalldevs: symbol not found Error relocating /usr/bin/arp-scan: pcap_sendpacket: symbol not found Error relocating /usr/bin/arp-scan: pcap_dispatch: symbol not found Error relocating /usr/bin/arp-scan: pcap_close: symbol not found Error relocating /usr/bin/arp-scan: __printf_chk: symbol not found Error relocating /usr/bin/arp-scan: pcap_geterr: symbol not found Error relocating /usr/bin/arp-scan: pcap_statustostr: symbol not found Error relocating /usr/bin/arp-scan: __vsnprintf_chk: symbol not found Error relocating /usr/bin/arp-scan: pcap_compile: symbol not found Error relocating /usr/bin/arp-scan: pcap_get_selectable_fd: symbol not found Error relocating /usr/bin/arp-scan: pcap_set_timeout: symbol not found Error relocating /usr/bin/arp-scan: pcap_set_immediate_mode: symbol not found Error relocating /usr/bin/arp-scan: pcap_freealldevs: symbol not found Error relocating /usr/bin/arp-scan: pcap_stats: symbol not found Error relocating /usr/bin/arp-scan: pcap_set_snaplen: symbol not found Error relocating /usr/bin/arp-scan: pcap_lookupnet: symbol not found Error relocating /usr/bin/arp-scan: pcap_open_offline: symbol not found Error relocating /usr/bin/arp-scan: pcap_create: symbol not found Error relocating /usr/bin/arp-scan: pcap_dump_open: symbol not found Error relocating /usr/bin/arp-scan: pcap_datalink: symbol not found Error relocating /usr/bin/arp-scan: pcap_activate: symbol not found Error relocating /usr/bin/arp-scan: pcap_setfilter: symbol not found Error relocating /usr/bin/arp-scan: pcap_datalink_val_to_name: symbol not found Error relocating /usr/bin/arp-scan: pcap_setnonblock: symbol not found Error relocating /usr/bin/arp-scan: pcap_freecode: symbol not found Error relocating /usr/bin/arp-scan: pcap_dump: symbol not found Error relocating /usr/bin/arp-scan: pcap_lib_version: symbol not found Error relocating /usr/bin/arp-scan: __snprintf_chk: symbol not found Error relocating /usr/bin/arp-scan: __fdelt_chk: symbol not found Error relocating /usr/bin/arp-scan: pcap_dump_close: symbol not found

I was able to get it down to this by installing apk add libpcap and doing ln -s /usr/lib/libpcap.so.1 /usr/lib/libpcap.so.0.8 I was able to get this

/app # ldd /usr/bin/arp-scan /lib64/ld-linux-x86-64.so.2 (0x7fb1f8231000) libpcap.so.0.8 => /usr/lib/libpcap.so.0.8 (0x7fb1f81e1000) libc.so.6 => /lib64/ld-linux-x86-64.so.2 (0x7fb1f8231000) Error relocating /usr/bin/arp-scan: __printf_chk: symbol not found Error relocating /usr/bin/arp-scan: __vsnprintf_chk: symbol not found Error relocating /usr/bin/arp-scan: __snprintf_chk: symbol not found Error relocating /usr/bin/arp-scan: __fdelt_chk: symbol not found
So I decided to see if updating and building would work

apk update && apk upgrade
apk add build-base autoconf automake libpcap-dev
wget https://github.com/royhills/arp-scan/archive/refs/heads/master.zip
unzip master.zip
cd arp-scan-master
autoreconf --install
./configure
make
make install
/usr/local/bin # cp /usr/local/bin/arp-scan /usr/bin/arp-scan
cp /usr/local/bin/get-oui /usr/bin/get-oui
cp /usr/local/bin/arp-fingerprint /usr/bin/arp-fingerprint

Building inside the docker puts it in /usr/local/bin for some reason. but copying it runs with no errors and it still shows the same. Some are missing still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants