用AHK计数,字母 [英] Counting with AHK, Letters

查看:124
本文介绍了用AHK计数,字母的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近一直在使用AHK(一种解释性的自动化脚本语言)进行一些实验,它可以执行诸如窗口移动,鼠标移动,保存和记录文件信息之类的任务,我发现它非常有用.我想制作一个可以计数的脚本,但是带有字符和符号以及一个密码列表生成器.因为我需要一个戴白帽子的人.

I have been doing some recent experimentation with AHK, an interpreted automation scripting language, that can do tasks such as window move, mouse move, save and log info for files and I have found it very useful. I wanted to make a script that could sort of count, but with characters and symbols, a password list generator. As I need one for my attempts as a white hat.

;list of characters here
send, aaaaa
;then
send, aaaab

使用这样的方法,非常感谢您提供帮助,谢谢!

using a method like this I would very much appreciate help on the matter, thank you!

推荐答案

如果您正在寻找一种蛮力的功能,则可以尝试以下一种方法:

If you are looking for a brute force kind of function, you could try this one:

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)

结果存储在文件BruteForce.txt

The result is stored in the file BruteForce.txt

这篇关于用AHK计数,字母的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