mirror of
https://github.com/Arvanaghi/CheckPlease
synced 2026-06-08 10:25:16 +00:00
26 lines
980 B
Python
26 lines
980 B
Python
#
|
|
# Checks all loaded process names, Python
|
|
# Module written by Brandon Arvanaghi
|
|
# Website: arvanaghi.com
|
|
# Twitter: @arvanaghi
|
|
#
|
|
|
|
import win32pdh
|
|
|
|
EvidenceOfSandbox = []
|
|
sandboxProcesses = "vmsrvc", "tcpview", "wireshark", "visual basic", "fiddler", "vmware", "vbox", "process explorer", "autoit", "vboxtray", "vmtools", "vmrawdsk", "vmusbmouse", "vmvss", "vmscsi", "vmxnet", "vmx_svga", "vmmemctl", "df5serv", "vboxservice", "vmhgfs"
|
|
|
|
_, runningProcesses = win32pdh.EnumObjectItems(None,None,'process', win32pdh.PERF_DETAIL_WIZARD)
|
|
|
|
for process in runningProcesses:
|
|
for sandboxProcess in sandboxProcesses:
|
|
if sandboxProcess in str(process):
|
|
if process not in EvidenceOfSandbox:
|
|
EvidenceOfSandbox.append(process)
|
|
break
|
|
|
|
if not EvidenceOfSandbox:
|
|
print("No sandbox-indicative process name was found running on the system. Proceed!")
|
|
else:
|
|
print("The following running processes suggest we are running in a sandbox. Do not proceed.")
|
|
print(EvidenceOfSandbox) |