while AttemptsNumber TotalAccounts if _AbortFlag _FinishFlag break try

 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
while (AttemptsNumber < TotalAccounts)
{
if (_AbortFlag || _FinishFlag)
break;
try {
lock (AccountsList) {
/*acc = AccountsList[AttemptsNumber];*/
AttemptsNumber++;
acc = AccountsList[0];
AccountsList.RemoveAt(0);
}
if (BruteForcer.Attempt(acc) == true) {
lock (locker) {
if (!_FoundFlag) {
_FoundFlag = true;
BruteForcer.RaiseEvent(BfEvent.SuccessfulAttempt, null);
/*--------------------------------------------------------------------------------*/
if (BruteForcer.AttackType == AttackType.SingleAcc) {
Abort();
/*if (!_FinishFlag) {
_FinishFlag = true;
BruteForcer.RaiseEvent(BfEvent.AttackFinished,
(DateTime.Now - sTime).TotalSeconds.ToString());
}*/
}
/*--------------------------------------------------------------------------------*/
_FoundFlag = false;
}
}
} else {
if (!_AbortFlag)
BruteForcer.RaiseEvent(BfEvent.UnsuccessfulAttempt, null);
}
} catch (ArgumentOutOfRangeException ex) {
MessageBox.Show(AttemptsNumber.ToString()+"\r\n"+ex.Message+"\r\n"+ex.StackTrace);
}
}