commit
8219766538
|
@ -44,7 +44,7 @@ attr_accessor :sock, :thread
|
||||||
register_options([
|
register_options([
|
||||||
OptAddress.new('SPOOFIP', [ true, "IP address with which to poison responses", ""]),
|
OptAddress.new('SPOOFIP', [ true, "IP address with which to poison responses", ""]),
|
||||||
OptRegexp.new('REGEX', [ true, "Regex applied to the LLMNR Name to determine if spoofed reply is sent", '.*']),
|
OptRegexp.new('REGEX', [ true, "Regex applied to the LLMNR Name to determine if spoofed reply is sent", '.*']),
|
||||||
OptInt.new('TTL', [ false, "Time To Live for the spoofed response", 300]),
|
OptInt.new('TTL', [ false, "Time To Live for the spoofed response", 30]),
|
||||||
])
|
])
|
||||||
|
|
||||||
deregister_options('RHOST', 'PCAPFILE', 'SNAPLEN', 'FILTER')
|
deregister_options('RHOST', 'PCAPFILE', 'SNAPLEN', 'FILTER')
|
||||||
|
@ -85,7 +85,7 @@ attr_accessor :sock, :thread
|
||||||
when ::Net::DNS::A
|
when ::Net::DNS::A
|
||||||
dns_pkt.answer << ::Net::DNS::RR::A.new(
|
dns_pkt.answer << ::Net::DNS::RR::A.new(
|
||||||
:name => name,
|
:name => name,
|
||||||
:ttl => 30,
|
:ttl => datastore['TTL'],
|
||||||
:cls => ::Net::DNS::IN,
|
:cls => ::Net::DNS::IN,
|
||||||
:type => ::Net::DNS::A,
|
:type => ::Net::DNS::A,
|
||||||
:address => spoof.to_s
|
:address => spoof.to_s
|
||||||
|
@ -93,7 +93,7 @@ attr_accessor :sock, :thread
|
||||||
when ::Net::DNS::AAAA
|
when ::Net::DNS::AAAA
|
||||||
dns_pkt.answer << ::Net::DNS::RR::AAAA.new(
|
dns_pkt.answer << ::Net::DNS::RR::AAAA.new(
|
||||||
:name => name,
|
:name => name,
|
||||||
:ttl => 30,
|
:ttl => datastore['TTL'],
|
||||||
:cls => ::Net::DNS::IN,
|
:cls => ::Net::DNS::IN,
|
||||||
:type => ::Net::DNS::AAAA,
|
:type => ::Net::DNS::AAAA,
|
||||||
:address => (spoof.ipv6? ? spoof : spoof.ipv4_mapped).to_s
|
:address => (spoof.ipv6? ? spoof : spoof.ipv4_mapped).to_s
|
||||||
|
|
Loading…
Reference in New Issue