Git Product home page Git Product logo

shellcrypt's Introduction

Shellcrypt

A single-file cross-platform quality of life tool to obfuscate a given shellcode file and output in a useful format for pasting directly into your source code.

Screenshot of Shellcrypt encrypting shellcode

Contributors

These are going here because they deserve it

Encryption Methods

Shellcrypt currently supports the following encryption methods (more to come in the future!)

  • XOR
  • AES (128-bit CBC)

Supported Formats

Shellcrypt currently supports the following output formats (more to come in the future!)

  • C
  • C#
  • Nim
  • Raw

Usage

Encrypt shellcode with a random key

python ./shellcrypt.py -i ./shellcode.bin -f c

Encrypt shellcode with 128-bit AES CBC

python ./shellcrypt.py -i ./shellcode.bin -e aes -f c

Encrypt shellcode with a user-specified key

python ./shellcrypt.py -i ./shellcode.bin -f c -k 6d616c77617265

Output in nim format

python ./shellcrypt.py -i ./shellcode.bin -f nim

Output to file

python ./shellcrypt.py -i ./shellcode.bin -f nim -o ./shellcode_out.nim

Get a list of encryption methods

python ./shellcrypt.py --ciphers

Get a list of output formats

python ./shellcrypt.py --formats

Help

███████╗██╗  ██╗███████╗██╗     ██╗      ██████╗██████╗ ██╗   ██╗██████╗ ████████╗
██╔════╝██║  ██║██╔════╝██║     ██║     ██╔════╝██╔══██╗╚██╗ ██╔╝██╔══██╗╚══██╔══╝
███████╗███████║█████╗  ██║     ██║     ██║     ██████╔╝ ╚████╔╝ ██████╔╝   ██║
╚════██║██╔══██║██╔══╝  ██║     ██║     ██║     ██╔══██╗  ╚██╔╝  ██╔═══╝    ██║
███████║██║  ██║███████╗███████╗███████╗╚██████╗██║  ██║   ██║   ██║        ██║
╚══════╝╚═╝  ╚═╝╚══════╝╚══════╝╚══════╝ ╚═════╝╚═╝  ╚═╝   ╚═╝   ╚═╝        ╚═╝
v1.3 beta

 ~ @0xLegacyy (Jordan Jay)

usage: shellcrypt [-h] [-i INPUT] [-e ENCRYPT] [-k KEY] [-n NONCE] [-f FORMAT] [--formats] [--ciphers] [-o OUTPUT]
                  [-v]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Path to file to be encrypted.
  -e ENCRYPT, --encrypt ENCRYPT
                        Encryption method to use, default 'xor'.
  -k KEY, --key KEY     Encryption key in hex format, default (random 16 bytes).
  -n NONCE, --nonce NONCE
                        Encryption nonce in hex format, default (random 16 bytes).
  -f FORMAT, --format FORMAT
                        Output format, specify --formats for a list of formats.
  --formats             Show a list of valid formats
  --ciphers             Show a list of valid ciphers
  -o OUTPUT, --output OUTPUT
                        Path to output file
  -v, --version         Shows the version and exits

Future Development Goals

  1. More output formats (python/go/rust/etc.)
  2. More encryption methods
  3. Compression methods
  4. Create a config system that allows for chaining encryption/encoding/compression methods
  5. Flag to add a decrypt method to the generated code
  6. Shikata encoder mayhaps?

pssst this is still heavily in development so if you'd like to contribute, have a go at working on one of the many TODO's in the code :)

shellcrypt's People

Contributors

iilegacyyii avatar an00brektn 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.