From 3927bd9e2e30a8246e5941853e86b8e1546859ae Mon Sep 17 00:00:00 2001 From: Daniele Pintore Date: Tue, 20 Feb 2024 11:57:48 +0100 Subject: [PATCH] Added pwninit template --- .config/pwninit/pwninit-template.py | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .config/pwninit/pwninit-template.py diff --git a/.config/pwninit/pwninit-template.py b/.config/pwninit/pwninit-template.py new file mode 100644 index 0000000..b3d7c83 --- /dev/null +++ b/.config/pwninit/pwninit-template.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python3 + +from pwn import * + +{bindings} + +context.binary = {bin_name} +# context.terminal = ['tmux', 'splitw', '-h'] + +def conn(): + if args.LOCAL: + r = process({proc_args}) + elif args.GDB: + r = gdb.debug({proc_args}, """ + """) + else: + r = remote("addr", 1337) + + return r + + +def main(): + r = conn() + + # good luck pwning :) + + r.interactive() + + +if __name__ == "__main__": + main()