C2 tool that uses SSH for communication. Allows Redteam to easily script attacks against multiple hosts at once.
ssh-server sends commands for ssh-client to execute
ssh-server can handle multiple connections at once
For persistence use crontab/systemd
sudo apt-get install libssl-dev
git clone https://git.libssh.org/projects/libssh.git libssh
cd libssh
mkdir build
cd build/
cmake ../ -DWITH_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF -DWITH_STATIC_LIB=ON
make
sudo make install
make
make small #Strip and UPX pack
Usage: ./ssh-server commands_filename
Usage: ./ssh-server #If commands_filename in config/
Usage: ./ssh-client
Lines starting with #
in the commands file will be treated as shell commands (e.g. #echo hi
)
Lines starting with G
will cause the client to send the given filename to the server (e.g. G/etc/passwd
)
To change port number for server and client, edit include/constants.h