Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
static void Main(string[] args)
{
string argsfs = "/a /s /q /v \"{0}\" /p \"{1}\"";
char[] alphabet;
string prefix;
int len;
Int64 start, stop;
System.Diagnostics.Process p;
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo();
Console.WriteLine(@"Bitte Pfad zur TrueCrypt.exe (incl Dateiname) angeben:");
psi.FileName = Console.ReadLine();
Console.WriteLine(@"Bitte das TrueCrypt Volume angeben (z.B. \Device\Harddisk1\Partition1 oder c:\container.tc)");
argsfs = string.Format(argsfs, Console.ReadLine(), "{0}");
Console.WriteLine(@"Bitte den Prefix eingeben.");
prefix = Console.ReadLine();
Console.WriteLine(@"Bitte das Alphabet für die zu suchenden Zeichen eingeben.");
alphabet = Console.ReadLine().ToCharArray();
Console.WriteLine(@"Wieviele zeichen sind unbekannt?");
while (!int.TryParse(Console.ReadLine(), out len))
Console.WriteLine(@"das ist keine Zahl...");
start = Convert.ToInt64(Math.Pow(alphabet.Length, len - 1));
stop = Convert.ToInt64(Math.Pow(alphabet.Length, len)) - 1;
for (Int64 i = start; i <= stop; i++)
{
string password=string.Concat(prefix,int64ToOtherBase(i, alphabet));
psi.Arguments = string.Format(argsfs, password);
p = System.Diagnostics.Process.Start(psi);
p.WaitForExit();
if (p.ExitCode == 0)
{
Console.WriteLine("passwort ist: {0}", password);
Environment.Exit(0);
}
}
Console.WriteLine("Passwort nicht gefunden.");
}
public static string int64ToOtherBase(Int64 input, char[] uniqueDigits)
{
uint newBase = (uint)uniqueDigits.Length;
if (newBase < 2)
{
throw new ArgumentException();
}
else
{
StringBuilder sb = new StringBuilder();
while (input != 0)
{
Int64 digit = input % newBase;
sb.Append(uniqueDigits[digit]);
input /= newBase;
}
return sb.ToString();
}
}
c# / Windows / setzt TrueCrypt vorraus / Pizzaware
Also ich benötige die o.g. Software?
1. C# - macht es auch Visual C# 2010 Express - Download - CHIP Online ???
2. Windows - hab ich (sogar 7 Pro)
3. Truecrypt - ist auch da
4. Was für eine Pizzaware? Ist das nicht ein Oberbegriff für "Kaufe dem Autor eine Pizza" ?
das script ist eigentlich der quellcode eines programms ... visual studio express -> neues konsolenprojekt -> die main() mit dem code da oben ersetzen ... fertig zum bauen.... (sprich wenn du es nur starten willst -> F5)Hi,
also das Script starte ich über c# visual express? Ich habe mit c# keine Erfahrung bisher gemacht.