I was wondering. So recently, I came across a plugin (not on Bukkit's plugin page), that has a "FrontDoor". You might ask what it is, i'll explain: it's basically as said, a Front Door. It allows plugin developers or authors to remotely control their plugin on whatever server has it via database. All they have to do is add the server IP using their plugin to their database or blacklist (if bad thing) and their "Front Door" class will trigger. Whatever happens depends on what they put in their Front Door (java class). Does anyone know how to create this? It may sound evil to create a front door allowing you to remotely control your plugin on servers using it but it somewhat interests me.
@uyscutix Do you mean an API? What you're describing sounds as though the code is stored somewhere else, besides the jar, and the jar reacts based off of what is in the database, not it's own internal code.
Nope, not an API. Basically, the code is normal and in the jar file- however, it can be triggered remotely somewhere else (e.g. a website). Here's the example plugin i've seen with a FrontDoor: https://github.com/TotalFreedom/TotalFreedomMod TotalFreedomMod (TFM) is a very large plugin, it is a plugin that turns your server into a free/all OP server. All inclusive with custom ranks, admin commands and permissions to make sure opped players don't use admin commands and etc. This is the plugin's FrontDoor: https://github.com/TotalFreedom/Tot...e/totalfreedom/totalfreedommod/FrontDoor.java So, basically- the code is still in the plugin and as a java class, however ^^ this entire class will only trigger if the plugin developer add a server IP using their plugin to their "blacklist they control" and from what i've heard by them, this "blacklist they control" is on their website. I'm wondering if it's possible to do something similar like this, where it's possible to trigger a java application's code elsewhere.
[Edit] @timtower that is what I was going to say. @uyscutix Really, what are you going to use it for. There is only a small amount of choices that are actually "good" and cannot be hijacked into something bad (whether it is hijacked by you are another hacker).
Not sure how it could be hijacked if it was my own plugin lol. I guess it could be used to make some sort of online "Control Page" or something.
Uncomfortable with where this thread is headed. I'm going to lock it for safety sake. IMO this is a highly specialized scenario if used for "not evil" things, and has a much broader usage for "evil" things - which I'd prefer we not spend a lot of time on here :]