This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import socket | |
import os | |
# Beware: this is a navive KISS implementation of a DNS MITM relaying server | |
# It therefor has no timeouts and other safeguards preventing resource exausstion | |
# and since it forks you can run out of PIDS's pretty fast is a malicious actor can coerce this server to hang on one of the recv calls. | |
# | |
# Another point of notice: this server only works for udp so if a request is to long and a client sends a request via tcp nobody will be listening. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
busctl --system set-property org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager ConnectivityCheckEnabled "b" 0 |