Skip to content

Instantly share code, notes, and snippets.

@tjmonsi
Last active December 31, 2023 05:32
Show Gist options
  • Save tjmonsi/19175bf021cffbaa85981e3626e15976 to your computer and use it in GitHub Desktop.
Save tjmonsi/19175bf021cffbaa85981e3626e15976 to your computer and use it in GitHub Desktop.
Prints the deciphered text given a text content (new line delimited)
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