Skip to content

Commit 5f5d022

Browse files
committed
tasks, http, https
1 parent 8cf829f commit 5f5d022

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

Payload_Type/sliverapi/sliverapi/agent_functions/http.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ async def process_response(self, task: PTTaskMessageAllData, response: any) -> P
6666

6767

6868
async def http(taskData: PTTaskMessageAllData):
69-
# client = await SliverAPI.create_sliver_client(taskData)
69+
client = await SliverAPI.create_sliver_client(taskData)
7070

71-
# http_result = await client.start_http_listener()
71+
http_result = await client.start_http_listener()
7272

7373
# TODO: match sliver formatting
7474

75-
return "This command not yet implemented..."
75+
return f"{http_result}"

Payload_Type/sliverapi/sliverapi/agent_functions/https.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ async def process_response(self, task: PTTaskMessageAllData, response: any) -> P
7070

7171

7272
async def https(taskData: PTTaskMessageAllData):
73-
# client = await SliverAPI.create_sliver_client(taskData)
73+
client = await SliverAPI.create_sliver_client(taskData)
7474

75-
# https_result = await client.start_https_listener()
75+
https_result = await client.start_https_listener()
7676

7777
# TODO: match sliver formatting
7878

79-
return "This command not yet implemented..."
79+
return f"{https_result}"

Payload_Type/sliverimplant/sliverimplant/agent_functions/tasks.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
from mythic_container.MythicRPC import *
55
from mythic_container.PayloadBuilder import *
66

7+
from sliver import sliver_pb2, client_pb2
8+
79
class TasksArguments(TaskArguments):
810
def __init__(self, command_line, **kwargs):
911
super().__init__(command_line, **kwargs)
@@ -62,11 +64,14 @@ async def process_response(self, task: PTTaskMessageAllData, response: any) -> P
6264
return resp
6365

6466
async def tasks(taskData: PTTaskMessageAllData):
65-
# interact, isBeacon = await SliverAPI.create_sliver_interact(taskData)
67+
interact, isBeacon = await SliverAPI.create_sliver_interact(taskData)
68+
69+
if (not isBeacon):
70+
return "Beacon only command!"
6671

67-
# ifconfig_results = await interact._stub()
72+
task_results = await interact._stub.GetBeaconTasks(client_pb2.Beacon(ID=interact.beacon_id))
6873

6974
# if (isBeacon):
7075
# ifconfig_results = await ifconfig_results
7176

72-
return "This command not yet implemented..."
77+
return f"{task_results}"

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,22 +48,22 @@ sudo ./mythic-cli install github https://github.com/MythicAgents/sliver
4848
- Stretch Goal: Ability to run the sliver server within mythic
4949
- Stretch Goal: V2 everything in go💙 (match sliver official client code)
5050

51-
✅ == kinda working proof of concept
52-
☝️ == requires updated sliver-py, or updated rpc
51+
✅ == kinda working proof of concept, parameters/formatting likely need more work
52+
☝️ == requires updated sliver-py, or updated rpc, or mythic updates
5353
👷 == ready for implementation
5454
🔍 == more research needed
5555

5656
<details>
5757
<summary>Server Commands</summary>
5858

5959
- clear (not applicable)
60-
- exit🔍
60+
- exit🔍 (exit vs close vs background vs kill)
6161
- monitor🔍
6262
- wg-config🔍
6363
- wg-portfwd🔍
6464
- wg-socks🔍
6565
- aliases (waiting on Mythic alias support)
66-
- armory👷 (waiting on Mythic alias support)
66+
- armory☝️ (waiting on Mythic alias support)
6767
- background (not applicable?)
6868
- beacons✅
6969
- builders☝️
@@ -72,8 +72,8 @@ sudo ./mythic-cli install github https://github.com/MythicAgents/sliver
7272
- dns👷
7373
- generate✅
7474
- hosts✅
75-
- http👷
76-
- https👷
75+
- http
76+
- https
7777
- implants✅
7878
- jobs✅
7979
- licenses✅
@@ -139,7 +139,7 @@ sudo ./mythic-cli install github https://github.com/MythicAgents/sliver
139139
- sideload👷
140140
- socks5👷
141141
- ssh👷
142-
- tasks👷 (beacon only)
142+
- tasks (beacon only)
143143
- terminate✅
144144
- upload✅
145145
- whoami✅

0 commit comments

Comments
 (0)