OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
sendy
/
includes
/
helpers
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
11/18/2021 10:11:21 AM
rwxr-xr-x
📄
EmailAddressValidator.php
7.41 KB
11/18/2021 09:43:33 AM
rw-r--r--
📄
PHPMailerAutoload.php
1.81 KB
11/18/2021 09:43:33 AM
rw-r--r--
📄
appearance.php
413 bytes
11/18/2021 09:43:33 AM
rw-r--r--
📄
class.amazonses.php
18.25 KB
11/18/2021 09:43:33 AM
rwxr-xr-x
📄
class.phpmailer.php
148.59 KB
11/18/2021 09:43:33 AM
rw-r--r--
📄
class.smtp.php
41.07 KB
11/18/2021 09:43:33 AM
rw-r--r--
📁
geo
-
11/18/2021 09:41:49 AM
rwxr-xr-x
📁
gettext
-
11/18/2021 09:43:22 AM
rwxr-xr-x
📁
integrations
-
11/18/2021 09:43:10 AM
rwxr-xr-x
📄
locale.php
439 bytes
11/18/2021 09:43:33 AM
rw-r--r--
📄
parsecsv.php
20.85 KB
11/18/2021 09:43:33 AM
rw-r--r--
📄
personalization.tags.php
3.08 KB
11/18/2021 09:43:33 AM
rw-r--r--
📁
random_compat
-
11/18/2021 09:46:08 AM
rwxr-xr-x
📄
ses-quota.php
5.43 KB
11/18/2021 09:43:33 AM
rw-r--r--
📄
ses.php
30.78 KB
11/18/2021 09:43:33 AM
rw-r--r--
📄
short.php
3.17 KB
11/18/2021 09:43:33 AM
rw-r--r--
📄
sns.php
19.19 KB
11/18/2021 09:43:33 AM
rw-r--r--
📄
subscription.php
9.41 KB
11/18/2021 09:43:33 AM
rw-r--r--
📁
two-factor
-
11/18/2021 09:43:34 AM
rwxr-xr-x
Editing: short.php
Close
<?php //Get API key $q_api = 'SELECT api_key FROM login ORDER BY id ASC LIMIT 1'; $r_api = mysqli_query($mysqli, $q_api); if ($r_api) while($row = mysqli_fetch_array($r_api)) define('API_KEY', $row['api_key']); //Encryption method $encryptionMethod = "AES-256-CBC"; //Encrypt a value function encrypt_val($val) { global $encryptionMethod; if(version_compare(PHP_VERSION, '5.3.0') >= 0 && function_exists('openssl_encrypt')) //openssl_encrypt requires at least 5.3.0 { $encrypted = version_compare(PHP_VERSION, '5.3.3') >= 0 ? openssl_encrypt($val, $encryptionMethod, API_KEY, 0, '3j9hwG7uj8uvpRAT') : openssl_encrypt($val, $encryptionMethod, API_KEY, 0); if(!$encrypted) { $error = 'Unable to encrypt string with openssl_encrypt()'; error_log("[$error]".': in '.__FILE__.' on line '.__LINE__); echo $error; exit; } $encrypted = str_replace('/', '892', $encrypted); $encrypted = str_replace('+', '763', $encrypted); $encrypted = str_replace('=', '', $encrypted); return $encrypted; } else { $error = 'Unable to use openssl_encrypt() because PHP version is lower than 5.3 and openssl_encrypt() does not exist'; error_log("[$error]".': in '.__FILE__.' on line '.__LINE__); echo $error; exit; } } //Decrypt a string function decrypt_string($val) { global $encryptionMethod; if(version_compare(PHP_VERSION, '5.3.0') >= 0 && function_exists('openssl_decrypt')) //openssl_decrypt requires at least 5.3.0 { $decrypted = str_replace('892', '/', $val); $decrypted = str_replace('763', '+', $decrypted); $decrypted = version_compare(PHP_VERSION, '5.3.3') >= 0 ? openssl_decrypt($decrypted, $encryptionMethod, API_KEY, 0, '3j9hwG7uj8uvpRAT') : openssl_decrypt($decrypted, $encryptionMethod, API_KEY, 0); if(!$decrypted) { if(!empty($decrypted)) { $error = 'Unable to decrypt string with openssl_decrypt()'; error_log("[$error]".': in '.__FILE__.' on line '.__LINE__); echo $error; exit; } } return $decrypted; } else { $error = 'Unable to use openssl_decrypt() because PHP version is lower than 5.3 and openssl_decrypt() does not exist'; error_log("[$error]".': in '.__FILE__.' on line '.__LINE__); echo $error; exit; } } //Decrypt an integer function decrypt_int($in) { global $encryptionMethod; if(version_compare(PHP_VERSION, '5.3.0') >= 0 && function_exists('openssl_decrypt')) //openssl_decrypt requires at least 5.3.0 { $decrypted = str_replace('892', '/', $in); $decrypted = str_replace('763', '+', $decrypted); $decrypted = version_compare(PHP_VERSION, '5.3.3') >= 0 ? openssl_decrypt($decrypted, $encryptionMethod, API_KEY, 0, '3j9hwG7uj8uvpRAT') : openssl_decrypt($decrypted, $encryptionMethod, API_KEY, 0); if($decrypted === false || !is_numeric($decrypted)) { if(!empty($decrypted)) { $error = 'Unable to decrypt string with openssl_decrypt()'; error_log("[$error]".': in '.__FILE__.' on line '.__LINE__); echo $error; exit; } } return (int) $decrypted; } else { $error = 'Unable to use openssl_decrypt() because PHP version is lower than 5.3 and openssl_decrypt() does not exist'; error_log("[$error]".': in '.__FILE__.' on line '.__LINE__); echo $error; exit; } } ?>