![]() ![]() ![]() The first core will start looping only the 8 character length ones, and second core will do the same with 7 character length ones. I want to make it higher, like 6 cores on the same task, or each core will take care of one part. I guess it's because it says 13% CPU usage. My CPU is i7 3770k got 6 cores and the program runs only with one. And it makes the program lose so much time at higher digits. So it should wait for 1, 2, 3 to get the 4 digit ones. It tries 1 digit first, then 2 digits, then 3 digits and so on. I want to make my code prettier, so how can I get rid of this copy/pasted code and make it 1/8 size of current size? CTRL + MOUSE WHEEL DOWN, zoom-out and see the copy pasted parts. case 1 has 1 for loop, case 8 has 8 nested for loops. The one and only difference between those cases is the "for loop" count. case 2 = two characters, case 8 = 8 characters length password. For example, case 1 loops with one character length passwords. It looks so long and dirty because I copied a code block 8 times in a switch case statement. My program works really well but it's a bit dirty and it can be faster if I solve these two problems: Check some of those screenshots to understand easier. I've explained how my program works at the start of the code. I am just coding some classic brute force password cracking program, just to improve myself. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |