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
Close
Hashes for red_team_language-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec1a3191ee17c419ae233281179bce0a1281fff314d5dc3163eb62d38b5a9c5f |
|
MD5 | 70b1890395d51cf3c8f96e91b1fac6fa |
|
BLAKE2b-256 | 01d730e1159404a9a81ff6e27c11241aefeb619c2f349151d1513dfcadbf9933 |