Skip to content

techgaun/bash-backdoor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bash-backdoor

A simple backdoor in (ba)sh

It is cross-compatible across POSIX shells. While I initially decided to write for bash, I decided to use /bin/sh later.

This little backdoor works well with traditional netcat with -e option but it can be easily ported to support openbsd variant by making use of file descriptors. My attempt to add support for nc.openbsd has not been very successful. Currently, nc.traditional works very well. nc.openbsd package however has issue in sending output back to client. PRs welcome

  • The data over communication channel is totally encrypted with aes-256-cbc using openssl.
  • You can generate new key, salt and iv. Check common.sh for reference
  • You can pass several options as env-vars. Check common.sh for reference

Usage

Run daemon.sh

$ ./daemon.sh

Run client.sh

$ ./client.sh

You can run command on the simple prompt in your client-side now.

Known Issues

#1

About

A simple backdoor in (ba)sh with encrypted communication channel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages