Skip to content

Commit 6334996

Browse files
committed
Use the smaller base64 encoder
1 parent 1224551 commit 6334996

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/exploits/multi/http/php_fpm_rce.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def initialize(info = {})
5151
'Platform' => 'php',
5252
'Arch' => ARCH_PHP,
5353
'Payload' => {
54+
'Encoder' => 'php/base64',
5455
'PrependEncoder' => 'php -r "',
5556
'AppendEncoder' => '"'
5657
}
@@ -310,7 +311,7 @@ def send_payload
310311
allow_retry: false
311312
)
312313
Rex.sleep(1)
313-
return session_created? ? true : nil
314+
return session_created? || nil
314315
end
315316

316317
def send_backdoor_cleanup

0 commit comments

Comments
 (0)