Adding attribute supported_os to remaining commands
This commit is contained in:
@@ -35,6 +35,9 @@ class DownloadCommand(CommandBase):
|
|||||||
supported_ui_features = ["file_browser:download"]
|
supported_ui_features = ["file_browser:download"]
|
||||||
author = "@KaseyaOFSTeam"
|
author = "@KaseyaOFSTeam"
|
||||||
argument_class = DownloadArguments
|
argument_class = DownloadArguments
|
||||||
|
attributes = CommandAttributes(
|
||||||
|
supported_os=[SupportedOS.Windows]
|
||||||
|
)
|
||||||
|
|
||||||
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ class ExitCommand(CommandBase):
|
|||||||
author = "Kaseya OFSTeam"
|
author = "Kaseya OFSTeam"
|
||||||
argument_class = ExitArguments
|
argument_class = ExitArguments
|
||||||
attackmapping = []
|
attackmapping = []
|
||||||
|
attributes = CommandAttributes(
|
||||||
|
supported_os=[SupportedOS.Windows]
|
||||||
|
)
|
||||||
|
|
||||||
async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse:
|
async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse:
|
||||||
response = PTTaskCreateTaskingMessageResponse(
|
response = PTTaskCreateTaskingMessageResponse(
|
||||||
|
|||||||
@@ -266,7 +266,8 @@ class InlineExecuteAssemblyCommand(CommandBase):
|
|||||||
completion_functions = {"coff_completion_callback": coff_completion_callback}
|
completion_functions = {"coff_completion_callback": coff_completion_callback}
|
||||||
attributes = CommandAttributes(
|
attributes = CommandAttributes(
|
||||||
dependencies=["inline_execute"],
|
dependencies=["inline_execute"],
|
||||||
alias=True
|
alias=True,
|
||||||
|
supported_os=[SupportedOS.Windows]
|
||||||
)
|
)
|
||||||
|
|
||||||
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
||||||
|
|||||||
@@ -73,6 +73,9 @@ class KillCommand(CommandBase):
|
|||||||
attackmapping = ["T1489"]
|
attackmapping = ["T1489"]
|
||||||
supported_ui_features = ["process_browser:kill"]
|
supported_ui_features = ["process_browser:kill"]
|
||||||
argument_class = KillArguments
|
argument_class = KillArguments
|
||||||
|
attributes = CommandAttributes(
|
||||||
|
supported_os=[SupportedOS.Windows]
|
||||||
|
)
|
||||||
|
|
||||||
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -52,6 +52,9 @@ class ListTokensCommand(CommandBase):
|
|||||||
author = "@KaseyaOFSTeam"
|
author = "@KaseyaOFSTeam"
|
||||||
supported_ui_features = ["process_browser:list_tokens"]
|
supported_ui_features = ["process_browser:list_tokens"]
|
||||||
argument_class = ListTokensArguments
|
argument_class = ListTokensArguments
|
||||||
|
attributes = CommandAttributes(
|
||||||
|
supported_os=[SupportedOS.Windows]
|
||||||
|
)
|
||||||
|
|
||||||
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -75,6 +75,9 @@ class MakeTokenCommand(CommandBase):
|
|||||||
author = "@KaseyaOFSTeam"
|
author = "@KaseyaOFSTeam"
|
||||||
attackmapping = ["T1134.003"]
|
attackmapping = ["T1134.003"]
|
||||||
argument_class = MakeTokenArguments
|
argument_class = MakeTokenArguments
|
||||||
|
attributes = CommandAttributes(
|
||||||
|
supported_os=[SupportedOS.Windows]
|
||||||
|
)
|
||||||
|
|
||||||
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ class Rev2SelfCommand(CommandBase):
|
|||||||
author = "@KaseyaOFSTeam"
|
author = "@KaseyaOFSTeam"
|
||||||
attackmapping = ["T1134.001"]
|
attackmapping = ["T1134.001"]
|
||||||
argument_class = Rev2SelfArguments
|
argument_class = Rev2SelfArguments
|
||||||
|
attributes = CommandAttributes(
|
||||||
|
supported_os=[SupportedOS.Windows]
|
||||||
|
)
|
||||||
|
|
||||||
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ class ScreenshotCommand(CommandBase):
|
|||||||
author = "@KaseyaOFSTeam"
|
author = "@KaseyaOFSTeam"
|
||||||
argument_class = ScreenshotArguments
|
argument_class = ScreenshotArguments
|
||||||
attackmapping = ["T1113"]
|
attackmapping = ["T1113"]
|
||||||
|
attributes = CommandAttributes(
|
||||||
|
supported_os=[SupportedOS.Windows]
|
||||||
|
)
|
||||||
|
|
||||||
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class ShellCommand(CommandBase):
|
|||||||
attackmapping = ["T1059"]
|
attackmapping = ["T1059"]
|
||||||
argument_class = ShellArguments
|
argument_class = ShellArguments
|
||||||
attributes = CommandAttributes(
|
attributes = CommandAttributes(
|
||||||
supported_os=[SupportedOS.MacOS, SupportedOS.Linux, SupportedOS.Windows]
|
supported_os=[SupportedOS.Windows]
|
||||||
)
|
)
|
||||||
|
|
||||||
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
||||||
|
|||||||
@@ -73,6 +73,9 @@ class StealTokenCommand(CommandBase):
|
|||||||
attackmapping = ["T1134.001"]
|
attackmapping = ["T1134.001"]
|
||||||
supported_ui_features = ["process_browser:steal_token"]
|
supported_ui_features = ["process_browser:steal_token"]
|
||||||
argument_class = StealTokenArguments
|
argument_class = StealTokenArguments
|
||||||
|
attributes = CommandAttributes(
|
||||||
|
supported_os=[SupportedOS.Windows]
|
||||||
|
)
|
||||||
|
|
||||||
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -66,6 +66,9 @@ class UploadCommand(CommandBase):
|
|||||||
supported_ui_features = ["file_browser:upload"]
|
supported_ui_features = ["file_browser:upload"]
|
||||||
author = "@KaseyaOFSTeam"
|
author = "@KaseyaOFSTeam"
|
||||||
argument_class = UploadArguments
|
argument_class = UploadArguments
|
||||||
|
attributes = CommandAttributes(
|
||||||
|
supported_os=[SupportedOS.Windows]
|
||||||
|
)
|
||||||
|
|
||||||
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
async def opsec_pre(self, taskData: PTTaskMessageAllData) -> PTTTaskOPSECPreTaskMessageResponse:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -23,6 +23,9 @@ class WhoamiCommand(CommandBase):
|
|||||||
author = "@KaseyaOFSTeam"
|
author = "@KaseyaOFSTeam"
|
||||||
attackmapping = ["T1083"]
|
attackmapping = ["T1083"]
|
||||||
argument_class = WhoamiArguments
|
argument_class = WhoamiArguments
|
||||||
|
attributes = CommandAttributes(
|
||||||
|
supported_os=[SupportedOS.Windows]
|
||||||
|
)
|
||||||
|
|
||||||
async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse:
|
async def create_go_tasking(self, taskData: PTTaskMessageAllData) -> PTTaskCreateTaskingMessageResponse:
|
||||||
response = PTTaskCreateTaskingMessageResponse(
|
response = PTTaskCreateTaskingMessageResponse(
|
||||||
|
|||||||
Reference in New Issue
Block a user