shell program support
This commit is contained in:
6
test/shell.c
Normal file
6
test/shell.c
Normal 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
6
test/shell.eax
Normal file
@ -0,0 +1,6 @@
|
||||
shell program payload
|
||||
begin
|
||||
mov eax 60
|
||||
mov edi 1
|
||||
syscall
|
||||
end program
|
Reference in New Issue
Block a user