11th April 2015, 04:52 PM
Created a little script which allows me to create an username that I desire, I don't take responsibility for your actions.
This vulnerability/carelessness allows people to create usernames with bad words.
The code tag doesn't work properly for me
This vulnerability/carelessness allows people to create usernames with bad words.
The code tag doesn't work properly for me
Quote:
<?php
/*
* A quick PHP script which allows you create accounts with out the bad word filter
* use it responsibily.
*
* Created by TimeLock.
* 11/04/2015
*
*/
class OldCP_Create
{
public function __construct($username, $password)
{
$this->username = $username;
$this->password = $password;
}
public function createAccount()
{
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, 'http://play.oldcp.biz/join/php/regServ.php');
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 OPR/26.0.1656.60");
$createArray = array(
"name" => $this->username,
"password" => $this->password,
"color" => rand(1, 13)
);
curl_setopt($curl, CURLOPT_POSTFIELDS, $createArray);
$response = curl_exec($curl);
$this->parseResponse($response);
}
private function parseResponse($responseData)
{
$responseSplit = explode("&", $responseData)[0];
$responseType = explode("=", $responseSplit)[0];
if($responseType == "error")
{
$responseError = explode("=", $responseSplit)[1];
echo "[Error]: " . str_replace("Username", $this->username, $responseError) . "\n";
}
if($responseType == "name")
{
echo "[Success]: Successfully created the account!\n";
}
}
}
$create = new OldCP_Create("Username", "Password");
$create->createAccount();
?>
/*
* A quick PHP script which allows you create accounts with out the bad word filter
* use it responsibily.
*
* Created by TimeLock.
* 11/04/2015
*
*/
class OldCP_Create
{
public function __construct($username, $password)
{
$this->username = $username;
$this->password = $password;
}
public function createAccount()
{
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, 'http://play.oldcp.biz/join/php/regServ.php');
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 OPR/26.0.1656.60");
$createArray = array(
"name" => $this->username,
"password" => $this->password,
"color" => rand(1, 13)
);
curl_setopt($curl, CURLOPT_POSTFIELDS, $createArray);
$response = curl_exec($curl);
$this->parseResponse($response);
}
private function parseResponse($responseData)
{
$responseSplit = explode("&", $responseData)[0];
$responseType = explode("=", $responseSplit)[0];
if($responseType == "error")
{
$responseError = explode("=", $responseSplit)[1];
echo "[Error]: " . str_replace("Username", $this->username, $responseError) . "\n";
}
if($responseType == "name")
{
echo "[Success]: Successfully created the account!\n";
}
}
}
$create = new OldCP_Create("Username", "Password");
$create->createAccount();
?>
Rookie
8 posts
7
Seen 19th May 2015
11th April 2015, 06:25 PM
Is this helpful?
<?php
/*
* A quick PHP script which allows you create accounts with out the bad word filter
* use it responsibily.
*
* Created by TimeLock.
* 11/04/2015
*
*/
class OldCP_Create
{
public function __construct($username, $password)
{
$this->username = $username;
$this->password = $password;
}
public function createAccount()
{
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, 'http://play.oldcp.biz/join/php/regServ.php');
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 OPR/26.0.1656.60");
$createArray = array(
"name" => $this->username,
"password" => $this->password,
"color" => rand(1, 13)
);
curl_setopt($curl, CURLOPT_POSTFIELDS, $createArray);
$response = curl_exec($curl);
$this->parseResponse($response);
}
private function parseResponse($responseData)
{
$responseSplit = explode("&", $responseData)[0];
$responseType = explode("=", $responseSplit)[0];
if($responseType == "error")
{
$responseError = explode("=", $responseSplit)[1];
echo "[Error]: " . str_replace("Username", $this->username, $responseError) . "\n";
}
if($responseType == "name")
{
echo "[Success]: Successfully created the account!\n";
}
}
}
$create = new OldCP_Create("Username", "Password");
$create->createAccount();
?>
/*
* A quick PHP script which allows you create accounts with out the bad word filter
* use it responsibily.
*
* Created by TimeLock.
* 11/04/2015
*
*/
class OldCP_Create
{
public function __construct($username, $password)
{
$this->username = $username;
$this->password = $password;
}
public function createAccount()
{
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, 'http://play.oldcp.biz/join/php/regServ.php');
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 OPR/26.0.1656.60");
$createArray = array(
"name" => $this->username,
"password" => $this->password,
"color" => rand(1, 13)
);
curl_setopt($curl, CURLOPT_POSTFIELDS, $createArray);
$response = curl_exec($curl);
$this->parseResponse($response);
}
private function parseResponse($responseData)
{
$responseSplit = explode("&", $responseData)[0];
$responseType = explode("=", $responseSplit)[0];
if($responseType == "error")
{
$responseError = explode("=", $responseSplit)[1];
echo "[Error]: " . str_replace("Username", $this->username, $responseError) . "\n";
}
if($responseType == "name")
{
echo "[Success]: Successfully created the account!\n";
}
}
}
$create = new OldCP_Create("Username", "Password");
$create->createAccount();
?>
hiss
Member
1,414 posts
1,324
Seen 10th February 2022
12th April 2015, 08:11 AM
jdfr03 wrote on 11th April 2015 06:25 PM:
Is this helpful?
username = $username;
$this->password = $password;
}
public function createAccount()
{
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, 'http://play.oldcp.biz/join/php/regServ.php');
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 OPR/26.0.1656.60");
$createArray = array(
"name" => $this->username,
"password" => $this->password,
"color" => rand(1, 13)
);
curl_setopt($curl, CURLOPT_POSTFIELDS, $createArray);
$response = curl_exec($curl);
$this->parseResponse($response);
}
private function parseResponse($responseData)
{
$responseSplit = explode("&", $responseData)[0];
$responseType = explode("=", $responseSplit)[0];
if($responseType == "error")
{
$responseError = explode("=", $responseSplit)[1];
echo "[Error]: " . str_replace("Username", $this->username, $responseError) . "\n";
}
if($responseType == "name")
{
echo "[Success]: Successfully created the account!\n";
}
}
}
$create = new OldCP_Create("Username", "Password");
$create->createAccount();
?>
username = $username;
$this->password = $password;
}
public function createAccount()
{
$curl = curl_init();
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_URL, 'http://play.oldcp.biz/join/php/regServ.php');
curl_setopt($curl, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 OPR/26.0.1656.60");
$createArray = array(
"name" => $this->username,
"password" => $this->password,
"color" => rand(1, 13)
);
curl_setopt($curl, CURLOPT_POSTFIELDS, $createArray);
$response = curl_exec($curl);
$this->parseResponse($response);
}
private function parseResponse($responseData)
{
$responseSplit = explode("&", $responseData)[0];
$responseType = explode("=", $responseSplit)[0];
if($responseType == "error")
{
$responseError = explode("=", $responseSplit)[1];
echo "[Error]: " . str_replace("Username", $this->username, $responseError) . "\n";
}
if($responseType == "name")
{
echo "[Success]: Successfully created the account!\n";
}
}
}
$create = new OldCP_Create("Username", "Password");
$create->createAccount();
?>
No it's snips off the beginning part of code :l