Skip to content

Commit

Permalink
Merge pull request #59 from mbrg/feature/whoiam
Browse files Browse the repository at this point in the history
add gui for copilot
  • Loading branch information
lanasalameh1 authored Aug 6, 2024
2 parents 931e63a + 9e90fd5 commit 7993579
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/powerpwn/cli/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ def module_copilot(command_subparsers: argparse.ArgumentParser):
dump.add_argument("-d", "--directory", type=str, required=True, help="Path to whoami output directory")
dump.add_argument("-g", "--gui", action="store_true", help="Run local server for gui.")

gui = copilot_subparsers.add_parser(
"gui", description="Browse data in a local server", help="Browse collected data in a simple gui on a local server"
)
gui.add_argument("-d", "--directory", type=str, required=True, help="Data directory")


def copilot_modules(parser):
parser.add_argument("-u", "--user", required=True, type=str, help="User email to connect.")
Expand Down
4 changes: 4 additions & 0 deletions src/powerpwn/cli/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ def run_phishing_command(args):


def run_copilot_chat_command(args):
if args.copilot_subcommand == "gui":
CopilotGui().run(args.directory)
return

parsed_args = ChatArguments(
user=args.user,
password=args.password,
Expand Down

0 comments on commit 7993579

Please sign in to comment.