Skip to main content

A security-oriented payload encryption tool written in Python.

Project description

Kryptoxin

Latest Release GitHub issues GitHub Workflow - Docs GitHub Workflow - Tests License

Description

Kryptoxin is a Python tool allowing you to generate encrypted payloads effortlessly. This software is primarily intended for use in the security field for storing encrypted objects on target hosts. It can also be used for concealing scripts and binary objects from scrutiny.

The name Kryptoxin comes from the contraction of Kryptos (meaning conceal, hidden or secret in Greek) and the word Toxin (meaning poison). As the name implies, the intended goal of this project is to provide a fast and efficient way of concealing or hiding payloads, thus saving you a lot of time and effort. Most of our templates are "living off the land", using system libraries and encryption routines commonly found in base operating systems installations.

Features

The below features are supported:

  • Provides block-cipher encryption algorithms such as the Advanced Encryption Standard or AES.
  • Supports user-specifiable key sizes and block-cipher modes of operations, such as AES256-CBC.
  • Generate random cryptographic parameters such as Initialization Vector and Salt.
  • Encodes and properly formats variables for fast and streamlined copy/paste operations.
  • Handles Text Files, Scripts, Portable Executables (PE), Dynamic Link Libraries (DLLs), and shellcodes objects.
  • Generates compact, portable scripts or source codes as outputs for the below programming languages:
    • PowerShell
    • C#
    • C++
    • C
  • Implement key derivation functions, such as PBKDF2.
  • Supports out-of-band key storage, with conditional trigger mechanisms (not yet available).
  • Includes scripts and source code templates to be used for security-related tasks and experimentation.

Installation

With pip (latest release)

pip install kryptoxin

With git (v0.9.8)

git clone https://github.com/e3prom/kryptoxin
cd kryptoxin
git checkout tags/0.9.8
sudo make install

Usages examples

Read, encrypt and decrypt, all from stdin

$ echo -n 'test' | python -m kryptoxin encrypt -k 12345
5bP32GKoJa57IcKL4sWeUQ==

$ echo -n '5bP32GKoJa57IcKL4sWeUQ==' | python -m kryptoxin decrypt -k 12345
test

Encrypt using AES-128-CFB

$ echo -n 'test' | python -m kryptoxin encrypt -k 12345 --alg aes --key_size 128 --mode CFB
E1ZdkFX+N4SjHtcsSi5m2g==

Uses the PowerShell load-asm script template

$ python -m kryptoxin encrypt -k 123456 --random-iv --random-salt \
--lang powershell --action load_asm --in TestLibrary.dll \
--type=TestLibraryClass.Class1 --method=run
2023-03-04 17:33:42,287 - INFO - The Initialization Vector (IV) is: c15c8447204e9025a8ef1e4dd2ea80da
2023-03-04 17:33:42,287 - INFO - The PBKDF2 Salt is: 85858c9115145be223d36750464b8026

$base64EncData = "3Ud7pHQPm/qWOjgtuNOXP2WclPMxz6VuhfRTnwNXDyg="
[...]

Documentation

You can directly visit the online documentation or build it locally using the make docs command.

Disclaimer

This program is distributed "AS IS" without any warranty or conditions of any kind. Under no circumstances can the developers, maintainers, or contributors be held responsible for the improper use of this software. Any damages or consequences resulting from the direct or indirect operation of this software cannot be attributed to the above-mentioned individuals or organizations. All opinions and knowledge expressed in the source codes, documentation, templates and examples are provided for educational and demonstration purposes only. By using this software you agree to the terms expressed therein.

License

Kryptoxin is released under the AGPL-3 license. See LICENSE for more detail.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kryptoxin-0.9.8.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

kryptoxin-0.9.8-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file kryptoxin-0.9.8.tar.gz.

File metadata

  • Download URL: kryptoxin-0.9.8.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for kryptoxin-0.9.8.tar.gz
Algorithm Hash digest
SHA256 d0988553f1da45b27c73d2420c3f7945acc2c40f0f9995826b7b138e2bda49d0
MD5 fca794b5c28c5ef9dba4bd9989c2f596
BLAKE2b-256 443e69dcb02c0ee6ae9234234ac2117a7f26d6af5e2d7a4322783764646c295c

See more details on using hashes here.

File details

Details for the file kryptoxin-0.9.8-py3-none-any.whl.

File metadata

  • Download URL: kryptoxin-0.9.8-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.0

File hashes

Hashes for kryptoxin-0.9.8-py3-none-any.whl
Algorithm Hash digest
SHA256 555c5d7ff1fa574a7e430e907055e0b4995fecd7aed50246c212b1bfb4128dad
MD5 52302e2a56e2dddc5765e180fd9fab9c
BLAKE2b-256 1c7b4b46ce32eea93ce3ee50b7f7174dd25980b61e05cf0a820bb819053f61a4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page