From b473840956331cca05154af918aa48009836379b Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 11 Apr 2025 19:36:14 +0200 Subject: (templates/ctf) added a solve script --- nix/templates/ctf/solve.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 nix/templates/ctf/solve.py (limited to 'nix/templates') diff --git a/nix/templates/ctf/solve.py b/nix/templates/ctf/solve.py new file mode 100644 index 0000000..acc4a75 --- /dev/null +++ b/nix/templates/ctf/solve.py @@ -0,0 +1,15 @@ +from pwn import * + +context.gdbinit="/nix/store/jhvjf5drzzqq54xghzz94h0a6wsn1fs1-pwndbg/share/pwndbg/gdbinit.py" + +# exe = ELF("./a.out") + +p = remote("138.199.213.51", 31335) +#p = gdb.debug(exe.path, gdbscript=''' +# break main +# c +# ''') + +p.sendlineafter(b"> ", b"asd") + +p.interactive() -- cgit 1.4.1