@@ -330,17 +330,17 @@ def dns_send(data,method)
330
330
end
331
331
332
332
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," <<
337
336
"HINFO,MINFO,MX,TXT,RP,AFSDB,X25,ISDN,RT," <<
338
337
"NSAP,NSAP-PTR,SIG,KEY,PX,GPOS,AAAA,LOC,NXT," <<
339
338
"EID,NIMLOC,SRV,ATMA,NAPTR,KX,CERT,A6,DNAME," <<
340
339
"SINK,OPT,APL,DS,SSHFP,IPSECKEY,RRSIG,NSEC," <<
341
340
"DNSKEY,DHCID,NSEC3,NSEC3PARAM,HIP,NINFO,RKEY," <<
342
341
"TALINK,SPF,UINFO,UID,GID,UNSPEC,TKEY,TSIG," <<
343
342
"IXFR,AXFR,MAILA,MAILB,*,TA,DLV,RESERVED"
343
+ @fuzz_rr = datastore [ 'RR' ] . blank ? fuzz_rr_queries : datastore [ 'RR' ]
344
344
end
345
345
346
346
def run_host ( ip )
0 commit comments