tweak pw generation

This commit is contained in:
Brandon Perry 2014-10-16 12:06:19 -07:00
parent 5f8c0cb4f3
commit 353d2f79cc
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class Metasploit3 < Msf::Exploit::Remote
}
md5_base64 = phpass_encode64(md5, md5.length)
md5_stripped = md5_base64[0...22]
pass = "$P$#{iter_char}#{salt}#{md5_stripped}"
pass = "$P\\$" + iter_char + salt + md5_stripped
vprint_debug("#{peer} - password hash: #{pass}")
return pass