Add timestamps, researching something

git-svn-id: file:///home/svn/framework3/trunk@5601 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
HD Moore 2008-07-26 03:16:25 +00:00
parent afa0623e6e
commit 9b56053974
1 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ class Auxiliary::Server::Dns::SpoofHelper < Msf::Auxiliary
names << "IN #{tc_s} #{name}"
case tc_s
when 'IN::TXT'
print_status("Answering DNS #{addr[3]}:#{addr[1]} XID #{request.id} #{name}")
print_status("#{Time.now.to_s} PASSED #{addr[3]}:#{addr[1]} XID #{request.id} #{name}")
answer = Resolv::DNS::Resource::IN::TXT.new("#{addr[3]}:#{addr[1]} #{names.join(",")}")
request.add_answer(name, 1, answer)
reply = true
@ -100,7 +100,7 @@ class Auxiliary::Server::Dns::SpoofHelper < Msf::Auxiliary
if(reply)
@sock.send(request.encode(), 0, addr[3], addr[1])
else
print_status("Ignoring request DNS #{addr[3]}:#{addr[1]} XID #{request.id} #{names.join(",")}")
print_status("#{Time.now.to_s} IGNORE #{addr[3]}:#{addr[1]} XID #{request.id} #{names.join(",")}")
end
end