Advertisement
H4T3D

Twitter Search User Directory

Sep 13th, 2015
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.46 KB | None | 0 0
  1. <?php
  2. ##########################
  3. #Demo : http://openfbdns.webuda.com//twitter-search-dirct.php
  4. ##########################
  5. error_reporting(0);
  6. ?><html>
  7. <link href='https://fonts.googleapis.com/css?family=Eater' rel='stylesheet' type='text/css'>
  8. <style>
  9. html, body {
  10.        background-color:#FFFFFF;
  11.        font-family:monospace;
  12.        height: 100%;
  13.        text-decoration:  none;
  14.   background: url(http://cdn.twitrcovers.com/wp-content/uploads/2013/03/Chicago-night-lights-l.jpg) no-repeat center center fixed;
  15.   -webkit-background-size: cover;
  16.   -moz-background-size: cover;
  17.   -o-background-size: cover;
  18.   background-size: cover;
  19.  font-family: Ampersand, Georgia, serif;
  20. }
  21. h1,h3{
  22. font-family: 'Eater', cursive;
  23. color:red;
  24. }
  25.  
  26.  
  27. textarea,input {
  28.        resize:none;
  29.       // color: #4099FF ;
  30.        border: 4px solid #3B5998;
  31.  
  32. font-family: Ampersand, Georgia, serif;
  33. }
  34. input {
  35.        color: ##33CCFF;
  36.        border:1px dotted #33CCFF;
  37.  
  38. }
  39. table{
  40.     color: #FFFFFF;
  41.     border: 4px solid #3B5998;
  42.  
  43.  
  44. }
  45. th,tr,td{
  46.     border: 4px solid #3B5998;
  47. }
  48. </style>
  49.  
  50. <br></br>
  51. <center>
  52. <h1>Twitter Search User Directory<img src='http://www.anthonyjastrow.com/graphics/Twitter.png' height="100" width="100"></h1>
  53. <form action="" method="POST">
  54. <h3>UserNames</h3> <br></br><textarea name="key" style="margin: 0px; height: 479px; width: 263px;" ><?php echo"hello\r\nadmin\r\nnotadmin\r\nverwalter\r\nanyone\r\nboss\r\nnew\r\napache\r\nbin\r\nmysql\r\ninfo\r\nubnt\r\njenkins\r\nbash\r\nmp3\r\napp\r\naditza\r\nadmin1\r\nnobody\r\noperator\r\navouni\r\nberila\neggbreaker\r\nluis\r\nmsr\r\nnetwork\r\nnews\r\nnmrsu\r\nnologin\r\nftpuser\r\nftptest\r\nwebmail\r\nsysadmin\r\nteamspeak\r\nmysqladmin\r\nvmware\r\nbaltasar"; ?></textarea>
  55. <br></br>
  56. <input type="submit" value="START">
  57. </form>
  58. </center>
  59. <?php
  60. set_time_limit(0);
  61.  
  62. if(isset($_POST['key']))
  63. {
  64.  
  65. function getSslPage($url,$sckey) {
  66.     $ch = curl_init();
  67.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  68.     curl_setopt($ch, CURLOPT_HEADER, false);
  69.     curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  70.     curl_setopt($ch, CURLOPT_URL, $url);
  71.     curl_setopt($ch, CURLOPT_REFERER, $url);
  72.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  73.     $result = curl_exec($ch);
  74.  
  75.  
  76. $output = json_decode($result);
  77.  
  78.  
  79. print"<tr><td>".$output->{'msg'}."</td>";
  80. print"<td>".$output->{'desc'}."</td>";
  81. echo"<td><a href=\"https://twitter.com/$sckey\" class=\"twitter-follow-button\" data-show-count=\"true\" data-size=\"large\" data-dnt=\"true\">Follow @$sckey</a>
  82. <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></td></tr>";
  83.  
  84.     curl_close($ch);
  85.  
  86.  
  87. }
  88.  
  89.  
  90. $key = explode("\n", $_POST["key"]);
  91. echo"<center><table style=\"width:70%\" border=\"1\" ;>
  92. <tr>
  93. <th>Status</th>
  94. <th>Description</th>
  95. <th>Follow</th>
  96. </tr>";
  97.  
  98. echo"<tr>";
  99. foreach($key as $sckey) {
  100.  
  101.         $sckey = @trim($sckey);
  102.  
  103. $url="https://twitter.com/users/username_available?context=signup&custom=true&email=&full_name=&suggest=1&suggest_on_username=true&username=$sckey";
  104.  
  105. echo getSslPage($url,$sckey);
  106.  
  107. flush();@ob_flush();
  108.  
  109.                               }
  110. echo"</tr>";
  111. echo"</table></center>";
  112.  
  113.  
  114.  
  115. } // end of button click
  116.  
  117.  
  118.  
  119.  
  120. ?>
  121. <center><h3>Coded By H4T3D</h3></center>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement