Bruteforcing ~ Overflow Help

Posts 1–6 of 6 · Page 1 of 1
Bruteforcing ~ Overflow Help
So.

I'm making my bruteforcer better and stuff for myself.

And I thought a cool feature would be to store all of the tested emails in a AlreadyTested.txt that is in the desktop

Then, it would check if the current randomly generated email is in the alreadytested.txt

If it is, it generates a new email.

So the thing is...

If I have this charset for example "1234567890"

This is 10 numbers right?

And the randomly generated email had 3 chars so it would be "001@domain.com" "002@domain.com" etc.

However that means that there is 10^3 possible combinations, alright.

And you would expect, if it reaches 1000 combinations (all of em) it would give you an infinite loop of trying to get a random email, but it can't since you have all of the possible combinations.


But heres the problem, at around 300, or if I'm really lucky 400-600 tries...

When a new email is being generated MY ASSUMPTION is that it checks so many times that it overflows.

But why?

At 600 attempts there is still 400 emails to be checked, 400 emails that dont exist in the alreadytested.txt so it has emails to check.

Why does it give me an exception so early?


I want it to check as many times as needed to find a different email.

For example, if 999 attempts have already been made:

It has a 1/1000 chance of getting the left email correctly.
So after 1000 attempts it would get it
But apparently 1000 attempts is too many for it to handle for whatever reason
How do I fix this?


This is coded in visual basic / C# if anyone is wondering.

- - - Updated - - -

Code:
Dim text As String = File.ReadAllText("c:\Users\" + Environment.UserName + "\desktop\alreadytested.txt") 'Finds the file
            Dim index As Integer = text.IndexOf(email) 'checks if currently generated email already exists, if it does, it goes back to the start
            If index >= 0 Then 'if the email exists then
                keywordz() 'go back to the start
            End If
It might be the codes fault idk, but if it has to check over 200 emails, even if there is 1000 possible combinations, it throws overflow exception.
If keywordz() is calling its self recursively, you're probably running out of stack space.. if you post the exact error message and which line it occurs on, people will be more able to help you..
Quote Originally Posted by abuckau907 View Post
you're probably running out of stack space
this will be it , for sure
The function call is commented with:

Code:
'go back to the start
so it's 99% sure the code he posted is part of keywordz() function. You should post the complete code, at least the whole function.
Quote Originally Posted by New View Post
So.

I'm making my bruteforcer better and stuff for myself.

And I thought a cool feature would be to store all of the tested emails in a AlreadyTested.txt that is in the desktop

Then, it would check if the current randomly generated email is in the alreadytested.txt

If it is, it generates a new email.

So the thing is...

If I have this charset for example "1234567890"

This is 10 numbers right?

And the randomly generated email had 3 chars so it would be "001@domain.com" "002@domain.com" etc.

However that means that there is 10^3 possible combinations, alright.

And you would expect, if it reaches 1000 combinations (all of em) it would give you an infinite loop of trying to get a random email, but it can't since you have all of the possible combinations.


But heres the problem, at around 300, or if I'm really lucky 400-600 tries...

When a new email is being generated MY ASSUMPTION is that it checks so many times that it overflows.

But why?

At 600 attempts there is still 400 emails to be checked, 400 emails that dont exist in the alreadytested.txt so it has emails to check.

Why does it give me an exception so early?


I want it to check as many times as needed to find a different email.

For example, if 999 attempts have already been made:

It has a 1/1000 chance of getting the left email correctly.
So after 1000 attempts it would get it
But apparently 1000 attempts is too many for it to handle for whatever reason
How do I fix this?


This is coded in visual basic / C# if anyone is wondering.

- - - Updated - - -

Code:
Dim text As String = File.ReadAllText("c:\Users\" + Environment.UserName + "\desktop\alreadytested.txt") 'Finds the file
            Dim index As Integer = text.IndexOf(email) 'checks if currently generated email already exists, if it does, it goes back to the start
            If index >= 0 Then 'if the email exists then
                keywordz() 'go back to the start
            End If
It might be the codes fault idk, but if it has to check over 200 emails, even if there is 1000 possible combinations, it throws overflow exception.
This is already solved in another thread, please. /close solved
ye forgot about this one /close solved
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us