Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- function cryptPassword($password, $salt = 'xtreamcodes', $rounds = 20000)
- {
- if ($salt == '') {
- $salt = substr(bin2hex(openssl_random_pseudo_bytes(16)), 0, 16);
- }
- $hash = crypt($password, sprintf('$6$rounds=%d$%s$', $rounds, $salt));
- return $hash;
- }
- function xor_parse($data, $key)
- {
- $i = 0;
- $output = '';
- foreach (str_split($data) as $char) {
- $output .= chr(ord($char) ^ ord($key[$i++ % strlen($key)]));
- }
- return $output;
- }
- function get_api_data($apilink)
- {
- $returnData = '0';
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $apilink);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
- if (curl_exec($ch) === false) {
- return ['result' => 'error', 'data' => 'Invalid Host Url'];
- }
- $Result = curl_exec($ch);
- if (!empty($Result)) {
- $returnData = $Result;
- return $returnData;
- }
- return ['result' => 'error'];
- }
- function xss_clean($data)
- {
- $data = str_replace(['&', '<', '>'], ['&amp;', '&lt;', '&gt;'], $data);
- $data = preg_replace('/(&#*\\w+)[\\x00-\\x20]+;/u', '$1;', $data);
- $data = preg_replace('/(&#x*[0-9A-F]+);*/iu', '$1;', $data);
- $data = html_entity_decode($data, ENT_COMPAT, 'UTF-8');
- .............................................................................
- ..............................................
- .........................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement