Skip to content

Commit 353d2f7

Browse files
committed
tweak pw generation
1 parent 5f8c0cb commit 353d2f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/multi/http/drupal_drupageddon.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def generate_password_hash(pass)
111111
}
112112
md5_base64 = phpass_encode64(md5, md5.length)
113113
md5_stripped = md5_base64[0...22]
114-
pass = "$P$#{iter_char}#{salt}#{md5_stripped}"
114+
pass = "$P\\$" + iter_char + salt + md5_stripped
115115
vprint_debug("#{peer} - password hash: #{pass}")
116116

117117
return pass

0 commit comments

Comments
 (0)