Code Monkey home page Code Monkey logo

splinter's Introduction

Splinter

Linux remote access trojan (RAT)

This is the starting code for a Linux RAT written in C. I was tired of there being no real Linux RATs, most of the time it's just ncat. It uses mbedTLS for encryption and miniz (but able to use zlib) compression for all the communications. I'm unsure if I did the crypto correctly, but I feel that it's good enough for now I started this project to learn C and I've been working on it for a couple months. If any problems happens or features wanted, please let me know.

rat.c

    -Port is configurable at runtime through the environment variable "P".  It will bind on all interfaces by default.
            -Uses poll to handle multiple connections
    -Capable of calling back via "I" environment variable.

rat-client.c

    -Command history and tab completion provided by readline
    -Currently has 4 native commands:
            .exit - Closes that current client's connection
            .kill - Kills off the rat process and all the client's connection
            download <remote file> <local file> - Chunks a file, compresses it and sends it over.  Will verify the file transfer via SHAA1 hash
            upload <local file> <remote file> - Performs the same operation as download but uploads instead

rat binds and client connects to it

    remote shell> P=12345 ./rat
    shell> ./rat-client 127.0.0.1 12345

rat calls back to client

    shell ./rat-client 12345
    remote_shell> I=127.0.0.1 P=12345 ./rat

TODO:

    Simple:
            -Move the rat.c output inside of DEBUG blocks so it's not spewing everywhere
            -Clean up rat-client.c output so it's a little nicer
            -Change the client command prompt to actually get the target's IP address

    Advanced:
            -Add in SSH-type tunnels to be able to do forward and reverse tunels
            -Add in the ability to fork and bind on a different port or callback via commands

splinter's People

Contributors

snaptastic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.