red-team-language


Namered-team-language JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/ArchiMoebius/rtl
SummaryRed-Team-Language - something snazzy
upload_time2023-08-06 15:14:09
maintainerArchi Moebius
docs_urlNone
authorArchi Moebius
requires_python>=3.10
licenseGPL-3 LGPL-3
keywords python3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Install!

```bash
pip3 install .
```

# Usage

```bash
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._

```bash
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)_

```bash
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/*
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ArchiMoebius/rtl",
    "name": "red-team-language",
    "maintainer": "Archi Moebius",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "ArchiMoebius@dojobebo.com",
    "keywords": "python3",
    "author": "Archi Moebius",
    "author_email": "ArchiMoebius@dojobebo.com",
    "download_url": "https://files.pythonhosted.org/packages/fc/25/ce2fe65108dcb03a51eb458ee3bcf53825be2ea82cd5e7da0e76ae8d30ab/red_team_language-0.2.0.tar.gz",
    "platform": "Linux",
    "description": "# Install!\n\n```bash\npip3 install .\n```\n\n# Usage\n\n```bash\nusage: rtl [-h] --src SRC [--dst DST] [--ir] [--asm] [--obj] [--build]\n\nThe Red-Team-Language compiler enables one to write scripts and deploy them as static executables - for the lolz of course!\n\noptions:\n  -h, --help  show this help message and exit\n  --src SRC   The source *.rtl script to compile to LLVM-IR\n  --dst DST   The where to write the output (default is stdout)\n  --ir        Emit LLVM-IR\n  --asm       Emit assembly for this machine\n  --obj       Emit an object file for this machine\n  --build     Attempt to build a binary from the provided --src\n```\n\nNOTE: _The `--build` flag requires the ziglang binary 'zig' be on path if not using docker; this is the way._\n\n```bash\nrtl --src rtl/examples/shell/shell_executable.rtl --asm > a.s\nclang -o executable.elf -fPIC rtl/lib/protocol/shell/shell.o rtl/lib/transform/xor/xor.o a.s -ggdb\n```\n\n# Docker\n\nPick 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)_\n\n```bash\nDOCKER_BUILDKIT=1 docker build -f Dockerfile -t rtl:latest .\ndocker run --rm -it --volume \"`pwd`/rtl/examples/shell/:/src\" --volume \"`pwd`/tmp:/tmp\" rtl --src /src/executable_script_inline_obfuscated.rtl --build\nls -alh ./tmp\nfile ./tmp/*\n```\n",
    "bugtrack_url": null,
    "license": "GPL-3 LGPL-3",
    "summary": "Red-Team-Language - something snazzy",
    "version": "0.2.0",
    "project_urls": {
        "Bugs": "https://github.com/ArchiMoebius/rtl/issues",
        "C.I.": "https://github.com/ArchiMoebius/rtl/",
        "Docs": "https://github.com/ArchiMoebius/rtl/README.md",
        "Download": "https://github.com/ArchiMoebius/rtl",
        "Homepage": "https://github.com/ArchiMoebius/rtl"
    },
    "split_keywords": [
        "python3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "01d730e1159404a9a81ff6e27c11241aefeb619c2f349151d1513dfcadbf9933",
                "md5": "70b1890395d51cf3c8f96e91b1fac6fa",
                "sha256": "ec1a3191ee17c419ae233281179bce0a1281fff314d5dc3163eb62d38b5a9c5f"
            },
            "downloads": -1,
            "filename": "red_team_language-0.2.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "70b1890395d51cf3c8f96e91b1fac6fa",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.10",
            "size": 2771423,
            "upload_time": "2023-08-06T15:14:06",
            "upload_time_iso_8601": "2023-08-06T15:14:06.671546Z",
            "url": "https://files.pythonhosted.org/packages/01/d7/30e1159404a9a81ff6e27c11241aefeb619c2f349151d1513dfcadbf9933/red_team_language-0.2.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fc25ce2fe65108dcb03a51eb458ee3bcf53825be2ea82cd5e7da0e76ae8d30ab",
                "md5": "8d6887488928cc9aac6ebfbbb4397232",
                "sha256": "77fc00ff39f10aba7a178894cd841bfe9a3c0538461086258be2367176eface5"
            },
            "downloads": -1,
            "filename": "red_team_language-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "8d6887488928cc9aac6ebfbbb4397232",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 2222853,
            "upload_time": "2023-08-06T15:14:09",
            "upload_time_iso_8601": "2023-08-06T15:14:09.022915Z",
            "url": "https://files.pythonhosted.org/packages/fc/25/ce2fe65108dcb03a51eb458ee3bcf53825be2ea82cd5e7da0e76ae8d30ab/red_team_language-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-06 15:14:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ArchiMoebius",
    "github_project": "rtl",
    "github_not_found": true,
    "lcname": "red-team-language"
}
        
Elapsed time: 0.10913s