-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Urghh #3
Comments
If anyone finds it necessary, I will add an option in the virion framework to obfuscate the library class names. |
down this horrible rabbit hole we go i guess 🤦♂️ |
genisyspro is cancer |
also don't let them read this |
Yeah, also had a similar idea |
$temp_file = tempnam(sys_get_temp_dir(),'');
$class = 'return new class
{
public function getServerName(Server $server) { return $server->getName(); }
};';
file_put_contents($temp_file,$class);
$class = include_once $temp_file;
$name = $class->getServerName(Server::getInstance()); seen My Fork of SpoonDetector worst case is to ask plugin to provide server's name |
@dktapps suggested verifying the signature of the server. |
That would require us to actually sign production phars of course, and it would also mean that source-code installations would be problematic. |
I will release a fix when I get a chance. |
The most easy way it to ask the plugin to pass the server name |
Then you are forcing them to return PocketMine-MP. First of all, what's the purpose of the Server::getName() method? |
In all honesty this project is a waste of time (no offence intended). My stance is: if my code works on your server, good for you - if it doesn't, gtfo my issue tracker, close & lock. |
@DerddyDert @CortexPE I would like to clarify that SpoonDetector is not intend to stop people from using spoons. It is simply a stronger reminder that the plugin doesn't officially support using spoons. |
@SOF3 My thinking is Spoon maintainers are too vain to ever change getName to return PocketMine. If they do, I will do analysis on other changes they have made to files. |
maybe just force it on everyone? i also have asked derddy to make that bypass a "OFF" by default option like originally this thing was made to stop people using 3rd spoons flooding into the issues section which ware dedicated to pmmp, OR trying prevent trying to help someone for few good hour only to notice they are not using PMMP to begin with |
I came up with what I think is a pretty good solution for now and is hard to circumvent. I haven't tested it yet, but the basic idea is there. I am keeping everything in one class for ease of installation. See 59e46b6 |
GenisysPro/GenisysPro#821
The text was updated successfully, but these errors were encountered: