Created
July 27, 2015 19:39
-
-
Save wchen-r7/872276d5fe0044f35406 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# This module requires Metasploit: http://metasploit.com/download | |
# Current source: https://github.com/rapid7/metasploit-framework | |
## | |
require 'msf/core' | |
class Metasploit3 < Msf::Exploit::Remote | |
Rank = NormalRanking | |
include Msf::Exploit::Remote::HttpClient | |
include Msf::Exploit::CmdStager | |
def initialize(info = {}) | |
super(update_info(info, | |
'Name' => 'Test', | |
'Description' => %q{ | |
XXXXX | |
}, | |
'Author' => | |
[ | |
'Test' | |
], | |
'License' => MSF_LICENSE, | |
'Platform' => 'linux', | |
'References' => [ ['URL', 'XXX'] ], | |
'DisclosureDate' => 'Jun 12 2015', | |
'Payload' => { 'DisableNops' => true }, | |
'Targets' => | |
[ | |
[ 'MIPS Little Endian', | |
{ | |
'Platform' => 'linux', | |
'Arch' => ARCH_MIPSLE | |
} | |
], | |
[ 'MIPS Big Endian', | |
{ | |
'Platform' => 'linux', | |
'Arch' => ARCH_MIPSBE | |
} | |
], | |
], | |
'DefaultTarget' => 1 | |
)) | |
end | |
def exploit | |
print_status("#{peer} - calling execute_cmdstager") | |
execute_cmdstager( | |
:flavor => :echo, | |
:linemax => 95 | |
) | |
end | |
def execute_command(cmd,opts) | |
print_status("#{peer} - Called execute_command") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment