Counting with AHK, Letters
I have done some recent experiments with AHK, an interpreted automation scripting language that can do tasks like moving a window, moving the mouse, saving and writing file information, and I found it very useful. I wanted to make a script that could sort the account, but with characters and symbols, a password list generator. Because I need one for my attempts like a white hat.
;list of characters here
send, aaaaa
;then
send, aaaab
using a method like this I would really like to help with this question, thanks!
-2
Matt
source
to share
1 answer
If you're looking for a brute force function, you can try this:
BruteForce(Chars, Min, Max, Prefix, Stage)
{
Loop, Parse, Chars
{
If (Stage >= Min-1)
FileAppend, % Prefix A_loopField "`n", BruteForce.txt ;you could replace the line with: Send % Prefix A_loopField
If (Stage < Max-1)
BruteForce(Chars, Min, Max, Prefix A_LoopField, Stage + 1)
}
}
BruteForce("abc", 1, 2, "", 0) ;this would create every possible combination of the letters abc (min length 1, max length 2)
The result is saved in the BruteForce.txt file
+1
Forivin
source
to share