mirror of
https://github.com/mvt-project/mvt.git
synced 2026-08-16 08:00:25 +02:00
Fixing spacing
This commit is contained in:
@@ -110,7 +110,6 @@ class SMS(AndroidExtraction):
|
|||||||
|
|
||||||
log.info("Extracted a total of %d SMS messages containing links", len(self.results))
|
log.info("Extracted a total of %d SMS messages containing links", len(self.results))
|
||||||
|
|
||||||
|
|
||||||
def _extract_sms_adb(self):
|
def _extract_sms_adb(self):
|
||||||
"""Use the Android backup command to extract SMS data from the native SMS app
|
"""Use the Android backup command to extract SMS data from the native SMS app
|
||||||
|
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ def parse_ab_header(data):
|
|||||||
"encryption": None
|
"encryption": None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
def decrypt_master_key(password, user_salt, user_iv, pbkdf2_rounds, master_key_blob, format_version, checksum_salt):
|
def decrypt_master_key(password, user_salt, user_iv, pbkdf2_rounds, master_key_blob, format_version, checksum_salt):
|
||||||
"""Generate AES key from user password uisng PBKDF2
|
"""Generate AES key from user password uisng PBKDF2
|
||||||
|
|
||||||
@@ -107,6 +108,7 @@ def decrypt_master_key(password, user_salt, user_iv, pbkdf2_rounds, master_key_b
|
|||||||
|
|
||||||
return master_key, master_iv
|
return master_key, master_iv
|
||||||
|
|
||||||
|
|
||||||
def decrypt_backup_data(encrypted_backup, password, encryption_algo, format_version):
|
def decrypt_backup_data(encrypted_backup, password, encryption_algo, format_version):
|
||||||
"""
|
"""
|
||||||
Generate encryption keyffrom password and do decryption
|
Generate encryption keyffrom password and do decryption
|
||||||
@@ -137,6 +139,7 @@ def decrypt_backup_data(encrypted_backup, password, encryption_algo, format_vers
|
|||||||
unpadder = padding.PKCS7(128).unpadder()
|
unpadder = padding.PKCS7(128).unpadder()
|
||||||
return unpadder.update(decrypted_tar)
|
return unpadder.update(decrypted_tar)
|
||||||
|
|
||||||
|
|
||||||
def parse_backup_file(data, password=None):
|
def parse_backup_file(data, password=None):
|
||||||
"""
|
"""
|
||||||
Parse an ab file, returns a tar file
|
Parse an ab file, returns a tar file
|
||||||
|
|||||||
Reference in New Issue
Block a user