Skip to content

Commit

Permalink
In case of unrecognized backup directories, all file contents, minus …
Browse files Browse the repository at this point in the history
…the sha1 named files are listed.
  • Loading branch information
CaitSith2 committed Jan 31, 2017
1 parent a4f41e6 commit d2c440d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ios-steamguard-extractor/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,16 @@ private void btnGetSteamGuardData_Click(object sender, EventArgs e)
var name = new DirectoryInfo(d).Name;
if (!File.Exists(Path.Combine(d, "Manifest.mbdb")))
{
txtResults.AppendText($"Directory {name} is not a valid ios backup, skipping" + Environment.NewLine + Environment.NewLine);
txtResults.AppendText($"Directory {name} is possibly not a valid ios backup." + Environment.NewLine +
"Listing contents of this directory. Please open an issue and paste this listing" + Environment.NewLine + Environment.NewLine);
foreach (var f in Directory.GetFiles(d))
{
var filename = Path.GetFileName(f);
if (filename.Length == 20 && !filename.Contains(".")) continue; //SHA1 hash of filenames.
txtResults.AppendText($"{filename}" + Environment.NewLine);
}
txtResults.AppendText(Environment.NewLine + "Done listing files" + Environment.NewLine +
Environment.NewLine);
continue;
}
txtResults.AppendText($"Processing Directory {name}" + Environment.NewLine);
Expand Down

0 comments on commit d2c440d

Please sign in to comment.