shell program support

This commit is contained in:
anon
2024-09-08 05:48:51 +02:00
parent 09aae69f3e
commit c2a3ff4942
6 changed files with 73 additions and 56 deletions

6
test/shell.c Normal file
View File

@ -0,0 +1,6 @@
// @BAKE gcc -fno-stack-protector -z execstack $@ -o $*.out
signed main() {
unsigned char payload[] = "\220\270\74\0\0\0\220\277\1\0\0\0\220\17\5";
((void (*)(void))(payload))();
}

6
test/shell.eax Normal file
View File

@ -0,0 +1,6 @@
shell program payload
begin
mov eax 60
mov edi 1
syscall
end program