PEBMASQ: return None instead of empty string

This commit is contained in:
SolitudePy
2025-09-17 02:02:14 +03:00
parent 156ca005de
commit 36ce047ec0
@@ -49,7 +49,7 @@ class PebMasquerade(interfaces.plugins.PluginInterface):
Union[str, PureWindowsPath]: The executable path as a string or PureWindowsPath.
"""
if not cmdline:
return ""
return None
# Regex to extract first .exe ending string (handles quotes, paths, no quotes)
match = re.search(r'(?i)(["\']?)([^"\']*?\.exe)\1(?=\s|$)', cmdline)