git-svn-id: file:///home/svn/framework3/trunk@13777 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
Wei Chen 2011-09-23 02:04:22 +00:00
parent 00f21c08ae
commit 4376207e8d
1 changed files with 4 additions and 4 deletions

View File

@ -86,14 +86,14 @@ class Plugin::TokenHunter < Msf::Plugin
ndom = nil
end
if(ndom and user.strip.downcase == needle.strip.downcase)
if(not user.nil? and ndom and user.strip.downcase == needle.strip.downcase)
print_status("FOUND: #{session.sid} - #{session.tunnel_peer} - #{user} (delegation)")
next
end
fdom,fusr = user.split("\\")
if (! ndom and fusr.strip.downcase == nusr.strip.downcase)
if (not fusr.nil? and ! ndom and fusr.strip.downcase == nusr.strip.downcase)
print_status("FOUND: #{session.sid} - #{session.tunnel_peer} - #{user} (delegation)")
end
end
@ -112,13 +112,13 @@ class Plugin::TokenHunter < Msf::Plugin
ndom = nil
end
if(ndom and user.strip.downcase == needle.strip.downcase)
if(not user.nil? and ndom and user.strip.downcase == needle.strip.downcase)
print_status(">> Found #{session.sid} - #{session.tunnel_peer} - #{user} (impersonation)")
next
end
fdom,fusr = user.split("\\")
if (! ndom and fusr.strip.downcase == nusr.strip.downcase)
if (not fusr.nil? and ! ndom and fusr.strip.downcase == nusr.strip.downcase)
print_status(">> Found #{session.sid} - #{session.tunnel_peer} - #{user} (impersonation)")
end
end