diff --git a/LIFExtractor.py b/LIFExtractor.py index d726e67..bd96013 100644 --- a/LIFExtractor.py +++ b/LIFExtractor.py @@ -123,8 +123,14 @@ def recurse(prefix, offset): #Loop through the list of files, saving them. for a in fileList: + print("- extracting : "+outFolder+a[0]) f = open((outFolder + a[0]), "wb") - f.write(fileData[a[1]:a[1]+a[2]]) + b = a[1]; e = a[1]+a[2] ; step = 0x1000000 + while b < e : + while (b+step) > e : + step /= 2 + f.write(fileData[b:b+step]) + b += step f.close() print("\tCOMPLETE: " + str(len(fileList)) + " files in " + str(len(folderList)) + " folders extracted.")