Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 指定字典名称 TargetsList = "targets_list.txt" UsernameDict = "username_dict.txt" PasswordDict = "password_dict.txt" // 结果保存文件 ResultFile = "crack_result.txt" )
定义文件名
View Source
var ( // 检测 task 是否存活的进度条 ProcessBarActive *pb.ProgressBar // 爆破进度条 ProcessBarScan *pb.ProgressBar )
定义进度条
View Source
var ( // 定义用来判断协议是否支持的 map SupportProtocols map[string]bool // 指定当前支持的端口和协议 PortProtocol = map[int]string{ 22: "SSH", } )
定义端口和协议
View Source
var CacheTarget *cache.Cache
将爆破的结果存入 cache 中,该 cache 库支持内存数据落盘
View Source
var Concurrency = 50
定义默认并发数,经测试,并发量不宜过大,否则会降低命中率
View Source
var DebugModel bool = false
Debug 模式
View Source
var StartTime time.Time
启动时间
View Source
var SuccessHash sync.Map
标记特定的任务是否爆破成功,成功的话不再尝试破解该用户
View Source
var TimeOut = 5 * time.Second
定义超时时间,经测试,如果为 3 会超时
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.