⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.96
Server IP:
147.93.97.220
Server:
Linux srv843233 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
thread-self
/
root
/
usr
/
lib
/
node_modules
/
pm2
/
View File Name :
preinstall.js
const fs = require('fs'); const path = require('path'); // Determine platform const isWindows = process.platform === 'win32'; if (!isWindows) process.exit(0) const sourceFile = 'bin/pm2-windows'; const destinationFile = 'bin/pm2'; // Resolve file paths const sourcePath = path.resolve(__dirname, sourceFile); const destinationPath = path.resolve(__dirname, destinationFile); // Copy the appropriate file based on the platform fs.copyFile(sourcePath, destinationPath, (err) => { if (err) { console.error(`Error copying file from ${sourcePath} to ${destinationPath}:`, err); process.exit(1); } console.log(`Successfully copied ${sourceFile} to ${destinationFile}`); });