Advertisement
Guest User

Untitled

a guest
Sep 21st, 2016
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.05 KB | None | 0 0
  1. //made by Cyanide 2015
  2. //get requests
  3. $key = $_GET['apikey'];
  4. $user = $_GET['skype'];
  5. $email = $_GET['email'];
  6. $dblookup = $_GET['skypedb'];
  7. $ip = $_GET['ip'];
  8. //url shit
  9. $host = 'http://skypegrab.net/'; //base url
  10. $api = 'api.php'; //script
  11. $privatekey = 'YOUR SKYPEGRAB API KEY HERE!'; //need this!!!
  12. $url = $host . $api; //construct url
  13. //authed users and info
  14. $authed = array(
  15. "username" => array("Cyanide", "Zeak", "FREE"), //authed users name
  16. "apikey" => array("cyanideisawesome", "cyanideisbae", "freeshit") //authed users apikey (custom?)
  17. );
  18. //blacklisted users will not be resolved
  19. $blacklist = array(
  20. "ip" => array("127.0.0.1", "IP HERE"), //users ip
  21. "user" => array("live:iphreak2g", "USER HERE"), //users skype name
  22. "email" => array("admin@skids.lol", "EMAIL HERE") //users email
  23. );
  24. $continue = true; //declare this to use later
  25. //start
  26. if(isset($key)){ //check for apikey
  27. foreach($authed["apikey"] as $keys => $value){ //check each value
  28. $if($key == $value){ //if apikey is real..
  29. $continue = true; //we contine
  30. }else{ //if not
  31. $continue = false; //we stop
  32. }
  33. }
  34. if($continue == true){ //api key was legit, so go on
  35. if(isset($user)){ //if user is trying to do skype2ip
  36. foreach($blacklist["user"] as $keys => $value){ //check if blacklisted
  37. if($user == $value){ //if so...
  38. $return = 'failed to resolve user!'; //set our return
  39. $continue = false; //we stop
  40. }
  41. }
  42. unset($key, $value); //destroy variables
  43. if($continue == true){ //if not blacklisted
  44. $return = file_get_contents($url . '?key=' . $privatekey . '&username=' . $user); //we resolve and set our return
  45. }
  46. echo $return; //print our return
  47. }elseif(isset($ip)){ //if user is trying to do ip2skype
  48. foreach($blacklist["user"] as $keys => $value){ //check if blacklisted
  49. if($ip == $value){ //if blacklisted...
  50. $return = 'failed to resolve user!'; //set our return
  51. $continue = false; //we stop
  52. }
  53. }
  54. unset($key, $value); //destroy variables
  55. if($continue == true){ //if not blacklisted
  56. $return = file_get_contents($url . '?key=' . $privatekey . '&ip2skype=1&ip=' . $ip); //we resolve and set our return
  57. }
  58. echo $return; //print out our return value
  59. }elseif(isset($dblookup)){ //if user is trying to do old ip look up
  60. foreach($blacklist["user"] as $keys => $value){ //we make sure user is not blacklisted
  61. if($dblookup == $value){ //if they are...
  62. $return = 'failed to resolve user!'; //we set our retunrn
  63. $continue = false; //we stop
  64. }
  65. }
  66. unset($key, $value); //destroy variables
  67. if($continue == true){ //if the user is not blacklisted
  68. $return = file_get_contents($url . '?key=' . $privatekey . '&oldentries=1&username=' . $dblookup); //we resolve and set our return
  69. }
  70. echo $return; //and we print our return value
  71. }elseif(isset($email)){ //if the user is trying to do email to skype
  72. foreach($blacklist["user"] as $keys => $value){ //we make sue user is not blacklisted
  73. if($dblookup == $value){ //if they are...
  74. $return = 'failed to resolve user!'; //we set our return
  75. $continue = false; // and we stop
  76. }
  77. }
  78. unset($key, $value); //destroy variables
  79. if($continue == true){ //if the user is not blacklisted
  80. $return = file_get_contents($url . '?key=' . $privatekey . '&email2skype=1&email=' . $email); // we resolve them and set our return
  81. }
  82. echo $return; //then we print out our return
  83. }else{ //if the user is not doing any resolving then we print off the default message
  84. foreach($authed["apikey"] as $keys => $value){ //check apikey once more
  85. $if($key == $value){ //if apikey is authed
  86. echo 'Welcome ' . $authed["username"][$key] . '!'; //we get their username with the key index
  87. }else{ //if not
  88. echo 'Not Authed!'; //we tell them to fuckoff
  89. }
  90. }
  91. unset($key, $value); //destroy variables
  92. }
  93. }else{ //if not authed..
  94. echo 'invalid api key!'; //tell them to fak off
  95. }
  96. }else{ //if they just load the page
  97. echo 'You need an API Key!'; //we tell them they are doing it wrong
  98. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement