From 41e62d689a449af77cba0ebcdb20bb4871b0e43c Mon Sep 17 00:00:00 2001 From: Andrea Cardaci Date: Mon, 28 May 2018 21:24:15 +0200 Subject: [PATCH] Add gdb file-write --- _gtfobins/gdb.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_gtfobins/gdb.md b/_gtfobins/gdb.md index 186c64e..bc08029 100644 --- a/_gtfobins/gdb.md +++ b/_gtfobins/gdb.md @@ -4,4 +4,8 @@ functions: - code: gdb -nx -ex '!sh' -ex quit sudo-enabled: - code: sudo gdb -nx -ex '!sh' -ex quit + file-write: + - code: | + LFILE=file_to_write + gdb -nx -ex "dump value $LFILE \"data\"" -ex quit ---