Thirteen Years of Service
Posts: 3,257
Threads: 163
RE: Handling huge wordlists 04-19-2013, 06:55 PM
#3
A stream should do fine. I can't help you with the details as I am not familiar with VB, but streams load the files in chunks whose size you can usually specify.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.
•
Thirteen Years of Service
Posts: 3,257
Threads: 163
RE: Handling huge wordlists 04-19-2013, 06:55 PM
#4
A stream should do fine. I can't help you with the details as I am not familiar with VB, but streams load the files in chunks whose size you can usually specify.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.
•
Fourteen Years of Service
Posts: 2,622
Threads: 213
RE: Handling huge wordlists 04-19-2013, 07:09 PM
#5
Hmm I'll have to read about stream then. I'll bump this thread if I get anything useful.
![[Image: rytwG00.png]](http://i.imgur.com/rytwG00.png)
Redcat Revolution!
•
Fourteen Years of Service
Posts: 2,622
Threads: 213
RE: Handling huge wordlists 04-19-2013, 07:09 PM
#6
Hmm I'll have to read about stream then. I'll bump this thread if I get anything useful.
![[Image: rytwG00.png]](http://i.imgur.com/rytwG00.png)
Redcat Revolution!
•
Fourteen Years of Service
Posts: 1,475
Threads: 91
RE: Handling huge wordlists 04-22-2013, 05:25 AM
#9
You have to deal with streams on your own here. For instance, the StreamReader, and not a wrapper for it like the File methods from the System.IO namespace. It's not hard to keep a buffer though. If a word per line is how the file is formatted, then use a for loop to call ReadLine() x number of times, and append the data to a StringBuilder or a generic List<string> if you prefer. If it's fixed, you could just use an array as well for speed. After the data is collected, deal with it, and repeat the process by clearing out the buffer and appending x number of lines to your storage, whatever that may be.
•
Fourteen Years of Service
Posts: 2,622
Threads: 213
RE: Handling huge wordlists 04-22-2013, 08:18 AM
#10
I can now read a huge file in chunks, but the problem is I can't seem to integrate this into my multithreaded bruteforcer.
To fasten the task I loop 10 (user-input) threads which perform the dictionary attack, and for that I'm storing words in Queues.
But now the queue needs to be filled in chunks and hence is causing problems. I got myself confused.
I can integrate both the "loading in chunks" function and dictionary-attack function, and run those in multiple threads but not sure if that would be fast.
![[Image: rytwG00.png]](http://i.imgur.com/rytwG00.png)
Redcat Revolution!
•