![]() |
|
#10
|
|||
|
|||
|
Looks like I can't edit my post I don't know why.
Sorry for the double post. Here the python3 script, which also removes the user_id from the video ![]() Code:
import os import shutil headerSize = 48 def decrypt_file(encryptedFile, decryptedFile): shutil.copy(encryptedFile, decryptedFile) with open(decryptedFile, "r+b") as inputFile: # Remove the user ID videoIdEmplacement = headerSize * 2 - 3 inputFile.seek(-videoIdEmplacement, os.SEEK_END) inputFile.write(bytes([0x00, 0x00, 0x00, 0x00])) # Read the encrypted header inputFile.seek(-headerSize, os.SEEK_END) encryptedHeader = bytearray(inputFile.read(headerSize)) # Xor the header decryptedHeader = bytes([b ^ 0x2E for b in encryptedHeader]) # Write the original file header inputFile.seek(0, os.SEEK_SET) inputFile.write(decryptedHeader) inputVideoFile = r"inputVideoFile" mp4VideoFile = r"outputVideoFile.mp4" decrypt_file(inputVideoFile, mp4VideoFile) ![]() Note that looking at the app, the encryption seems different on android, so just in case I'm on a PC that may differ with a mac I don't know. |
| The Following 8 Users Say Thank You to yologuy For This Useful Post: | ||
Abaddon (04-05-2020), bolo2002 (04-06-2020), cachito (04-07-2020), chants (04-07-2020), DominicCummings (09-09-2021), Mahmoudnia (04-05-2020), ziapcland (04-13-2020), Zipdecode (05-03-2020) | ||
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with AES 128 encrypted file | phroyt | General Discussion | 6 | 04-28-2020 09:57 |
| Reversing obfuscated and encrypted JAR file | Chuck954 | General Discussion | 8 | 10-11-2019 10:04 |
| Is it possible to crack encrypted file? | wenij | General Discussion | 8 | 02-19-2005 20:20 |