1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

Fix #5659: Update CMD exploits payload compatibility options

This commit is contained in:
jvazquez-r7 2015-08-10 17:12:59 -05:00
parent a611fff7bf
commit 203c231b74
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
55 changed files with 71 additions and 71 deletions

View File

@ -39,7 +39,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl bash telnet',
'RequiredCmd' => 'generic perl telnet',
}
},
'Targets' =>

View File

@ -41,7 +41,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic telnet python perl bash gawk netcat netcat-e ruby php openssl',
'RequiredCmd' => 'generic telnet python perl gawk netcat netcat-e ruby php openssl',
}
},
'Targets' =>

View File

@ -49,7 +49,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl python gawk bash-tcp netcat'
'RequiredCmd' => 'generic perl python gawk netcat'
}
},
'Targets' =>

View File

@ -48,7 +48,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic telnet python perl bash',
'RequiredCmd' => 'generic telnet python perl',
}
},
'Targets' =>

View File

@ -38,7 +38,7 @@ class Metasploit4 < Msf::Exploit::Remote
'DisableNops' => true,
'Compat' => {
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic netcat perl ruby python bash telnet'
'RequiredCmd' => 'generic netcat perl ruby python telnet'
}
},
'Platform' => %w( unix ),

View File

@ -40,7 +40,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl bash telnet'
'RequiredCmd' => 'generic perl telnet'
}
},
'Platform' => ['unix'],

View File

@ -44,7 +44,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic netcat netcat-e perl bash',
'RequiredCmd' => 'generic netcat netcat-e perl',
}
},
'Targets' =>

View File

@ -43,7 +43,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic python perl bash',
'RequiredCmd' => 'generic python perl',
},
'Targets' =>
[

View File

@ -51,7 +51,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet',
'RequiredCmd' => 'generic perl ruby telnet',
}
},
'Targets' =>

View File

@ -44,7 +44,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'perl python ruby bash telnet',
'RequiredCmd' => 'perl python ruby telnet',
# *_perl, *_python and *_ruby work if they are installed
}
},

View File

@ -39,7 +39,7 @@ class Metasploit3 < Msf::Exploit::Remote
{
'ConnectionType' => 'find',
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash telnet'
'RequiredCmd' => 'generic perl ruby python telnet'
}
},
'Platform' => %w{ bsd linux osx unix win },

View File

@ -41,7 +41,7 @@ class Metasploit4 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic bash awk ruby'
'RequiredCmd' => 'generic awk ruby'
},
# Tested:
# - CUPS version 1.4.3 on Ubuntu 10.04 (x86)

View File

@ -69,7 +69,7 @@ class Metasploit4 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic bash-tcp perl bash'
'RequiredCmd' => 'generic bash-tcp perl'
}
}
}

View File

@ -44,7 +44,7 @@ class Metasploit4 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet python',
'RequiredCmd' => 'generic perl ruby telnet python',
}
},
'Platform' => ['unix', 'linux'],

View File

@ -35,7 +35,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet python',
'RequiredCmd' => 'generic perl ruby telnet python',
}
},
'Platform' => ['unix', 'linux'],

View File

@ -38,7 +38,7 @@ class Metasploit3 < Msf::Exploit::Remote
{
'ConnectionType' => 'find',
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet python'
'RequiredCmd' => 'generic perl ruby telnet python'
}
},
'Platform' => %w{ linux unix },

View File

@ -33,7 +33,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet python',
'RequiredCmd' => 'generic perl ruby telnet python',
}
},
'Platform' => %w{ linux unix },

View File

@ -35,7 +35,7 @@ class Metasploit4 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet python',
'RequiredCmd' => 'generic perl ruby telnet python',
}
},
'Platform' => ['unix', 'linux'],

View File

@ -39,7 +39,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl telnet bash'
'RequiredCmd' => 'generic perl telnet'
}
},
'DefaultOptions' =>

View File

