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
red_team_language-0.1.1.tar.gz
(135.9 kB
view details)
Built Distribution
File details
Details for the file red_team_language-0.1.1.tar.gz
.
File metadata
- Download URL: red_team_language-0.1.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ae4001616e6c329d0d398abf5fa9800b0c873fc19d5d1ee73e389b739cba259 |
|
MD5 | 8c0873a9856580607c31136e2e286dee |
|
BLAKE2b-256 | f30c891e193d480eca5460a50496228d0fa746b5bcf8437c8c0bd20ea51deda9 |
File details
Details for the file red_team_language-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: red_team_language-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 152.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 245d2510a560cb9c0ff53a968d32031ce14e76a57c06cacf4c7c60eb8e84f6fd |
|
MD5 | 2bc16b4a0f6886681846087eb8b8fcbb |
|
BLAKE2b-256 | e50847f7213a978ec8e7ae519cfca1946bf9245b3b3bcdbc89aec0bb514882f9 |