One Hat Cyber Team
Your IP :
172.16.0.254
Server IP :
58.26.163.33
Server :
Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Server Software :
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
PHP Version :
7.3.25
Buat File
|
Buat Folder
Eksekusi
Dir :
C:
/
xampp7
/
htdocs
/
edgpens_220424
/
edg_o
/
View File Name :
s_upload_me.php
<? session_start(); include '../odbc.php'; include '../sessions.php'; if ($_SESSION['session']) $session=updateSession($_SESSION["session"]); else $session=''; // foreach ($variable as $key => $value) { // # code... // } // copy ($_FILES['file1']['tmp_name'], "upload/".$_FILES['file1']['name']) or die ("Could not copy"); $path = $_POST['ii']; $path2 = $_POST['iix']; $catatan = $_POST['catatan']; $folder = "../upload/site/".$path; if(!is_dir($folder)): mkdir($folder,0777,TRUE); $file = "../upload/index.html"; copy($file, $folder."/index.html"); endif; $countfiles = count($_FILES['file']['name']); for($i=0;$i<$countfiles;$i++){ $filename = $_FILES['file']['name'][$i]; $ext = strtolower(substr($filename, strrpos($filename, "."))); $list_ext = array( '.gif', '.pdf', '.jpeg', '.jpg', '.jpe', '.bmp', '.ico', '.svg', '.tif', '.tiff' ); if (in_array($ext, $list_ext)) { $rand_name = rand_filename("",$ext,2); if(move_uploaded_file($_FILES['file']['tmp_name'][$i],$folder."/".$path2."_".$rand_name) && is_writable($folder)){ $sql = "INSERT INTO visit_lampiran (idVisitDetail,namaFile,catatan) values (?,?,?)"; $param_type = "sss"; $param_data = array( "idVisitDetail" => $path2, "namaFile" => $path2."_".$rand_name, "catatan" => $catatan ); $data = mysqli_prepare_audit($sql,$param_type,$param_data); echo "success"; }else{ echo "failed"; } } } ?>