@ -33,8 +33,8 @@ class Metasploit3 < Msf::Exploit::Remote
'DisableNops' => true,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl ruby bash telnet bash-tcp',
}
},
'Platform' => 'osx',

View File

@ -52,7 +52,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Platform' => 'unix',
'Arch' => ARCH_CMD,
'PayloadCompat' => {
'RequiredCmd' => 'generic perl ruby bash telnet',
'RequiredCmd' => 'generic perl ruby bash-tcp telnet',
}
}
],

View File

@ -49,7 +49,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic bash telnet ruby',
'RequiredCmd' => 'generic telnet ruby',
}
},
'Targets' => [ [ 'Automatic Target', { }] ],

View File

@ -43,7 +43,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic gawk bash python perl'
'RequiredCmd' => 'generic gawk python perl'
}
},
'Targets' =>

View File

@ -31,7 +31,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl telnet netcat netcat-e bash',
'RequiredCmd' => 'generic perl telnet netcat netcat-e',
}
},
'Platform' => 'unix',

View File

@ -38,7 +38,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet',
'RequiredCmd' => 'generic perl ruby telnet',
}
},
'Targets' =>

View File

@ -38,8 +38,8 @@ class Metasploit3 < Msf::Exploit::Remote
'DisableNops' => true,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet openssl',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl ruby bash telnet openssl bash-tcp',
}
},
'Targets' =>

View File

@ -34,8 +34,8 @@ class Metasploit3 < Msf::Exploit::Remote
'Space' => 1024,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl ruby bash-tcp telnet',
}
},
'Platform' => 'unix',

View File

@ -35,8 +35,8 @@ class Metasploit3 < Msf::Exploit::Remote
'Space' => 1024,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl ruby bash-tcp telnet',
}
},
'Platform' => 'unix',

View File

@ -67,7 +67,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet',
'RequiredCmd' => 'generic perl ruby telnet',
}
},
'Platform' => 'unix',

View File

@ -36,8 +36,8 @@ class Metasploit3 < Msf::Exploit::Remote
'Space' => 512,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash telnet',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl ruby python telnet bash-tcp',
}
},
'Platform' => 'unix',

View File

@ -39,8 +39,8 @@ class Metasploit3 < Msf::Exploit::Remote
'Space' => 512,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash telnet',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl ruby python bash-tcp telnet',
}
},
'Platform' => 'unix',

View File

@ -35,8 +35,8 @@ class Metasploit3 < Msf::Exploit::Remote
'Space' => 512,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash telnet',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl ruby python bash-tcp telnet',
}
},
'Platform' => 'unix',

View File

@ -35,8 +35,8 @@ class Metasploit3 < Msf::Exploit::Remote
'Space' => 4000,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl ruby bash-tcp telnet',
}
},
'Platform' => 'unix',

View File

@ -39,7 +39,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash telnet'
'RequiredCmd' => 'generic perl ruby python telnet'
}
},
'Targets' =>

View File

@ -34,7 +34,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash telnet',
'RequiredCmd' => 'generic perl ruby python telnet',
}
},
'Platform' => 'unix',

View File

@ -41,8 +41,8 @@ class Metasploit3 < Msf::Exploit::Remote
'BadChars' => %q|'"`|, # quotes are escaped by PHP's magic_quotes_gpc in a default install
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash telnet',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl ruby python bash-tcp telnet',
}
},
'Targets' => [ ['Automatic', { }], ],

View File

@ -46,7 +46,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic ruby python bash telnet'
'RequiredCmd' => 'generic ruby python telnet'
}
},
'Platform' => [ 'unix' ],

View File

@ -30,8 +30,8 @@ class Metasploit3 < Msf::Exploit::Remote
'Space' => 1024,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl telnet netcat netcat-e bash',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl telnet netcat netcat-e bash-tcp',
}
},
'Platform' => 'unix',

View File

