-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
52 lines (47 loc) · 1.39 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
namespace PLSQL_Crack_Pass
{
public class Program
{
static void Main(string[] args)
{
string judgePath = "-p";
if (args.Length == 2 && args[0].Equals(judgePath, StringComparison.OrdinalIgnoreCase))
{
try
{
_PrintResults(args);
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
}
else
{
Console.WriteLine("Usage: PLSQLCrackPass.exe -p user.prefs_Path");
Console.WriteLine(@" PLSQLCrackPass.exe -p ""C:\Program Files\PLSQL Developer 14\Preferences\user.prefs""");
}
}
private static void _PrintResults(string[] args)
{
string path = args[1];
var settings = new Settings(path);
try
{
var logins = settings.GetLogins();
foreach (var login in logins)
{
Console.WriteLine("Result! '{0}'", login);
}
}
catch (Exception ex)
{
Console.WriteLine("Error! '{0}'", ex.Message);
}
}
}
}