Skip to main content

Red-Team-Language - something snazzy

Project description

Install!

pip3 install .

Usage

usage: rtl [-h] --src SRC [--dst DST] [--ir] [--asm] [--obj] [--build]

The Red-Team-Language compiler enables one to write scripts and deploy them as static executables - for the lolz of course!

options:
  -h, --help  show this help message and exit
  --src SRC   The source *.rtl script to compile to LLVM-IR
  --dst DST   The where to write the output (default is stdout)
  --ir        Emit LLVM-IR
  --asm       Emit assembly for this machine
  --obj       Emit an object file for this machine
  --build     Attempt to build a binary from the provided --src

NOTE: The --build flag requires the ziglang binary 'zig' be on path if not using docker; this is the way.

rtl --src rtl/examples/shell/shell_executable.rtl --asm > a.s
clang -o executable.elf -fPIC rtl/lib/protocol/shell/shell.o rtl/lib/transform/xor/xor.o a.s -ggdb

Docker

Pick a file from ./rtl/examples/shell and execute the following - or use the one provided and copy+pasta! (i.e. executable_script_inline_obfuscated.rtl)

DOCKER_BUILDKIT=1 docker build -f Dockerfile -t rtl:latest .
docker run --rm -it --volume "`pwd`/rtl/examples/shell/:/src" --volume "`pwd`/tmp:/tmp" rtl --src /src/executable_script_inline_obfuscated.rtl --build
ls -alh ./tmp
file ./tmp/*

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

red_team_language-0.1.0.tar.gz (135.9 kB view details)

Uploaded Source

Built Distribution

red_team_language-0.1.0-py2.py3-none-any.whl (152.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file red_team_language-0.1.0.tar.gz.

File metadata

  • Download URL: red_team_language-0.1.0.tar.gz
  • Upload date:
  • Size: 135.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for red_team_language-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5e7b932f473b716f7c18e4eea8c8b0a704ce239f3af94d18e6eb50024db7c3ac
MD5 0883ff37a763d5604566df5dc2d08f0a
BLAKE2b-256 5ae418993a0a27d129395f2a0c918cbe61f2fedeef5f02e978b99353c7a22547

See more details on using hashes here.

File details

Details for the file red_team_language-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for red_team_language-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f02bce5955fc2313bd70bed474a784dfdf48e7c5240a2dc969d10b7f29df3a98
MD5 dc4ab0d718fc90df951000b31e3a0847
BLAKE2b-256 3b1be19c79d1964f743ea9cfad922b9736fa553847ba1f32674f5545f6af7fd7

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