HuggingMes sync [r-louissoume-hugging-hermes-hd5lyba1-005c9-jfrtk] 2026-05-12T15:25:17Z
Browse files- .local/share/tirith/last_trigger.json +35 -0
- .local/share/tirith/log.jsonl +14 -0
- .local/share/tirith/tirith-threatdb.dat +2 -2
- .local/state/tirith/sessions/.last_gc +0 -0
- .local/state/tirith/sessions/9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c.json +1 -0
- .local/state/tirith/threatdb-manifest-3fbe0bbb5a4129e5-body +1 -1
- .local/state/tirith/threatdb-manifest-3fbe0bbb5a4129e5-etag +1 -1
- .local/state/tirith/threatdb-next-check-at +1 -1
- .local/state/tirith/threatdb-spawned-at +1 -1
- channel_directory.json +1 -1
- decode.py +11 -0
- real_screenshot.png +3 -0
- screenshot.png +3 -0
- sessions/20260512_143451_39407b45.jsonl +0 -0
- sessions/session_20260512_143451_39407b45.json +0 -0
- sessions/session_20260512_152202_12b11a.json +0 -0
- sessions/sessions.json +2 -2
- skills/.usage.json +15 -0
- skills/.usage.json.lock +0 -0
- skills/mcp/windows-remote-control/SKILL.md +23 -0
- skills/mcp/windows-remote-control/scripts/decode_screenshot.py +15 -0
- state.db +2 -2
.local/share/tirith/last_trigger.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"rule_ids": [
|
| 3 |
+
"lookalike_tld",
|
| 4 |
+
"lookalike_tld"
|
| 5 |
+
],
|
| 6 |
+
"severity": "MEDIUM",
|
| 7 |
+
"command_redacted": "curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning:...",
|
| 8 |
+
"findings": [
|
| 9 |
+
{
|
| 10 |
+
"rule_id": "lookalike_tld",
|
| 11 |
+
"severity": "MEDIUM",
|
| 12 |
+
"title": "Lookalike TLD detected",
|
| 13 |
+
"description": "Domain uses '.dev' TLD which can be confused with file extensions",
|
| 14 |
+
"evidence": [
|
| 15 |
+
{
|
| 16 |
+
"type": "url",
|
| 17 |
+
"raw": "baggy-hatchery-savanna.ngrok-free.dev"
|
| 18 |
+
}
|
| 19 |
+
]
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"rule_id": "lookalike_tld",
|
| 23 |
+
"severity": "MEDIUM",
|
| 24 |
+
"title": "Lookalike TLD detected",
|
| 25 |
+
"description": "Domain uses '.dev' TLD which can be confused with file extensions",
|
| 26 |
+
"evidence": [
|
| 27 |
+
{
|
| 28 |
+
"type": "url",
|
| 29 |
+
"raw": "baggy-hatchery-savanna.ngrok-free.dev"
|
| 30 |
+
}
|
| 31 |
+
]
|
| 32 |
+
}
|
| 33 |
+
],
|
| 34 |
+
"timestamp": "2026-05-12T15:24:20.160094349+00:00"
|
| 35 |
+
}
|
.local/share/tirith/log.jsonl
CHANGED
|
@@ -1 +1,15 @@
|
|
| 1 |
{"timestamp":"2026-05-11T08:02:43.919118617+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Allow","rule_ids":[],"command_redacted":"hermes config set model.default gemini-2.0-flash-exp","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"a5e05423-9f38-4b21-b41b-38130795705b","tier_reached":1,"entry_type":"verdict","raw_action":"Allow","raw_rule_ids":[]}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
{"timestamp":"2026-05-11T08:02:43.919118617+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Allow","rule_ids":[],"command_redacted":"hermes config set model.default gemini-2.0-flash-exp","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"a5e05423-9f38-4b21-b41b-38130795705b","tier_reached":1,"entry_type":"verdict","raw_action":"Allow","raw_rule_ids":[]}
|
| 2 |
+
{"timestamp":"2026-05-12T15:14:43.736639481+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Allow","rule_ids":[],"command_redacted":"ls -la /opt/data","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"7404c2c4-c608-402b-a7e2-493c57c1d822","tier_reached":1,"entry_type":"verdict","raw_action":"Allow","raw_rule_ids":[]}
|
| 3 |
+
{"timestamp":"2026-05-12T15:15:20.666179735+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Allow","rule_ids":[],"command_redacted":"ls -d ~/*/Desktop ~/Desktop /home/hermes/Desktop 2>/dev/null || echo \"Desktop di[...redacted 18 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"700bed76-69f1-481a-85bf-524d3554ad3d","tier_reached":1,"entry_type":"verdict","raw_action":"Allow","raw_rule_ids":[]}
|
| 4 |
+
{"timestamp":"2026-05-12T15:15:24.205972112+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Allow","rule_ids":[],"command_redacted":"find / -name Desktop -type d 2>/dev/null | head -n 5","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"4ee255e0-f601-4b21-a065-5ad65caa6404","tier_reached":1,"entry_type":"verdict","raw_action":"Allow","raw_rule_ids":[]}
|
| 5 |
+
{"timestamp":"2026-05-12T15:15:31.175719125+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Allow","rule_ids":[],"command_redacted":"find /opt/data -maxdepth 2 -type d","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"1f33d03a-831c-4dda-be61-e75c803db731","tier_reached":1,"entry_type":"verdict","raw_action":"Allow","raw_rule_ids":[]}
|
| 6 |
+
{"timestamp":"2026-05-12T15:16:18.940404341+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Allow","rule_ids":[],"command_redacted":"uname -a && whoami && hostname && ip addr show","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"d645ccbc-c217-43c3-876c-87d47a8284b3","tier_reached":1,"entry_type":"verdict","raw_action":"Allow","raw_rule_ids":[]}
|
| 7 |
+
{"timestamp":"2026-05-12T15:20:18.627636798+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld"],"command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok[...redacted 45 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"96dcde39-6b1f-4985-a4b0-4077aa6e1fb8","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld"]}
|
| 8 |
+
{"timestamp":"2026-05-12T15:20:49.398172740+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Allow","rule_ids":[],"command_redacted":"ls -l screenshot.png","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"8c5ec5ee-1118-451e-af87-1597900993a1","tier_reached":1,"entry_type":"verdict","raw_action":"Allow","raw_rule_ids":[]}
|
| 9 |
+
{"timestamp":"2026-05-12T15:21:18.405760953+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Allow","rule_ids":[],"command_redacted":"file screenshot.png","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"e1ee849c-6120-4352-a214-7a32b1b072cb","tier_reached":1,"entry_type":"verdict","raw_action":"Allow","raw_rule_ids":[]}
|
| 10 |
+
{"timestamp":"2026-05-12T15:21:19.795402041+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Allow","rule_ids":[],"command_redacted":"head -c 20 screenshot.png","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"17388807-21c4-4ed3-8d4f-2e8681b519a7","tier_reached":1,"entry_type":"verdict","raw_action":"Allow","raw_rule_ids":[]}
|
| 11 |
+
{"timestamp":"2026-05-12T15:21:35.141325798+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Allow","rule_ids":[],"command_redacted":"python3 /opt/data/decode.py","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"861bf465-3839-4d95-a668-296ca45aaf9f","tier_reached":1,"entry_type":"verdict","raw_action":"Allow","raw_rule_ids":[]}
|
| 12 |
+
{"timestamp":"2026-05-12T15:23:10.786569355+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld"],"command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning:[...redacted 95 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"8657b4c1-14a7-4df9-adfc-e4273376a13c","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld"]}
|
| 13 |
+
{"timestamp":"2026-05-12T15:24:04.699611663+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld"],"command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok[...redacted 73 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"a09bcb6f-24a5-4110-bf17-793b9393211f","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld"]}
|
| 14 |
+
{"timestamp":"2026-05-12T15:24:17.533615646+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld"],"command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning:[...redacted 77 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"9afdd9a2-8941-44a6-bcb9-af473e9d4798","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld"]}
|
| 15 |
+
{"timestamp":"2026-05-12T15:24:20.154388772+00:00","session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","action":"Warn","rule_ids":["lookalike_tld","lookalike_tld"],"command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning:[...redacted 289 bytes]","bypass_requested":false,"bypass_honored":false,"interactive":false,"policy_path":null,"event_id":"4f15d5ef-f7fc-425b-b8cb-fc5f30a6c1c3","tier_reached":3,"entry_type":"verdict","raw_action":"Warn","raw_rule_ids":["lookalike_tld","lookalike_tld"]}
|
.local/share/tirith/tirith-threatdb.dat
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e390b97a6f97b326d8c4b639de4cf98e2d72e6bd991c570b089b40e9c2313b93
|
| 3 |
+
size 1745408
|
.local/state/tirith/sessions/.last_gc
ADDED
|
File without changes
|
.local/state/tirith/sessions/9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"session_id":"9b79f8d3-b0f5-45f8-b4a0-14e3c06c8a7c","session_start":"2026-05-12T15:20:18.624047190+00:00","total_warnings":6,"hidden_findings":0,"hidden_low":0,"hidden_info":0,"events":[{"timestamp":"2026-05-12T15:20:18.623918109+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok-free.dev/screenshot\" --output screensho","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:23:10.782232971+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"text\": \"cmd /c start notepa","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:24:04.697107256+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -H \"ngrok-skip-browser-warning: true\" \"https://baggy-hatchery-savanna.ngrok-free.dev/screenshot\" --output screensho","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:24:17.530845163+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"text\": \"^d\"}' https://baggy","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:24:20.150524596+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"x\": 500, \"y\": 500}' https:/","domains":["baggy-hatchery-savanna.ngrok-free.dev"]},{"timestamp":"2026-05-12T15:24:20.150524596+00:00","rule_id":"lookalike_tld","severity":"MEDIUM","title":"Lookalike TLD detected","command_redacted":"curl -X POST -H \"Content-Type: application/json\" -H \"ngrok-skip-browser-warning: true\" -d '{\"x\": 500, \"y\": 500}' https:/","domains":["baggy-hatchery-savanna.ngrok-free.dev"]}],"escalation_events":[],"hidden_events":[]}
|
.local/state/tirith/threatdb-manifest-3fbe0bbb5a4129e5-body
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"version":
|
|
|
|
| 1 |
+
{"version":25718238620,"sha256":"e390b97a6f97b326d8c4b639de4cf98e2d72e6bd991c570b089b40e9c2313b93","size":1745408,"url":"https://github.com/sheeki03/tirith/releases/download/threatdb-25718238620-1/tirith-threatdb.dat","signature":"SDKy0painooklc7oM+8VJMiap5Uz4Qkx/MQm4OtwzINmUDgPDBHOIKd1Ol7/OJnMaZ4gNpnXKZbaqIWRaPKGCQ=="}
|
.local/state/tirith/threatdb-manifest-3fbe0bbb5a4129e5-etag
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
"
|
|
|
|
| 1 |
+
"de82800c4e6f8d6a7eb3eb22bd10e2d052c30c06ca3d97cb1542f3ef8c6d86cd"
|
.local/state/tirith/threatdb-next-check-at
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
1778685283
|
.local/state/tirith/threatdb-spawned-at
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
1778598883
|
channel_directory.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"updated_at": "2026-05-12T15:
|
| 3 |
"platforms": {
|
| 4 |
"telegram": [
|
| 5 |
{
|
|
|
|
| 1 |
{
|
| 2 |
+
"updated_at": "2026-05-12T15:23:19.709065",
|
| 3 |
"platforms": {
|
| 4 |
"telegram": [
|
| 5 |
{
|
decode.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
import base64
|
| 3 |
+
import os
|
| 4 |
+
|
| 5 |
+
with open('screenshot.png', 'r') as f:
|
| 6 |
+
data = json.load(f)
|
| 7 |
+
if 'image_base64' in data:
|
| 8 |
+
with open('real_screenshot.png', 'wb') as img_file:
|
| 9 |
+
img_file.write(base64.b64decode(data['image_base64']))
|
| 10 |
+
else:
|
| 11 |
+
print("Format inattendu")
|
real_screenshot.png
ADDED
|
Git LFS Details
|
screenshot.png
ADDED
|
Git LFS Details
|
sessions/20260512_143451_39407b45.jsonl
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sessions/session_20260512_143451_39407b45.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sessions/session_20260512_152202_12b11a.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
sessions/sessions.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
"session_key": "agent:main:telegram:dm:7904792459",
|
| 4 |
"session_id": "20260512_143451_39407b45",
|
| 5 |
"created_at": "2026-05-12T14:34:51.273708",
|
| 6 |
-
"updated_at": "2026-05-12T15:
|
| 7 |
"display_name": "Louis",
|
| 8 |
"platform": "telegram",
|
| 9 |
"chat_type": "dm",
|
|
@@ -12,7 +12,7 @@
|
|
| 12 |
"cache_read_tokens": 0,
|
| 13 |
"cache_write_tokens": 0,
|
| 14 |
"total_tokens": 0,
|
| 15 |
-
"last_prompt_tokens":
|
| 16 |
"estimated_cost_usd": 0.0,
|
| 17 |
"cost_status": "unknown",
|
| 18 |
"expiry_finalized": false,
|
|
|
|
| 3 |
"session_key": "agent:main:telegram:dm:7904792459",
|
| 4 |
"session_id": "20260512_143451_39407b45",
|
| 5 |
"created_at": "2026-05-12T14:34:51.273708",
|
| 6 |
+
"updated_at": "2026-05-12T15:24:23.819150",
|
| 7 |
"display_name": "Louis",
|
| 8 |
"platform": "telegram",
|
| 9 |
"chat_type": "dm",
|
|
|
|
| 12 |
"cache_read_tokens": 0,
|
| 13 |
"cache_write_tokens": 0,
|
| 14 |
"total_tokens": 0,
|
| 15 |
+
"last_prompt_tokens": 21432,
|
| 16 |
"estimated_cost_usd": 0.0,
|
| 17 |
"cost_status": "unknown",
|
| 18 |
"expiry_finalized": false,
|
skills/.usage.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"windows-remote-control": {
|
| 3 |
+
"archived_at": null,
|
| 4 |
+
"created_at": "2026-05-12T15:22:06.806674+00:00",
|
| 5 |
+
"created_by": "agent",
|
| 6 |
+
"last_patched_at": "2026-05-12T15:22:08.517749+00:00",
|
| 7 |
+
"last_used_at": null,
|
| 8 |
+
"last_viewed_at": null,
|
| 9 |
+
"patch_count": 1,
|
| 10 |
+
"pinned": false,
|
| 11 |
+
"state": "active",
|
| 12 |
+
"use_count": 0,
|
| 13 |
+
"view_count": 0
|
| 14 |
+
}
|
| 15 |
+
}
|
skills/.usage.json.lock
ADDED
|
File without changes
|
skills/mcp/windows-remote-control/SKILL.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: windows-remote-control
|
| 3 |
+
description: "Control a Windows PC via NGrok HTTP endpoints."
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# Windows Remote Control via NGrok
|
| 7 |
+
|
| 8 |
+
This skill provides a mechanism to interact with a Windows PC via a set of HTTP/REST endpoints exposed through NGrok.
|
| 9 |
+
|
| 10 |
+
## Usage
|
| 11 |
+
- **Screenshot**: `curl -H "ngrok-skip-browser-warning: true" "<url>/screenshot" --output screenshot.png`
|
| 12 |
+
- Note: The response is a JSON object containing a `image_base64` field. Use a decoder script to extract the image.
|
| 13 |
+
- **Click**: `curl -X POST -H "Content-Type: application/json" -d '{"x": <x>, "y": <y>}' "<url>/click"`
|
| 14 |
+
- **Type**: `curl -X POST -H "Content-Type: application/json" -d '{"text": "<text>"}' "<url>/type"`
|
| 15 |
+
- **Scroll**: `curl -X POST -H "Content-Type: application/json" -d '{"amount": <amount>}' "<url>/scroll"`
|
| 16 |
+
|
| 17 |
+
## Pitfalls
|
| 18 |
+
- **Response Format**: The screenshot endpoint returns a JSON-wrapped base64 string, not a raw binary image file. Always pipe to a decoder (e.g., `scripts/decode_screenshot.py`).
|
| 19 |
+
- **Network**: Ensure the NGrok URL is active and reachable.
|
| 20 |
+
- **Security**: The `.dev` TLD may trigger security warnings in some environments; ensure user approval is obtained.
|
| 21 |
+
|
| 22 |
+
## Scripts
|
| 23 |
+
- `scripts/decode_screenshot.py`: Extracts the base64 image data from the JSON output of the `/screenshot` endpoint.
|
skills/mcp/windows-remote-control/scripts/decode_screenshot.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
import base64
|
| 3 |
+
|
| 4 |
+
def decode_screenshot(input_file, output_file):
|
| 5 |
+
with open(input_file, 'r') as f:
|
| 6 |
+
data = json.load(f)
|
| 7 |
+
if 'image_base64' in data:
|
| 8 |
+
with open(output_file, 'wb') as img_file:
|
| 9 |
+
img_file.write(base64.b64decode(data['image_base64']))
|
| 10 |
+
print(f"Successfully decoded to {output_file}")
|
| 11 |
+
else:
|
| 12 |
+
print("Error: 'image_base64' field not found in JSON.")
|
| 13 |
+
|
| 14 |
+
if __name__ == "__main__":
|
| 15 |
+
decode_screenshot('screenshot.png', 'real_screenshot.png')
|
state.db
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d93e4bb91fbdac487fddb77c486ae9f08116ba2b28dfaf0dc12fb8079a3c6f2
|
| 3 |
+
size 1200128
|