One Hat Cyber Team
Your IP :
108.162.241.211
Server IP :
188.114.96.3
Server :
Linux thuru 6.5.11-4-pve #1 SMP PREEMPT_DYNAMIC PMX 6.5.11-4 (2023-11-20T10:19Z) x86_64
Server Software :
Apache/2.4.51 (Unix) OpenSSL/1.0.2k-fips
PHP Version :
7.3.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
thuruk
/
datacollect.thurukepakaru.com
/
View File Name :
upload_image.php
<?php $session = $_POST['session_id']; $exist_url = $_POST['exist_url']; $username = $_POST['username']; $target_dir = "Images/".strtolower($username); // Check if the target directory exists, and if not, create it if (!file_exists($target_dir)) { if (!mkdir($target_dir, 0777, true)) { $json['status'] = 400; $json['msg'] = 'Failed to create directory'; echo json_encode($json); exit; } } $image = $_POST['image']; $name = $target_dir . "/" . $_POST['imagename']; $realImage = base64_decode($image); $imageUrl = $name; file_put_contents($name, $realImage); $url = "https://datacollect.thurukepakaru.com/" . $name; $json['status'] = 200; $json['url'] = $url; echo json_encode($json); ?>