free youtube account creator

its says that the script fails when you run it from non US computer.
and it is not running from my pc since i am non US.
any clue on that?
 
just upload it on a free host and run it from there ;)
 
Great little script here, Thanks for sharing.

Here's the source for anyone who cant be arsed downloading.

Code:
<!--

    ----------------------------------
	Quick Youtube account creater v0.1
	Alan / [email protected]
	----------------------------------
	
	Why paying $40 for a youtube accounts creator when you can use this for free?
	
	HOW IT WORKS
	You need to put it on a server that supports PHP.
	You can offer a free acount on many hosts, just do a google search
	Or you can get XAMPP and execute this page from your computer. In this case, don't forget to use a proxy 
	    or don't create too many accounts on the same day (2-3 max)
	
	Just call the page, it will first ask you for the youtube captcha. If it is blank, it means that your (proxy) connexion 
	    has failed. In this case, reload the page.
	Next step, it should display the youtube page, you should have the message about setting the language, and BELOW, the message saying
	    an email has been sent. That means it was succesful, you just need to go to your email and click on the confirmation link.

	CHANGE THE SETTINGS
	For email verification, I use a catchall. Get a domain, set the catchall to send all emails to one place.
	Just set the domain below.
	If you're using a proxy, just set it below (true or false).

	IMPORTANT NOTE
	Because Youtube is checking your country and propose you to use youtube in a different language when you're not located in the USA,
	the script fails if you're not executing it from a US-based computer.
	I might correct it in another version, but if you correct it before me, send me the correction so I can publish it on ideasbeta, thanks.
	
-->
<?php

	$catchall_domain = "myemail.com";

	$using_proxy = false;
	$proxy_settings = "127.0.0.1:8118";
	
	$pwd = "pass123word";

