File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed
modules/payloads/singles/cmd/unix Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -352,6 +352,14 @@ class Java < Msf::Module::Platform
352
352
Alias = "java"
353
353
end
354
354
355
+ #
356
+ # R
357
+ #
358
+ class R < Msf ::Module ::Platform
359
+ Rank = 100
360
+ Alias = "r"
361
+ end
362
+
355
363
#
356
364
# Ruby
357
365
#
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def initialize(info = {})
27
27
'Handler' => Msf ::Handler ::BindTcp ,
28
28
'Session' => Msf ::Sessions ::CommandShell ,
29
29
'PayloadType' => 'cmd' ,
30
- 'RequiredCmd' => 'ruby ' ,
30
+ 'RequiredCmd' => 'R ' ,
31
31
'Payload' => { 'Offsets' => { } , 'Payload' => '' }
32
32
) )
33
33
end
Original file line number Diff line number Diff line change @@ -22,11 +22,12 @@ def initialize(info = {})
22
22
'Description' => 'Connect back and create a command shell via R' ,
23
23
'Author' => [ 'RageLtMan' ] ,
24
24
'License' => MSF_LICENSE ,
25
- 'Platform' => 'r ' ,
26
- 'Arch' => ARCH_R ,
25
+ 'Platform' => 'unix ' ,
26
+ 'Arch' => ARCH_CMD ,
27
27
'Handler' => Msf ::Handler ::ReverseTcp ,
28
28
'Session' => Msf ::Sessions ::CommandShell ,
29
- 'PayloadType' => 'r' ,
29
+ 'PayloadType' => 'cmd' ,
30
+ 'RequiredCmd' => 'R' ,
30
31
'Payload' => { 'Offsets' => { } , 'Payload' => '' }
31
32
) )
32
33
end
You can’t perform that action at this time.
0 commit comments