Giter Site home page Giter Site logo

vanishbypass's Introduction

vanish bypass

Minecraft server vanish bypass, works with most plugins <3
An example implementation would have code like:

package net.wurstclient.commands;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.ArrayList;

import net.minecraft.client.network.ServerInfo;
import net.wurstclient.DontBlock;
import net.wurstclient.command.CmdException;
import net.wurstclient.command.CmdSyntaxError;
import net.wurstclient.command.Command;
import net.wurstclient.util.ChatUtils;
import net.wurstclient.util.LastServerRememberer;
import net.wurstclient.util.MathUtils;
import net.minecraft.client.MinecraftClient;

@DontBlock
public final class AvCmd extends Command {

    public AvCmd() {
        super("av", "Detects if a <player> is vanished.",
                ".av", "Detects if a <player> is vanished.");
    }
    public static String getHTML(String urlToRead) throws Exception {
        StringBuilder result = new StringBuilder();
        URL url = new URL(urlToRead);
        HttpURLConnection conn = (HttpURLConnection) url.openConnection();
        conn.setRequestMethod("GET");
        try (BufferedReader reader = new BufferedReader(
                new InputStreamReader(conn.getInputStream()))) {
            for (String line; (line = reader.readLine()) != null; ) {
                result.append(line);
            }
        }
        return result.toString();
    }
    private String getIP()
    {
        ServerInfo lastServer = LastServerRememberer.getLastServer();
        if(lastServer == null || MC.isIntegratedServerRunning())
            return "127.0.0.1:25565";

        String ip = lastServer.address;
        if(!ip.contains(":"))
            ip += ":25565";

        return ip;
    }
    private static final MinecraftClient mc = MinecraftClient.getInstance();
    @Override
    public void call(String[] args) throws CmdException {
        String arg = args.length > 0 ? args[0] : "1"; // if no player is specified, assume the player is the player
        String response = "";
        String port = "";
        String ip = "";
        String ipp = getIP();
        try {
            ip = ipp.split(":")[0];
            port = ipp.split(":")[1];
            response = getHTML("http://localhost:8000/check/" + arg + "?ip=" + ip +"&port="+ port);
            System.out.println("[WURST][AV]: "+response);
        } catch (Exception e) {
            e.printStackTrace();
        }
        if (response == null) {
            ChatUtils.message("Could not connect to the AV server.");
            return;
        }
        if (response.equals("true")) {
            ChatUtils.message("Player " + arg + " is vanished.");
        } else if (response.equals("false")) {
            ChatUtils.message("Player " + arg + " is not vanished.");
        } else {
            ChatUtils.message("Player " + arg + " is not found.");
        }
    }
}

above is an implementation as a wurst command (not hack in the menu)

SETUP


npm init -y && npm i express axios minecraft-server-util


Options


port: the port the server listens on
default_ip: the ip the server refers to as default
default_port: the port the server refers to as default
On_Error_Assume_Player_Is_Online: assumes player is online if enabled to true (on error/timeout)

Defaults


By default the port

8000 is used

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.