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

cmd: implement chromecast scanner #179

Merged
merged 2 commits into from
Mar 14, 2024
Merged

cmd: implement chromecast scanner #179

merged 2 commits into from
Mar 14, 2024

Conversation

holiman
Copy link
Contributor

@holiman holiman commented Mar 13, 2024

This PR adds a utility to do a little scan for chromecast devices. I'm using qubes os which has certan network restrictions, and having a hard time getting mDNS/avahi to function properly and find chromecast devices.

Examples

$ go run . --cidr 192.168.50.0/24  scan
Scanning...  scanned 0, current 192.168.50.0:8009
Found (potential) chromecast at 192.168.50.88:8009
Scanned 256 uris in 1.605169203s

$ go run . --cidr 192.168.51.0/24  scan
Scanning...  scanned 0, current 192.168.51.0:8009
Scanned 256 uris in 1.606679062s

@vishen
Copy link
Owner

vishen commented Mar 14, 2024

This is very cool, thanks @holiman . Just curious what kind of restrictions are imposed that make the mDNS library we use not work?

@vishen vishen merged commit b4ae994 into vishen:master Mar 14, 2024
2 of 4 checks passed
@holiman
Copy link
Contributor Author

holiman commented Mar 14, 2024

I don't know what the exact nature of it is. According to QubesOS/qubes-issues#8444

LLMNR is enabled by default in Fedora’s systemd-resolved. mDNS is disabled by default in Fedora ... Disabling mDNS and LLMNR in systemd-resolved is also consistent with Qubes OS disabling Avahi by default.

An additional problem might be that qubesos uses an internal virtual network for the qubes (but I have tested from my sys-net qubes too. I suspect it's a set of nftables rules which drop it, but haven't gotten around to debugging the nft rules, I wrote the scanner instead.

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

Successfully merging this pull request may close these issues.

2 participants