Add autonomous webhooks and dynamic WebView discovery

This commit is contained in:
Ops Agent committed 2026-10-11 08:43:39 +02:00
1 parent ab69f287b6
commit 97f874d183
29 files changed
+3044 -1489

No files matched your search

+4 -3
View File
@@ -25,7 +25,7 @@ from .desktop import visible_ui_threads, detect_desktop_pid, TESTED_BUILD
WAKE = 0x8000 + 0x498
PROTOCOL = 0x4d415432
# SHA-256 of assets/math_probe.dll.
EMBEDDED_SHA256 = '136620d96f4745a4c41edfe1f4a9272ef25fc060ddace1c0eec1027bf252e02a'
EMBEDDED_SHA256 = 'bdcf0449d35102963c35f0f8ba985ffe3e5f83c083da5587b4978c82911c555f'
CASES = (
('(17 * 23) - 19', 372),
@@ -355,7 +355,8 @@ def run_math(pid=None, suite='math', _operation=None):
'history-read': 'oldest-local-messages-through-javascript-no-cdp',
'history-export': 'all-local-message-rows-through-javascript-no-cdp',
'send-self': 'one-text-message-to-own-account-through-javascript',
'contacts-export': 'all-local-contact-records-through-javascript'}
'contacts-export': 'all-local-contact-records-through-javascript',
'webhook': 'explicit-javascript-message-listener-management'}
report = {'passed': False, 'scope': scopes.get(suite, 'invalid-suite'),
'suite': suite, 'frida_used': False,
'startup_acknowledged': False, 'javascript_executed': False,
@@ -434,7 +435,7 @@ def run_math(pid=None, suite='math', _operation=None):
report['javascript_executed'] = True
return packet.result
if suite in ('history-export', 'send-self', 'contacts-export'):
if suite in ('history-export', 'send-self', 'contacts-export', 'webhook'):
if _operation is None:
raise ValueError('Use the export-zip command for history export')
_operation(execute, probe_id, report)