lordlabuckdas / gtfoo

go program to fetch gtfobins
GNU General Public License v3.0
0 stars 2 forks source link

Irregular newlines #13

Open lordlabuckdas opened 3 years ago

lordlabuckdas commented 3 years ago

I don't know where you are. I don't know what you want. If you are looking for a bad open-source project, I can tell you I have others, but what I also have are a very particular set of skills. Skills I have acquired over a very small coding career. Skills that make me a nightmare for bugs like you. If you let my program go now that'll be the end of it. I will not look for you, I will not pursue you, but if you don't, I will look for you, I will find you and I will debug you.

lordlabuckdas commented 3 years ago

but seriously, some functions like File Read and File Write have extra newlines

lordlabuckdas commented 3 years ago

solved a major part in b1198a2323cfd5e4447bfdfc28a5a14093c576e0, but even now, an extra newline char is present after multi line code function

Sudo

If the binary is allowed to run as superuser by `sudo`, it does not drop the elevated privileges and may be used to access the file system, escalate or maintain privileged access.

Code :
sudo vi -c ':!/bin/sh' /dev/null

Shell

It can be used to break out from restricted environments by spawning an interactive system shell.

Code :
vi -c ':!/bin/sh' /dev/null
Code :
vi
:set shell=/bin/sh
:shell

        (**HERE**)
File Write

It writes data to files, it may be used to do privileged writes or write files outside a restricted file system.

Code :
vi file_to_write
iDATA
^[
w

        (**HERE**)
File Read

It reads data from files, it may be used to do privileged reads or disclose files outside a restricted file system.

Code :
vi file_to_read