Last active
December 31, 2023 05:32
-
-
Save tjmonsi/19175bf021cffbaa85981e3626e15976 to your computer and use it in GitHub Desktop.
Prints the deciphered text given a text content (new line delimited)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tjx_print_decipher = function (text) | |
crypto = globals.crypto | |
items = [] | |
if not crypto then exit("Cannot find crypto.so") | |
if not text then | |
print("No text to decipher") | |
return items | |
end if | |
wait | |
print("Starting deciphering an array of 'user:encrypted_passwd' list...") | |
for string in text.split("\n") | |
array = string.split(":") | |
// checks if it is properly set | |
if not array.hasIndex(1) then continue | |
user = array[0] | |
encrypted_passwd = array[1] | |
if not encrypted_passwd then continue | |
passwd = crypto.decipher(encrypted_passwd) | |
items.push(user + ":" + passwd) | |
wait | |
end for | |
return items | |
end function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment