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 /
greenpreneurs /
api /
routes /
[ HOME SHELL ]
Name
Size
Permission
Action
admin.dashboard.route.js
1.29
KB
-rw-r--r--
auth.route.js
1.04
KB
-rw-r--r--
blog.route.js
1.17
KB
-rw-r--r--
event.route.js
272
B
-rw-r--r--
homePage.route.js
259
B
-rw-r--r--
individualBlog.route.js
1.3
KB
-rw-r--r--
user.dashboard.route.js
1.41
KB
-rw-r--r--
user.route.js
450
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : auth.route.js
// api/routes/auth.route.js import express from 'express'; import expressValidator from 'express-validator'; const { body, validationResult } = expressValidator; import { register, login, verifyBackup } from '../controllers/auth.controller.js'; const router = express.Router(); // Validation middleware to handle express-validator v6 results const validate = (req, res, next) => { const errors = validationResult(req); if (!errors.isEmpty()) { return res.status(400).json({ errors: errors.array() }); } next(); }; // Registration: name & email router.post( '/register', body('email').isEmail(), body('name').isLength({ min: 1 }), validate, register ); // Login: email + 6-digit TOTP router.post( '/login', body('email').isEmail(), body('token').isLength({ min: 6, max: 6 }).isNumeric(), validate, login ); // Backup-code login router.post( '/backup', body('email').isEmail(), body('backupCode').isLength({ min: 6 }), validate, verifyBackup ); export default router;
Close