Giter Club home page Giter Club logo

ghostwriter's Introduction

Ghostwriter


ghostwriter

This is a Mythic agent for interacting with the 3rd party service, Ghostwriter.

This doesn't build a payload, but instead generates a "callback" within Mythic that allows you to interact with Ghostwriter's GraphQL API.

Once you have Ghostwriter running, generate an API JWT and set it as GHOSTWRITER_API_KEY as a user secret in the Mythic UI (red key on your operator settings page).

How to install an agent in this format within Mythic

When it's time for you to test out your install or for another user to install your agent, it's pretty simple. Within Mythic you can run the mythic-cli binary to install this in one of three ways:

  • sudo ./mythic-cli install github https://github.com/user/repo to install the main branch
  • sudo ./mythic-cli install github https://github.com/user/repo branchname to install a specific branch of that repo
  • sudo ./mythic-cli install folder /path/to/local/folder/cloned/from/github to install from an already cloned down version of an agent repo

Now, you might be wondering when should you or a user do this to properly add your agent to their Mythic instance. There's no wrong answer here, just depends on your preference. The three options are:

  • Mythic is already up and going, then you can run the install script and just direct that agent's containers to start (i.e. sudo ./mythic-cli start agentName and if that agent has its own special C2 containers, you'll need to start them too via sudo ./mythic-cli start c2profileName).
  • Mythic is already up and going, but you want to minimize your steps, you can just install the agent and run sudo ./mythic-cli start. That script will first stop all of your containers, then start everything back up again. This will also bring in the new agent you just installed.
  • Mythic isn't running, you can install the script and just run sudo ./mythic-cli start.

Documentation

View the rendered documentation by clicking on Docs -> Agent Documentation in the upper right-hand corner of the Mythic interface.

ghostwriter's People

Contributors

its-a-feature avatar github-actions[bot] avatar

Stargazers

Computer button pusher // Pousseur de boutons en informatique  || SIN - SIN HACK - HACK || NO-CODE evangelist || Black coffee like my sense of humor avatar sleeptok3n avatar Byryu avatar Matthew Conway avatar Nate Subra avatar  avatar

Watchers

 avatar  avatar

ghostwriter's Issues

ModuleNotFoundError: No module named 'gql'

Hi,

I have installed the Ghostwriter docker into mythic.

but the container is always restarting and writing this error in the logs:

Traceback (most recent call last):
  File "/Mythic/main.py", line 4, in <module>
    import ghostwriter
  File "/Mythic/ghostwriter/__init__.py", line 14, in <module>
    module = import_module(f"{__name__}.agent_functions." + Path(x).stem)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Mythic/ghostwriter/agent_functions/project_notes_update.py", line 3, in <module>
    from ghostwriter.GhostwriterRequests import GhostwriterAPI
  File "/Mythic/ghostwriter/GhostwriterRequests/GhostwriterAPI.py", line 2, in <module>
    from ghostwriter.GhostwriterRequests.GhostwriterAPIClasses import *
  File "/Mythic/ghostwriter/GhostwriterRequests/GhostwriterAPIClasses.py", line 7, in <module>
    from gql import Client, gql
ModuleNotFoundError: No module named 'gql'

i have installed the gql module over pip. and i am running python version 3.11

how can i resolve this error?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.