Skip to content

Commit

Permalink
Merge pull request #5 from MythicAgents/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
spenceradolph committed Apr 23, 2024
2 parents b8c0fb2 + 017053b commit 795ac73
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Payload_Type/sliverapi/sliverapi/SliverRequests/SliverAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ async def handleSliverEvent(event: client_pb2.Event, configFileId):

# create payload
sliver_os_table = {
'linux': 'Linux'
'linux': 'Linux',
'windows': 'Windows'
}

# TODO: only include 'shell' for interactive sessions, not beacons
Expand Down
3 changes: 2 additions & 1 deletion Payload_Type/sliverapi/sliverapi/agent_functions/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ async def create_go_tasking(self, taskData: MythicCommandBase.PTTaskMessageAllDa
sliverconfig_file_uuid = taskData.BuildParameters[0].Value

sliver_os_table = {
'linux': 'Linux'
'linux': 'Linux',
'windows': "Windows"
}

# TODO: include 'shell' for sessions, but not for beaconers
Expand Down
3 changes: 2 additions & 1 deletion Payload_Type/sliverapi/sliverapi/agent_functions/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ async def profiles_generate(taskData: PTTaskMessageAllData):
break

sliver_os_table = {
'linux': 'Linux'
'linux': 'Linux',
'windows': "Windows"
}

sliverconfig_file_uuid = taskData.BuildParameters[0].Value
Expand Down
6 changes: 4 additions & 2 deletions Payload_Type/sliverapi/sliverapi/agent_functions/use.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ async def use(taskData: PTTaskMessageAllData, sliver_id: int):
# create the payload
# TODO: figure out mappings for windows or mac...
sliver_os_table = {
'linux': 'Linux'
'linux': 'Linux',
'windows': "Windows"
}

# TODO: only include 'shell' for interactive sessions, not beacons
Expand All @@ -118,7 +119,8 @@ async def use(taskData: PTTaskMessageAllData, sliver_id: int):
PayloadConfiguration=MythicRPCPayloadConfiguration(
payload_type="sliverimplant",
uuid=sliver_id,
selected_os=sliver_os_table[implant_info.OS],
# selected_os=sliver_os_table[implant_info.OS],
selected_os='Windows',
description=f"(no download) using sliver {'beaconing' if isBeacon else 'interactive'} implant for {sliver_id}",
build_parameters=[],
c2_profiles=[],
Expand Down

0 comments on commit 795ac73

Please sign in to comment.