mirror of
https://github.com/wotwot563/aad_prt_bof
synced 2026-06-08 18:21:36 +00:00
0fd5fdaeea
* stage1 support * Changed str to wchar_t * Update aadprt.s1.py * Rename aadprt.s1.py to aadprt_bof.s1.py * Delete bin/.gitignore * Update Makefile
15 lines
663 B
Python
15 lines
663 B
Python
from typing import List, Tuple
|
|
|
|
from outflank_stage1.task.base_bof_task import BaseBOFTask
|
|
from outflank_stage1.task.enums import BOFArgumentEncoding
|
|
|
|
class AadPRTBOF(BaseBOFTask):
|
|
def __init__(self):
|
|
super().__init__("aadprt", base_binary_name="aadprt")
|
|
self.parser.description = "Request an Azure AD PRT."
|
|
self.parser.add_argument("nonce", help="The PRT nonce, request from roadrecon auth --prt-init.")
|
|
|
|
def _encode_arguments_bof(self, arguments: List[str]) -> List[Tuple[BOFArgumentEncoding, str]]:
|
|
parser_arguments = self.parser.parse_args(arguments)
|
|
return [(BOFArgumentEncoding.WSTR, parser_arguments.nonce)]
|