Files
Arvanaghi-CheckPlease/Python/check_all_process_names.py
T
Brandon Arvanaghi a8e41cba84 Restructured folders
2017-08-05 09:40:40 -04:00

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)