Skip to content

Commit 7e649a9

Browse files
author
Tod Beardsley
committed
This version will actually work.
1 parent 3e0ce4a commit 7e649a9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/auxiliary/fuzzers/dns/dns_fuzzer.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,17 +330,17 @@ def dns_send(data,method)
330330
end
331331

332332
def fix_variables
333-
@fuzz_opcode = datastore['OPCODE'] || "QUERY,IQUERY,STATUS,UNASSIGNED,NOTIFY,UPDATE"
334-
@fuzz_class = datastore['CLASS'] || "IN,CH,HS,NONE,ANY"
335-
@fuzz_rr = datastore['RR'] || "" <<
336-
"A,NS,MD,MF,CNAME,SOA,MB,MG,MR,NULL,WKS,PTR," <<
333+
@fuzz_opcode = datastore['OPCODE'].blank? ? "QUERY,IQUERY,STATUS,UNASSIGNED,NOTIFY,UPDATE" : datastore['OPCODE']
334+
@fuzz_class = datastore['CLASS'].blank? ? "IN,CH,HS,NONE,ANY" : datastore['CLASS']
335+
fuzz_rr_queries = "A,NS,MD,MF,CNAME,SOA,MB,MG,MR,NULL,WKS,PTR," <<
337336
"HINFO,MINFO,MX,TXT,RP,AFSDB,X25,ISDN,RT," <<
338337
"NSAP,NSAP-PTR,SIG,KEY,PX,GPOS,AAAA,LOC,NXT," <<
339338
"EID,NIMLOC,SRV,ATMA,NAPTR,KX,CERT,A6,DNAME," <<
340339
"SINK,OPT,APL,DS,SSHFP,IPSECKEY,RRSIG,NSEC," <<
341340
"DNSKEY,DHCID,NSEC3,NSEC3PARAM,HIP,NINFO,RKEY," <<
342341
"TALINK,SPF,UINFO,UID,GID,UNSPEC,TKEY,TSIG," <<
343342
"IXFR,AXFR,MAILA,MAILB,*,TA,DLV,RESERVED"
343+
@fuzz_rr = datastore['RR'].blank ? fuzz_rr_queries : datastore['RR']
344344
end
345345

346346
def run_host(ip)

0 commit comments

Comments
 (0)