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.159
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 /
edu-lms /
internals /
scripts /
helpers /
[ HOME SHELL ]
Name
Size
Permission
Action
checkmark.js
208
B
-rw-r--r--
get-required-node-npm-versions...
197
B
-rw-r--r--
git-utils.js
2.4
KB
-rw-r--r--
progress.js
552
B
-rw-r--r--
xmark.js
198
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : git-utils.js
const { exec } = require('child_process'); const shell = require('shelljs'); /** * Initialize a new Git repository * @returns {Promise<any>} */ function initGitRepository() { return new Promise((resolve, reject) => { exec('git init', (err, stdout) => { if (err) { reject(new Error(err)); } else { resolve(stdout); } }); }); } /** * Add all files to the new repository * @returns {Promise<any>} */ function addToGitRepository() { return new Promise((resolve, reject) => { exec('git add .', (err, stdout) => { if (err) { reject(new Error(err)); } else { resolve(stdout); } }); }); } /** * Initial Git commit * @returns {Promise<any>} */ function commitToGitRepository() { return new Promise((resolve, reject) => { exec('git commit -m "Initial commit"', (err, stdout) => { if (err) { reject(new Error(err)); } else { resolve(stdout); } }); }); } /** * Checks if we are under Git version control * @returns {Promise<boolean>} */ function hasGitRepository() { return new Promise((resolve, reject) => { exec('git status', (err, stdout) => { if (err) { reject(new Error(err)); } const regex = new RegExp(/fatal:\s+Not\s+a\s+git\s+repository/, 'i'); /* eslint-disable-next-line no-unused-expressions */ regex.test(stdout) ? resolve(false) : resolve(true); }); }); } /** * Checks if this is a clone from our repo * @returns {Promise<any>} */ function checkIfRepositoryIsAClone() { return new Promise((resolve, reject) => { exec('git remote -v', (err, stdout) => { if (err) { reject(new Error(err)); } const isClonedRepo = stdout .split(/\r?\n/) .map(line => line.trim()) .filter(line => line.startsWith('origin')) .filter(line => /react-boilerplate\/react-boilerplate-typescript\.git/.test(line)) .length; resolve(!!isClonedRepo); }); }); } /** * Remove the current Git repository * @returns {Promise<any>} */ function removeGitRepository() { return new Promise((resolve, reject) => { try { shell.rm('-rf', '.git/'); resolve(); } catch (err) { reject(err); } }); } module.exports = { initGitRepository, addToGitRepository, commitToGitRepository, hasGitRepository, checkIfRepositoryIsAClone, removeGitRepository, };
Close