@ -37,8 +37,8 @@ class Metasploit3 < Msf::Exploit::Remote
'Space' => 4000,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl bash telnet netcat netcat-e',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl bash-tcp telnet netcat netcat-e',
}
},
'Platform' => 'unix',

View File

@ -39,8 +39,8 @@ class Metasploit3 < Msf::Exploit::Remote
'Space' => 1024,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash telnet',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl ruby python bash-tcp telnet',
}
},
'Platform' => %w{ linux unix win },

View File

@ -38,7 +38,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash telnet',
'RequiredCmd' => 'generic perl ruby python telnet',
}
},
'Targets' => [ ['Automatic', { }], ],

View File

@ -36,7 +36,7 @@ class Metasploit3 < Msf::Exploit::Remote
'BadChars' => '<>',
'Compat' =>
{
'RequiredCmd' => 'generic perl ruby python bash telnet',
'RequiredCmd' => 'generic perl ruby python bash-tcp telnet',
}
},
'Targets' =>

View File

@ -37,7 +37,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl python ruby bash telnet',
'RequiredCmd' => 'generic perl python ruby telnet',
}
},
'Platform' => ['unix'],

View File

@ -42,7 +42,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash netcat netcat-e'
'RequiredCmd' => 'generic perl ruby python netcat netcat-e'
},
'Targets' =>
[

View File

@ -39,7 +39,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic telnet bash netcat netcat-e perl ruby python',
'RequiredCmd' => 'generic telnet netcat netcat-e perl ruby python',
}
},
'DefaultOptions' =>

View File

@ -37,7 +37,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic telnet bash netcat netcat-e perl ruby python',
'RequiredCmd' => 'generic telnet netcat netcat-e perl ruby python',
}
},
'DefaultOptions' =>

View File

@ -41,8 +41,8 @@ class Metasploit3 < Msf::Exploit::Remote
'Space' => 1024,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash telnet',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl ruby python bash-tcp telnet',
}
},
'Platform' => 'unix',

View File

@ -34,8 +34,8 @@ class Metasploit3 < Msf::Exploit::Remote
'Space' => 512,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl bash telnet',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl bash-tcp telnet',
}
},
'Platform' => 'unix',

View File

@ -42,7 +42,7 @@ class Metasploit3 < Msf::Exploit::Remote
{
'ConnectionType' => 'find',
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby bash telnet python'
'RequiredCmd' => 'generic perl ruby telnet python'
}
},
'Platform' => %w{ unix },

View File

@ -46,8 +46,8 @@ class Metasploit3 < Msf::Exploit::Remote
'BadChars' => '',
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash telnet',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl ruby python bash-tcp telnet',
}
},
'Targets' =>

View File

@ -38,8 +38,8 @@ class Metasploit3 < Msf::Exploit::Remote
'Space' => 1024,
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash telnet',
'PayloadType' => 'cmd cmd_bash',
'RequiredCmd' => 'generic perl ruby python bash-tcp telnet',
}
},
'Platform' => 'unix',

View File

@ -47,7 +47,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic ruby python bash telnet'
'RequiredCmd' => 'generic ruby python telnet'
}
},
'Platform' => [ 'unix' ],

View File

@ -56,7 +56,7 @@ class Metasploit3 < Msf::Exploit::Remote
{
'PayloadType' => 'cmd',
# Based on vicibox availability of binaries
'RequiredCmd' => 'generic perl python awk bash telnet nc openssl',
'RequiredCmd' => 'generic perl python awk telnet nc openssl',
}
},
'Targets' =>

View File

@ -41,7 +41,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic perl ruby python bash telnet',
'RequiredCmd' => 'generic perl ruby python telnet',
}
},
'Platform' => 'unix',

View File

@ -42,7 +42,7 @@ class Metasploit3 < Msf::Exploit::Remote
'Compat' =>
{
'PayloadType' => 'cmd',
'RequiredCmd' => 'generic telnet python perl bash',
'RequiredCmd' => 'generic telnet python perl',
},
},
'Targets' =>