Xalalau / backdoor-shield

Protect your GMod server against backdoors.
MIT License
17 stars 1 forks source link

backdoor shield blocks interactions #4

Open dotada opened 1 year ago

dotada commented 1 year ago

I couldn't interact with anything no matter how many times I pressed E, I tested multiple plugins even a few paid ones and after a bit of trial and error I ended up just removing backdoor shield out of the addons folder and suddenly every interaction worked. I tried whitelisting the paid plugins from both the file scanner and live protection but that didn't fix them.

Xalalau commented 1 year ago

Hey, I'm aware you sent this issue some days ago, but I still didn't get the time to take a look at it.

Overall, you shouldn't be using Shield with paid addons. While some DRMs may work with no problems, there are others like the one in VCMod that I wasn't able to make compatible. This means that whitelisting is not enouth because these paid addons detect mine and react to it like it's some kind of virus trying to steal their code.

But since I'm still busy, if you want to find the bug yourself you can try making some changes to liveprotection.lua. Just comment out the contents of "detours" and "stack" tables and restart the server. If the E key starts working again, turn off the server, enable some lines back and try again. At some point you should find the protection that's creating the conflict, and you can keep it disabled. Don't forget to warn me about which line is the bad one and to copy it here :).

Thank you for using my code.

dotada commented 1 year ago

Hey, I'm aware you sent this issue some days ago, but I still didn't get the time to take a look at it.

Overall, you shouldn't be using Shield with paid addons. While some DRMs may work with no problems, there are others like the one in VCMod that I wasn't able to make compatible. This means that whitelisting is not enouth because these paid addons detect mine and react to it like it's some kind of virus trying to steal their code.

But since I'm still busy, if you want to find the bug yourself you can try making some changes to liveprotection.lua. Just comment out the contents of "detours" and "stack" tables and restart the server. If the E key starts working again, turn off the server, enable some lines back and try again. At some point you should find the protection that's creating the conflict, and you can keep it disabled. Don't forget to warn me about which line is the bad one and to copy it here :).

Thank you for using my code.

Hello and sorry for the late response but after trying to brute force the issue I found that the problem is in the detours table or specifically the include entry in the detours table. Not sure why but that's what's causing the issue so I commented it out to double check and it works!

Xalalau commented 1 year ago

Great. I'll keep this issue open to remind me to fix this detour in the future.