-
-
Save paulohenriquesn/eec9c0175bc53f0d82d4971f3e9a54eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void BruteForceII(string password, int ms) | |
{ | |
string listbrute = "null:null"; | |
char[] listA_Z = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' }; | |
l: | |
string bruteForceValue = String.Empty; | |
while (true) | |
{ | |
if (password != bruteForceValue) | |
{ | |
for (int i = 0; i < 133333; i++) | |
{ | |
string[] vecte = listbrute.Split(':'); | |
for (int e = 0; e < vecte.Length; e++) | |
{ | |
if (bruteForceValue.Contains(listbrute[e])) | |
{ | |
goto l; | |
} | |
} | |
Thread.Sleep(ms); | |
int l = new Random().Next(1, 5); | |
if (l >= 3) | |
{ | |
Thread.Sleep(ms); | |
Thread.Sleep(ms); | |
int t = new Random().Next(1, listA_Z.Length); | |
Thread.Sleep(ms); | |
int e = new Random().Next(1, listA_Z.Length); | |
Thread.Sleep(ms); | |
int s = new Random().Next(1, listA_Z.Length); | |
Thread.Sleep(ms); | |
int f = new Random().Next(1, listA_Z.Length); | |
bruteForceValue = $"{listA_Z[t]}{listA_Z[e]}{listA_Z[s]}{listA_Z[f]}{i}"; | |
listbrute += $":{bruteForceValue}"; | |
} | |
else | |
{ | |
Thread.Sleep(ms); | |
int t = new Random().Next(1, listA_Z.Length); | |
Thread.Sleep(ms); | |
int e = new Random().Next(1, listA_Z.Length); | |
Thread.Sleep(ms); | |
int s = new Random().Next(1, listA_Z.Length); | |
Thread.Sleep(ms); | |
int f = new Random().Next(1, listA_Z.Length); | |
bruteForceValue = $"{i}{listA_Z[t]}{listA_Z[e]}{listA_Z[s]}{listA_Z[f]}"; | |
listbrute += $":{bruteForceValue}"; | |
} | |
Console.WriteLine(bruteForceValue); | |
} | |
} | |
else | |
{ | |
Console.ForegroundColor = ConsoleColor.Green; | |
Console.WriteLine($"Found! {bruteForceValue}"); | |
Console.ResetColor(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment