8000
Skip to content

Conversation

@exploide
Copy link
Contributor

This PR contains two commits.

The first commit just fixes outdated information from README.md.

The second commit improves the start-server.sh script.

Most importantly, dnsmasq no longer binds to the loopback interface, which allows multiple instances of dnsmasq to coexist. And even other DNS servers like systemd-resolved, where I encountered the problem.
(Now I'm wondering if DNS is necessary for this attack at all 🤔 If not, we could even do --port=0 to disable dnsmasq's DNS functionality and leave only DHCP and TFTP.)

Furthermore, the script removes the IP address from the interface when done. And the IP address is only added in the pxe function, not also in smb.

Let me know if you require any changes. :)

And thanks for this nice implementation again, even when it didn't work today in my case.

exploide added 2 commits May 20, 2025 20:05
this allows to have multiple instances of dnsmasq running, or even other DNS servers like systemd-resolved
further improvements:
- don't set IP address again for smb server
- remove IP address from interface once the script is done
- fixed some shellcheck suggestions concerning quoting
@andigandhi andigandhi merged commit 8d213a1 into andigandhi:main May 27, 2025
1 check passed
@exploide exploide deleted the listen-interface branch May 27, 2025 07:20
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

0