Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function cryptPassword($password, $salt = 'xtreamcodes', $rounds = 20000)
  15. {
  16. if ($salt == '') {
  17. $salt = substr(bin2hex(openssl_random_pseudo_bytes(16)), 0, 16);
  18. }
  19.  
  20. $hash = crypt($password, sprintf('$6$rounds=%d$%s$', $rounds, $salt));
  21. return $hash;
  22. }
  23.  
  24. function xor_parse($data, $key)
  25. {
  26. $i = 0;
  27. $output = '';
  28.  
  29. foreach (str_split($data) as $char) {
  30. $output .= chr(ord($char) ^ ord($key[$i++ % strlen($key)]));
  31. }
  32.  
  33. return $output;
  34. }
  35.  
  36. function get_api_data($apilink)
  37. {
  38. $returnData = '0';
  39. $ch = curl_init();
  40. curl_setopt($ch, CURLOPT_URL, $apilink);
  41. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  42. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  43. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  44. curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  45.  
  46. if (curl_exec($ch) === false) {
  47. return ['result' => 'error', 'data' => 'Invalid Host Url'];
  48. }
  49.  
  50. $Result = curl_exec($ch);
  51.  
  52. if (!empty($Result)) {
  53. $returnData = $Result;
  54. return $returnData;
  55. }
  56.  
  57. return ['result' => 'error'];
  58. }
  59.  
  60. function xss_clean($data)
  61. {
  62. $data = str_replace(['&amp;', '&lt;', '&gt;'], ['&amp;amp;', '&amp;lt;', '&amp;gt;'], $data);
  63. $data = preg_replace('/(&#*\\w+)[\\x00-\\x20]+;/u', '$1;', $data);
  64. $data = preg_replace('/(&#x*[0-9A-F]+);*/iu', '$1;', $data);
  65. $data = html_entity_decode($data, ENT_COMPAT, 'UTF-8');
  66. .............................................................................
  67. ..............................................
  68. .........................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement