h4-debug 0.2.1__tar.gz → 0.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {h4_debug-0.2.1 → h4_debug-0.2.2}/PKG-INFO +1 -1
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug/win_debugger.py +8 -1
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug.egg-info/PKG-INFO +1 -1
- {h4_debug-0.2.1 → h4_debug-0.2.2}/pyproject.toml +1 -1
- {h4_debug-0.2.1 → h4_debug-0.2.2}/README.md +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug/__init__.py +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug/cli.py +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug/handlers.py +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug/interceptor.py +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug/node_interceptor.js +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug/server.py +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug/static/dashboard.css +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug/static/dashboard.html +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug/static/dashboard.js +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug.egg-info/SOURCES.txt +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug.egg-info/dependency_links.txt +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug.egg-info/entry_points.txt +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug.egg-info/requires.txt +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/h4_debug.egg-info/top_level.txt +0 -0
- {h4_debug-0.2.1 → h4_debug-0.2.2}/setup.cfg +0 -0
|
@@ -228,7 +228,14 @@ def debug_process(command, client):
|
|
|
228
228
|
if not kernel32.CreateProcessW(
|
|
229
229
|
None, ctypes.c_wchar_p(cmd_str), None, None, True, # bInheritHandles=True
|
|
230
230
|
creation_flags, None, None, ctypes.byref(si), ctypes.byref(pi)):
|
|
231
|
-
|
|
231
|
+
err = ctypes.GetLastError()
|
|
232
|
+
err_msg = f"Failed to CreateProcess: {err}"
|
|
233
|
+
if err == 5:
|
|
234
|
+
err_msg += " (Access Denied). The executable may require Administrator privileges, or it may be blocked by Windows Defender/DRM. Try running h4-debug from an Administrator terminal."
|
|
235
|
+
elif err == 740:
|
|
236
|
+
err_msg += " (Elevation Required). The executable requires Administrator privileges. Please run h4-debug from an Administrator terminal."
|
|
237
|
+
client.send("System", "error", {"text": err_msg})
|
|
238
|
+
print(f"[h4-debug] {err_msg}")
|
|
232
239
|
if hWritePipe:
|
|
233
240
|
kernel32.CloseHandle(hReadPipe)
|
|
234
241
|
kernel32.CloseHandle(hWritePipe)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|