From 5b1a9aa958e340672326759102efb85fbf8b07fb Mon Sep 17 00:00:00 2001 From: loademon Date: Mon, 19 Jan 2026 11:08:22 +0300 Subject: [PATCH] Disable GPU and virtual environment checks in VM module Commented out the GPU blacklist check and temporarily disabled the virtual environment check in the VM detection module. Also updated subprocess call for HWID retrieval to use shell=True for compatibility. --- pyprotector/constants.py | 2 +- pyprotector/modules/vm.py | 38 +++++++++++++++++++------------------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/pyprotector/constants.py b/pyprotector/constants.py index 5c527a4..ae082eb 100644 --- a/pyprotector/constants.py +++ b/pyprotector/constants.py @@ -29,7 +29,7 @@ class UserInfo: PC_NAME: Final[str] = os.getenv("COMPUTERNAME") IP: Final[str] = getIPAddress() HWID: Final[str] = ( - subprocess.check_output("wmic csproduct get uuid") + subprocess.check_output("wmic csproduct get uuid", shell=True) .decode() .split("\n")[1] .strip() diff --git a/pyprotector/modules/vm.py b/pyprotector/modules/vm.py index 62b870c..d17f74f 100644 --- a/pyprotector/modules/vm.py +++ b/pyprotector/modules/vm.py @@ -177,24 +177,24 @@ def CheckLists(self) -> None: if self.exit: os._exit(1) - if UserInfo.GPU in self.GPUS: - self.logger.info(f"Blacklisted GPU: {UserInfo.GPU}") - if self.report: - self.webhook.send(f"Blacklisted GPU: `{UserInfo.GPU}`", self.name) - self.event.dispatch( - "blacklisted_gpu", - "Blacklisted GPU Detected", - self.name, - gpu=UserInfo.GPU, - ) - self.event.dispatch( - "pyprotector_detect", - "Blacklisted GPU Detected", - self.name, - gpu=UserInfo.GPU, - ) - if self.exit: - os._exit(1) + # if UserInfo.GPU in self.GPUS: + # self.logger.info(f"Blacklisted GPU: {UserInfo.GPU}") + # if self.report: + # self.webhook.send(f"Blacklisted GPU: `{UserInfo.GPU}`", self.name) + # self.event.dispatch( + # "blacklisted_gpu", + # "Blacklisted GPU Detected", + # self.name, + # gpu=UserInfo.GPU, + # ) + # self.event.dispatch( + # "pyprotector_detect", + # "Blacklisted GPU Detected", + # self.name, + # gpu=UserInfo.GPU, + # ) + # if self.exit: + # os._exit(1) def CheckVirtualEnv(self) -> None: """ @@ -358,7 +358,7 @@ def CheckProcessesAndFiles(self) -> None: def StartChecks(self) -> None: if self.report: self.logger.info("Starting VM Checks") - self.CheckVirtualEnv() + # self.CheckVirtualEnv() #temp disabled self.CheckRegistry() self.CheckMacAddress() self.CheckScreenSize()