Skip to content

Commit 091135c

Browse files
committed
Added more verbose support
1 parent a283f46 commit 091135c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

ioscrack.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,19 @@ def findHash(path):
147147
try:
148148
INFOPATH = path + bkup_dir + "/Info.plist"
149149
if os.path.isfile(INFOPATH):
150-
pl = readPlist(INFOPATH)
150+
info = readPlist(INFOPATH)
151151
try:
152-
deviceName = pl['Device Name']
153-
lastBackupDate = pl['Last Backup Date']
152+
deviceName = info['Device Name']
153+
lastBackupDate = info['Last Backup Date']
154+
model = info['Product Type']
155+
UDID = info['Unique Identifier']
156+
iOS = info['Product Version']
157+
targetType = info['Target Type']
154158
print('\n%sFound Backup for %s as of %s %s' %
155159
(color.OKGREEN, deviceName, str(lastBackupDate), color.END))
156160
if args.verbose:
157-
print("%sUDID: %s %s" %
158-
(color.OKGREEN, bkup_dir, color.END))
161+
print("%sUDID: %s \n%s: %s running iOS %s %s" %
162+
(color.OKGREEN, UDID, targetType, model, iOS, color.END))
159163
except:
160164
break
161165
findSecretKeySalt(
@@ -191,6 +195,7 @@ def main():
191195
if not args.verbose and not args.automatically and not args.interactive and not args.backup:
192196
parser.print_help()
193197
except KeyboardInterrupt:
198+
print("Exiting...\r"),
194199
pass
195200

196201

0 commit comments

Comments
 (0)