tweak pw generation
This commit is contained in:
parent
5f8c0cb4f3
commit
353d2f79cc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue