H4T3D

Mass Tiny URL Creator [TinyURL.com] By H4T3D

Oct 26th, 2015
622
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.68 KB | None | 0 0
  1. <?php
  2.   set_time_limit(0);
  3.   error_reporting(0);
  4.  
  5. echo "<title>Mass Tiny URL Creator [TinyURL.com] By H4T3D</title>
  6. <link href='https://fonts.googleapis.com/css?family=Orbitron' rel='stylesheet' type='text/css'>
  7. <style type=\"text/css\">
  8.   body,b,input,a {
  9.       background-color: #f0f0f2;
  10.       margin: 0;
  11.       padding: 0;
  12.        font-family: 'Orbitron', sans-serif;
  13.    
  14.   }
  15. textarea,input {
  16.      resize:none;
  17.      color: #4099FF ;
  18.      border: 4px solid #3B5998;
  19.  
  20.  
  21. }
  22. </style>
  23. <center>
  24. <h1>Mass Tiny URL Creator [TinyURL.com] By H4T3D</h1>
  25. <form method='POST'>
  26. <textarea type='text' name='urllist' placeholder='urllist' rows='25' cols='50'>";
  27. $homepage = file_get_contents('http://pastebin.com/raw.php?i=6rSR73XZ');echo $homepage;echo "</textarea>
  28. </br>
  29. <input type='submit' name='start' value='Create Mass Short Link'>
  30. </form>
  31.  
  32. ";
  33.  
  34.      if(isset($_POST['start']))
  35.         {
  36.  
  37. function getSslPage($foo) {
  38.     $ch = curl_init();
  39.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  40.     curl_setopt($ch, CURLOPT_HEADER, 0);
  41.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  42.     curl_setopt($ch, CURLOPT_URL, "http://tinyurl.com/create.php");
  43.     curl_setopt($ch, CURLOPT_POSTFIELDS, "url=". urlencode($foo) ."&submit=Make+TinyURL%21&alias=");
  44.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  45.    
  46.     $result = curl_exec($ch);
  47.     curl_close($ch);
  48.     return $result;
  49.                 }
  50.  
  51.  
  52. $urllist = explode("\r\n", $_POST['urllist']);
  53.  
  54. foreach($urllist as $foo)
  55.                 {
  56.  
  57. $data=getSslPage($foo);
  58. $value=preg_match_all("/<div\s+class=\"indent\">(.*)<\/b>/", $data,$matches);
  59.  
  60. print_r($matches[0][0]);
  61. flush();@ob_flush();
  62.  
  63.         }
  64.  
  65.  
  66.  
  67.             }
  68.  
  69. ?>
Add Comment
Please, Sign In to add comment