• Log in or sign up for an account here: https://www.sythe.org/login

[PHP] Automated RuneScape account generator (35000 accounts/year)

Status
Not open for further replies.

moederkoek

Member
Joined
Jun 29, 2007
Sythe Gold
0
Messages
49
Had nothing to do so I've made an Automated RuneScape account generator in php, even though I havn't played RS for 2 years

How this works:

There's a .txt file with keywords.
For example you have the keyword "PK"
The script asks the RuneScape database which accounts are available.
It returns "Hex Pk Hope" and creates that account.
The username, password and more stuff is saved in a mysql database.

Because jagex only allows you to make an account each 15 minutes, we'll have to set a cron job to 15 minutes. The script should then create about 35000 accounts/year.

I made this script because I wanted to build an automated character name-selling shop but as I already got a real-life global (lifestyle furniture) company's so dont have the time for some crappy one

--note: I must admit that the code is a bit ugly--
I've removed the script as attachment to prevent ppls abusing and hidden a url

PHP:
<?php
//stuff
$dbhost = 'localhost'; //database host, usually localhost
$dbuser = 'username'; //database username
$dbpass = 'userpass'; //database password
$dbname = 'database'; // database name
$search = "search.txt"; //file with keywords
//end stuff

function randomsearch($path){
$words=file($path);
shuffle($words);
return $words[0];
}
function getRSpage($page){
	if (!function_exists('curl_init')){
		return file_get_contents($page);
	}
	$curl = curl_init($page);
	curl_setopt($curl, CURLOPT_HEADER, false);
	curl_setopt($curl, CURLOPT_VERBOSE, false);
	curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($curl, CURLOPT_USERAGENT, false);
	$output = curl_exec($curl);
	if (curl_errno($curl)){
		trigger_error('CURL error: "' . curl_error($curl) . '"', E_USER_WARNING);
		$output = false;
	}
	curl_close($curl);
	return $output;
}
function getRSvalue($page){
	$value = getRSpage($page);
	$value = explode(",", $value);
	$value = str_replace(" ","_",$value[1]);
return $value;
}
function cpass() {
    $chars = "abcdefghijkmnopqrstuvwxyz0123456789";
    srand((double)microtime()*1000000);
    $i = 0;
    $pass = '' ;
    while ($i < 8) {
        $num = rand() % 33;
        $tmp = substr($chars, $num, 1);
        $pass = $pass . $tmp;
        $i++;
    }
    return $pass;
}
//Create values
$pass = cpass();
$asearch = randomsearch($search);
$name = getRSvalue("<hidden>");
$day = rand(1, 28);
$month = rand(1, 11);
$year = rand(1985, 1994);
$country = rand(100, 161);

$exec = getRSpage("<hidden>");
//MYSQL CONNECTING
$connect = mysql_connect("$dbhost", "$dbuser", "$dbpass")
or die ("Could not connect to server :" . mysql_error());
$db = mysql_select_db("$dbname", $connect)
or die ("Could not select db :" . mysql_error());

//CREATE MYSQL TABLE IF NOT EXISTS
$createdb = mysql_query("CREATE TABLE IF NOT EXISTS `account` (
  `account` text NOT NULL,
  `drowssap` varchar(20) NOT NULL,
  `day` tinyint(2) NOT NULL,
  `year` text NOT NULL,
  `month` tinyint(2) NOT NULL,
  `country` text NOT NULL,
  `status` tinyint(1) NOT NULL default '0',
  `timecreated` timestamp NOT NULL default CURRENT_TIMESTAMP,
  KEY `status` (`status`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1");

//INSERT VARS IN DB
$sql = mysql_query("INSERT INTO `".$dbname."`.`account` (`account`, `drowssap`, `day`, `year`, `month`, `country`, `status`) VALUES ('".$name."', '".$pass."', '".$day."', '".$year."', '".$month."', '".$country."', 'NULL')") or die ("Could not insert new data :" . mysql_error());
?>

screen of a view created accounts:
data from left to right:
<username><password><birthday><birthyear><birthmonth><countryid><status><date&time created>
15x5mc3.jpg
 
already am....no rly...
and its easy to make so I don't think anyone would buy
plus i dont want jagex legal ppls after meh
 
I will be sure to try this on my forums which I am currently working on. Thanks for the program. Would rep if I could.
 
don't have time for a good tut, but here's a screeny from mine (in cpanel -.-):
20aca55.png

it basicly is just "php /<path to file you want to run>"
and then set the timer
 
Why don't you just use cURL for proxies and allow users to upload a proxy list to avoid that 15 minute wait? I'm sure you could do it, and it would be a nice little function to the script.

Anyway, since it goes to the site over and over to create new accounts, I'm guessing it's pretty slow, right?
 
I keep getting

Parse error: parse error, unexpected '=' in /home/www/****.100webspace.net/Account Creator.php on line 11
 
For us to help, you'll need to post a snippet of what your code looks like around line 11.
 
How do you make this works? Copy and paste into a notepad file?

I have no idea lol.
 
im counfused what do i add and what hosting are you using and how do i add it?
 
Wow idiots have taken over the web design forum YEAAAAAA!!!!!! In order for this to work you have to have a web host that supports php and mysql you have to have a site. Most importantly you need google.com as I'm not typing up everything you need to do step by step.
 
Status
Not open for further replies.
duelarena.gg
Back
Top