Skip to content

skyler-ferrante/CipherShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CipherShell

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

Build Libssh statically:

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

Build Reverse-SSH-Shell:

make
make small #Strip and UPX pack 

Start server:

Usage: ./ssh-server commands_filename
Usage: ./ssh-server #If commands_filename in config/

Run client:

Usage: ./ssh-client

Configuration

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

About

SSH server sends commands to client

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published