def startAcquisition(self): sn = get_serial(self.logging) lockdown = LockdownClient(sn) device_found_mes = f"""\n Device Found! Device Name: {lockdown.allValues['DeviceName']} Device Model: {lockdown.allValues['ProductType']} iOS Version: {lockdown.allValues['ProductVersion']} Device Build: {lockdown.allValues['BuildVersion']} WiFi Address: {lockdown.allValues['WiFiAddress']} Hardware Model: {lockdown.allValues['HardwareModel']} """ self.logging.info(device_found_mes) afc_service = lockdown.startService("com.apple.afc") afc = AFCClient(lockdown=lockdown) afc.pull_directory('/', self.output) if self.md5 or self.sha1: with open(self.csv_path, "w", newline='') as csvfile: csvfile_obj = csv.writer(csvfile) if self.md5 and self.sha1: csvfile_obj.writerow( ["File Name", "Full Path", "MD5", "SHA-1"]) elif self.md5: csvfile_obj.writerow(["File Name", "Full Path", "MD5"]) elif self.sha1: csvfile_obj.writerow(["File Name", "Full Path", "SHA-1"]) hasher(self.output, self.md5, self.sha1, csvfile_obj, self.logging)
def startAcquisition(self): sn = get_serial(self.logging) lockdown = LockdownClient(sn) device_found_mes = f""" Device Found! Device Name: {lockdown.allValues['DeviceName']} Device Model: {lockdown.allValues['ProductType']} iOS Version: {lockdown.allValues['ProductVersion']} Device Build: {lockdown.allValues['BuildVersion']} WiFi Address: {lockdown.allValues['WiFiAddress']} Hardware Model: {lockdown.allValues['HardwareModel']} """ print(device_found_mes) afc2_service = lockdown.startService("com.apple.afc2") afc = AFC2Client(lockdown=lockdown) afc.pull_directory(self.remoteFolder, self.output) if self.md5 or self.sha1: with open(self.csv_path, "ab") as csvfile: csvfile_obj = csv.writer(csvfile) hasher(self.output, self.md5, self.sha1, csvfile_obj, self.logging)