1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/dns/nsec3walker/files/patch-collect
Kurt Jaeger 57a107b8ab New port: dns/nsec3walker: Walk NSEC3 secured DNSSEC zones
Installing current DNSSEC (NSEC3) exposes private DNS data to low-cost
DNS database espionage. The nsec3walker tool allows administrators and users
to see how much private information is being given away by DNSSEC.

WWW: https://dnscurve.org/nsec3walker.html

PR:		215995
Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
2019-01-06 17:29:59 +00:00

21 lines
928 B
Plaintext

--- collect.orig 2010-12-24 09:49:40 UTC
+++ collect
@@ -71,7 +71,7 @@ while len(todo) > 0 or len(nexthash) ==
print "querying",guess,h
numqueries += 1
server = servers[r.randrange(len(servers))]
- query = subprocess.Popen(["./query",guess,server],stdout=subprocess.PIPE).stdout
+ query = subprocess.Popen(["query",guess,server],stdout=subprocess.PIPE).stdout
for x in query:
y = x.strip().split(' ')
if y[0] == "ns":
@@ -84,7 +84,7 @@ while len(todo) > 0 or len(nexthash) ==
print "iterations",y[4]
salt = binascii.a2b_hex(y[3])
iterations = int(y[4])
- hashprocess = subprocess.Popen(["./randomhashes",domain,y[4],y[3]],stdout=subprocess.PIPE)
+ hashprocess = subprocess.Popen(["randomhashes",domain,y[4],y[3]],stdout=subprocess.PIPE)
hashes = hashprocess.stdout
if salt != binascii.a2b_hex(y[3]):
print "newsalt",binascii.a2b_hex(y[3])