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()