Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
Help with account creator in java
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-15-2010, 04:35 AM
itsboom's Avatar
Forum Addict
 
Join Date: May 2010
Posts: 290
Default Help with account creator in java

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();}
    }

}
Reply With Quote
  #2  
Old 07-18-2010, 04:57 AM
Newcomer
BANNED
 
Join Date: Jul 2010
Posts: 7
Default Re: Help with account creator in java

Add some
Code:
System.out.print("");
Statements to see where it might be messing up. Debugging is a useful way to learn whats wrong...
Reply With Quote
  #3  
Old 07-18-2010, 05:27 AM
Guru
 
Join Date: Jun 2005
Location: Canada
Posts: 1,844
Default Re: Help with account creator in java

Did you test to see if the original code is working? I don't think it would be, because when you submit the information on that first page when creating an account, it forwards you to another page where you have the option to enter an email, but you also have to check two check boxes.

You might have to do this with cookies, while allowing for a redirect, and then posting the new data (checkbox values in the url, and submitting that next page to finalize the registration).
__________________

Reply With Quote
  #4  
Old 07-22-2010, 06:11 AM
Blupig's Avatar
i am a guy ok?? -.-
Ex-Moderator Zombie Visual Basic Programmers
 
Join Date: Nov 2006
Location: Canada
Posts: 5,241
Send a message via MSN to Blupig Send a message via Skype™ to Blupig
MushyMuncher
Default Re: Help with account creator in java

Jagex no longer allows accounts to be created using post, instead you have to now do like Blindkilla said and manipulate cookies.
__________________
if your parts of the 70% of the site
put this in your sig
Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 08:16 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1