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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file red_team_language-0.2.0.tar.gz
.
File metadata
- Download URL: red_team_language-0.2.0.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77fc00ff39f10aba7a178894cd841bfe9a3c0538461086258be2367176eface5 |
|
MD5 | 8d6887488928cc9aac6ebfbbb4397232 |
|
BLAKE2b-256 | fc25ce2fe65108dcb03a51eb458ee3bcf53825be2ea82cd5e7da0e76ae8d30ab |
File details
Details for the file red_team_language-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: red_team_language-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.8 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec1a3191ee17c419ae233281179bce0a1281fff314d5dc3163eb62d38b5a9c5f |
|
MD5 | 70b1890395d51cf3c8f96e91b1fac6fa |
|
BLAKE2b-256 | 01d730e1159404a9a81ff6e27c11241aefeb619c2f349151d1513dfcadbf9933 |