Hi, I was wondering if there was any source out there for a java account creator bot, or any help on why my code isnt work :P This code was taken from thebotnet.net, by Jesus in .net, while I just took the key portions and converted it to java
Code:
import java.net.*;
import java.util.*;
import java.io.*;
import javax.net.ssl.*;
/**
*
* @author Mary
*/
public class Main {
final static String BASEURL ="https://secure.runescape.com/m=create/index.ws";
static String username = "te2s4t1",pass = "bookiea";
static String use = "address1=&address2=&agree_privacy=on&agree_terms=on&java=1.6.0&username=" +
username +
"&password1=" +
pass+
"&password2="+
pass+
"&day=1&month=0&year=1990&country=225";
public static void main(String[] args) {
try{
URL url = new URL(BASEURL);
HttpsURLConnection con = (HttpsURLConnection)url.openConnection();
con.addRequestProperty("User-Agent", "Chrome");
con.setDoOutput(true);
con.setRequestMethod("POST");
PrintWriter w = new PrintWriter(con.getOutputStream());
String t;
byte[] ar = use.getBytes();
OutputStream s = con.getOutputStream();
s.write(ar);
s.flush();
System.out.println(con.getResponseMessage());
BufferedReader r = new BufferedReader(new InputStreamReader(con.getInputStream()));
//w.print(ar);
BufferedReader re = new BufferedReader(new InputStreamReader(con.getInputStream()));
while((t=r.readLine())!=null)
if(t.contains("creating")||t.contains("created"))
System.out.println(t);
while((t=re.readLine())!=null)
System.out.println(t);
}catch(Exception e){e.printStackTrace();}
}
}