This commit is contained in:
2025-02-01 22:00:20 +01:00
commit 855a8e8234
8 changed files with 314 additions and 0 deletions

33
greyhack/crack.src Normal file
View File

@@ -0,0 +1,33 @@
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