Skip to content

Commit d3a9b1f

Browse files
authored
Merge pull request #311 from dmur1/add-context-terminal-tmux-to-default-pwn-script
add a context.terminal tmux directive to the default pwn script
2 parents 261d571 + 5fadeb8 commit d3a9b1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commands/pwn.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ func makePwnScript(ip string, port int) {
9393
"from pwn import *\n\n"+
9494
"#context.log_level = \"debug\"\n"+
9595
"#elf = ELF(\"./%s\", checksec=True)\n"+
96-
"#context.binary = elf\n\n"+
96+
"#context.binary = elf\n"+
97+
"#context.terminal = [\"tmux\", \"splitw\", \"-h\"]\n\n"+
9798
"#p = elf.process()\n"+
9899
"#p = elf.debug(gdbscript=\"\")\n"+
99100
"p = remote(\"%s\", %d)\n\n"+

0 commit comments

Comments
 (0)