Use static max length

bug/bundler_fix
jvazquez-r7 2015-09-04 16:18:55 -05:00
parent 1ebc25092f
commit adcd3c1e29
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
1 changed files with 1 additions and 3 deletions

View File

@ -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)