Exetools  

Go Back   Exetools > General > General Discussion

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 04-05-2020, 20:29
yologuy yologuy is offline
Friend
 
Join Date: Nov 2016
Posts: 18
Rept. Given: 0
Rept. Rcvd 0 Times in 0 Posts
Thanks Given: 5
Thanks Rcvd at 23 Times in 9 Posts
yologuy Reputation: 0
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)
Enjoy guys

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.
Reply With Quote
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)
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


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


All times are GMT +8. The time now is 05:59.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )