Skip to content

Commit eb5ec8c

Browse files
committed
Land rapid7#8883, Fixup R payload platform and metadata
2 parents 7c2fa20 + cba4d36 commit eb5ec8c

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

lib/msf/core/module/platform.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,14 @@ class Java < Msf::Module::Platform
352352
Alias = "java"
353353
end
354354

355+
#
356+
# R
357+
#
358+
class R < Msf::Module::Platform
359+
Rank = 100
360+
Alias = "r"
361+
end
362+
355363
#
356364
# Ruby
357365
#

modules/payloads/singles/cmd/unix/bind_r.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def initialize(info = {})
2727
'Handler' => Msf::Handler::BindTcp,
2828
'Session' => Msf::Sessions::CommandShell,
2929
'PayloadType' => 'cmd',
30-
'RequiredCmd' => 'ruby',
30+
'RequiredCmd' => 'R',
3131
'Payload' => { 'Offsets' => {}, 'Payload' => '' }
3232
))
3333
end

modules/payloads/singles/cmd/unix/reverse_r.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ def initialize(info = {})
2222
'Description' => 'Connect back and create a command shell via R',
2323
'Author' => [ 'RageLtMan' ],
2424
'License' => MSF_LICENSE,
25-
'Platform' => 'r',
26-
'Arch' => ARCH_R,
25+
'Platform' => 'unix',
26+
'Arch' => ARCH_CMD,
2727
'Handler' => Msf::Handler::ReverseTcp,
2828
'Session' => Msf::Sessions::CommandShell,
29-
'PayloadType' => 'r',
29+
'PayloadType' => 'cmd',
30+
'RequiredCmd' => 'R',
3031
'Payload' => { 'Offsets' => {}, 'Payload' => '' }
3132
))
3233
end

0 commit comments

Comments
 (0)