Files
Grey_Hack/greyhack/crack.src
2025-02-01 22:00:20 +01:00

33 lines
902 B
Plaintext

cryptools = include_lib("/lib/crypto.so")
if not cryptools then
cryptools = include_lib(current_path + "/crypto.so")
end if
if not cryptools then exit("Error: Can't find crypto.so library in the /lib path or the current folder")
GetPassword = function(hash)
return cryptools.decipher(hash)
end function
if not params.len >= 1 then exit("No file Specified")
fileName = params[0]
if fileName.len == 32 then exit(GetPassword(fileName))
file = get_shell.host_computer.File(current_path + fileName)
if not file then
file = get_shell.host_computer.File(fileName)
end if
if not file then exit("Error: File not found in current folder or at specified location")
content = file.get_content.split("\n")
output = []
for line in content
if line.len != 32 then output.push(line)
if line.len == 32 then output.push(GetPassword(line))
end for
for line in output
print(line)
end for