?>
<html>
<style>
	body{font-family:courier new; font-size:12px;}
	h1{font-size: 16px;background-color: #f5f5f5;padding: 5px;}
</style>



<?php
set_time_limit(0);


function gen_trivial_password($len = 6)
{
    $r = '';
    for($i=0; $i<$len; $i++)
        $r .= chr(rand(0, 25) + ord('a'));
    return $r;
}


	// set us up the curl.

		$chandle = curl_init();

		// c is for cookie. thats good enough for me. 
		$cookie = "$username.cookie"; 
		$cookie = str_replace('\\','/', getcwd().$cookie);

		curl_setopt ( $chandle , CURLOPT_COOKIEJAR  , $cookie );
		curl_setopt ( $chandle , CURLOPT_COOKIEFILE , $cookie );
				
		// other curl parameters that wont change.
		curl_setopt ( $chandle, CURLOPT_RETURNTRANSFER, 1 );
		curl_setopt ( $chandle, CURLOPT_FOLLOWLOCATION, 1 );
		
		if ($using_proxy) {
		 curl_setopt ( $chandle, CURLOPT_PROXY, $proxy_settings);
		}
//		 curl_setopt ( $chandle, CURLOPT_TIMEOUT, 300);



if ($_GET['step']=="2")
{
	echo "<h1> Create youtube - step 2 </h1>";

	$username = gen_trivial_password(6).rand(1000, 9999);
	$email = $username."@".$catchall_domain;
	$postcode = 10*rand(4000, 8000);
	
	//signUpEmail
	//signUpPassword1
	//signUpPassword2
	//username
	//countrySelect = US
	//birthday_mon = 1 - 12
	//birthday_day =  1 - 31
	//birthday_yr = 2008-1901
	//female = f (radio)
	//verificationResponse = captcha
	//find_me_via_email = checked
	//terms = checked
	
	
//http://www.youtube.com/signup?current_form=signupForm &next=%2Findex &signup_data=zJWKslCRsDA &email=email%40email.com
// &password1=social123 &password2=social123 &username=socialusername &country=FO &postal_code= 
// &birthday_mon=2&birthday_day=14&birthday_yr=1977 
// &gender=f &response=cesicothin &challenge=KjxdSgUljeAJBoyffFerHrcRREHgq2Y2bA7qq5FQsp5IPatDIRZGG6z_eueHZiKTAsr3g6KFQ04%3D
// &find_me_via_email=agreed &terms_agreed=on &action_signup=Sign+Up 
// &session_token=RPsdXLkE0dJjSisvCuGhFx-d_Md8MTIzMjgwMTk1OQ%3D%3D	

//$parsed_auth = $_GET['parsed_auth'];

$url = 'http://www.youtube.com/signup';//?auth='.$parsed_auth;
$referer= 'http://www.youtube.com/signup';//?auth='.$parsed_auth;
$agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)';
	
		curl_setopt ( $chandle, CURLOPT_POST, 1);
				$postfields  = "current_form=signupForm";
				$postfields .= "&next=%2Findex";
				$postfields .= "&signup_data=".$_GET['signupdata'];
				$postfields .= "&challenge=".$_GET['challenge'];				
				$postfields .= "&email=".$email;
				$postfields .= "&password1=".$pwd;
				$postfields .= "&password2=".$pwd;
				$postfields .= "&username=".$username;
				$postfields .= "&country=US";
				$postfields .= "&postal_code=".$postcode;
				$postfields .= "&birthday_mon=".rand(1,12);
				$postfields .= "&birthday_day=".rand(1,28);
				$postfields .= "&birthday_yr=".rand(1950,1990);
				$postfields .= "&gender=f";
				$postfields .= "&response=".$_GET['captcha'];
				$postfields .= "&find_me_via_email=agreed";
				$postfields .= "&terms_agreed=on";
				$postfields .= "&action_signup=Sign+Up";
				$postfields .= "&session_token=".$_GET['token'];				

				
		curl_setopt ( $chandle, CURLOPT_POSTFIELDS, $postfields);
		curl_setopt ( $chandle, CURLOPT_URL, $url);

		curl_setopt($chandle, CURLOPT_MAXREDIRS, 10);
		curl_setopt($chandle, CURLOPT_REFERER, $referer);
		curl_setopt($chandle, CURLOPT_USERAGENT, $agent);
		
		ob_flush();flush();

		$contents = curl_exec($chandle);
	
//	echo $postfields;
	
	echo $contents."<br>";
}
else
{
	echo "<h1> Create youtube - step 1 </h1>";

		curl_setopt($chandle, CURLOPT_URL, 'http://www.youtube.com/signup?next=/index');
	
		echo "Loading page<br>";
		ob_flush();flush();

		$contents = curl_exec($chandle);	

		preg_match('/img name="verificationImg" src="(.+?)"/', $contents, $match );
		$pic = $match[1];
		unset($match);
		
		preg_match('/name="signup_data" value="(.+?)"/', $contents, $match );
		$signupdata = $match[1];
		unset($match);

		preg_match('/name="challenge" value="(.+?)"/', $contents, $match );
		$challenge = $match[1];
		unset($match);

		preg_match('/gXSRF_token = \'(.+?)\'/', $contents, $match );
		$token = $match[1];
		unset($match);
		
		
		?>

	enter CAPTCHA<br>

	<img src="http://www.youtube.com<?=$pic ?>"><br>

	<form name="input" action="create.php" method="get">
	Username: 
	
	<input type="hidden" name="token" value="<?=$token ?>">
	<input type="hidden" name="signupdata" value="<?=$signupdata ?>">
	<input type="hidden" name="challenge" value="<?=$challenge ?>">
	<input type="hidden" name="step" value="2">
	<input type="text" name="captcha">
	<input type="submit" value="Submit">
	</form>

<?php 
	}
?>
 
Nice I can't use it atm but thanks I will be able to use it soon.
 
nice idea, im getting an error. my hosting is only a shared hosting account.


Code:
Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /usr/home/user/domains/domain.com/public_html/yt-c/yt-c.php on line 76
 
Back
Top