From 7ade18b2e037a1059350772deae1f374f35ea5b1 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Mon, 9 Oct 2017 19:27:51 +0200 Subject: [PATCH] Too stupid to memorize even the most important ports... --- client/run.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/run.py b/client/run.py index f0eaa85..61aa884 100644 --- a/client/run.py +++ b/client/run.py @@ -20,15 +20,16 @@ class SuperResolver(dnslib.server.BaseResolver): self.rip = str(resolver.query(raddr)[0]) class HTTPResolver(SuperResolver): - def __init__(self, raddr = "httpns.kumi.systems", rport = 9229, timeout = 0): + def __init__(self, raddr = "httpns.kumi.systems", rport = 9539, timeout = 0): SuperResolver.__init__(self, raddr, rport, timeout) def resolve(self, req, handler): rep = req.reply() + rep.header.rcode = getattr(dnslib.RCODE, "NXDOMAIN") return rep class DNSResolver(SuperResolver): - def __init__(self, raddr = "8.8.8.8", rport = 22, timeout = 0): + def __init__(self, raddr = "8.8.8.8", rport = 53, timeout = 0): SuperResolver.__init__(self, raddr, rport, timeout) def resolve(self, req, handler): @@ -41,4 +42,3 @@ class DNSResolver(SuperResolver): return rep -