Skip to content

MythicAgents/forgescript

Repository files navigation

Forgescript

GitHub License GitHub Release Release

Warning

This project is currently in testing until version 0.1.0 is released.

Scriptable alias command augmentations in Mythic using Python.

Installation

Install using the mythic-cli program on an existing Mythic system.

./mythic-cli install github https://github.com/MythicAgents/forgescript

Features

Embedded scripting interface for registering custom command aliases with arbitrary agents.

Example

An example script which creates an alias command forgescript_whoami which will run the builtin whoami command for an agent.

import forgescript


def whoami(task: forgescript.Task) -> forgescript.AliasedCommand:
    return forgescript.AliasedCommand("whoami")


forgescript.register_alias(
    "forgescript_whoami",
    whoami,
    description="Runs the builtin whoami command",
    author="MEhrn00",
)

More extended examples can be found in the examples/ directory.

Commands

Command Syntax Description
forgescript_load forgescript_load [popup] Load a script bundle into Mythic

About

Scriptable alias command augmentations in Mythic using Python

Resources

License

Stars

Watchers

Forks

Packages