Skip to content

Commit d47d1bc

Browse files
committed
Remove newlines from base64 output on MySQL also
1 parent 6d9c789 commit d47d1bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/exploit/sqli/mysqli/common.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class Common < Msf::Exploit::SQLi::Common
1313
#
1414
ENCODERS = {
1515
base64: {
16-
encode: 'to_base64(^DATA^)',
16+
encode: 'replace(to_base64(^DATA^), \'\\n\', \'\')',
1717
decode: proc { |data| Base64.decode64(data) }
1818
},
1919
hex: {

0 commit comments

Comments
 (0)