Skip to content

Instantly share code, notes, and snippets.

@ExtReMLapin
Created September 30, 2015 09:02
Show Gist options
  • Save ExtReMLapin/4e5025a1424d2d82c863 to your computer and use it in GitHub Desktop.
Save ExtReMLapin/4e5025a1424d2d82c863 to your computer and use it in GitHub Desktop.
local fileWantToRape = "creation_fjogjytiubbsckso.main"
function decompress_File(inputf, outputf)
local i = 0;
while i < 100 do
local str = file.Read(inputf, "BASE_PATH")
str = string.Right(str, string.len(str)-i)
str = util.Decompress(str)
if str then print("Offset of junk bytes :" .. i) print(str) file.Write(outputf, str) break end
i = i +1
end
end
decompress_File(fileWantToRape, tostring(math.random(42)) .. ".txt")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment