Documentation ¶
Index ¶
- Constants
- Variables
- func BruteItemStreamWithContext(ctx context.Context, typeStr string, target []string, users []string, ...) (chan *BruteItem, error)
- func FileOrMutateTemplate(t string, divider string) []string
- func FileOrMutateTemplateForStrings(divider string, t ...string) []string
- func FileToDictList(fileName string) []string
- func GeneratePasswordByUser(user []string, pass []string) []string
- func GetBuildinAvailableBruteType() []string
- func GetPasswordListFromBruteType(t string) []string
- func GetUsernameListFromBruteType(t string) []string
- func MongodbUnauth(host string, port int) (flag bool, err error)
- type BruteCallback
- type BruteItem
- type BruteItemResult
- type BruteItemResultCallback
- type BruteUtil
- func (b *BruteUtil) Feed(item *BruteItem)
- func (b *BruteUtil) GetAllTargetsProcessing() []*targetProcessing
- func (b *BruteUtil) GetProcessingByTarget(target string) (*targetProcessing, error)
- func (b *BruteUtil) RemoteProcessingByTarget(target string)
- func (b *BruteUtil) Run() error
- func (b *BruteUtil) RunWithContext(ctx context.Context) error
- func (b *BruteUtil) SetResultCallback(cb BruteItemResultCallback)
- func (b *BruteUtil) StreamBruteContext(ctx context.Context, typeStr string, target, users, pass []string, ...) error
- type DefaultServiceAuthInfo
- type OptionsAction
- func WithBeforeBruteCallback(c func(string) bool) OptionsAction
- func WithBruteCallback(callback BruteCallback) OptionsAction
- func WithDelayerWaiter(minDelay, maxDelay int) (OptionsAction, error)
- func WithFinishingThreshold(t int) OptionsAction
- func WithOkToStop(t bool) OptionsAction
- func WithOnlyNeedPassword(t bool) OptionsAction
- func WithResultCallback(callback BruteItemResultCallback) OptionsAction
- func WithTargetTasksConcurrent(targetTasksConcurrent int) OptionsAction
- func WithTargetsConcurrent(targetsConcurrent int) OptionsAction
Constants ¶
View Source
const CommonTimeoutDuration = 8 * time.Second
Variables ¶
View Source
var CommonPasswords = []string{}/* 199 elements not displayed */
View Source
var CommonUsernames = []string{
"admin", "root", "test", "op", "www", "data",
"guest",
}
http://k8gege.org/p/16172.html
View Source
var RDPLogin = rdpLogin
Functions ¶
func FileOrMutateTemplate ¶
func FileToDictList ¶
func GeneratePasswordByUser ¶
func GetBuildinAvailableBruteType ¶
func GetBuildinAvailableBruteType() []string
Types ¶
type BruteCallback ¶
type BruteCallback func(item *BruteItem) *BruteItemResult
func GetBruteFuncByType ¶
func GetBruteFuncByType(t string) (BruteCallback, error)
type BruteItemResult ¶
type BruteItemResult struct { // 爆破类型 Type string // 标志着爆破成功 Ok bool // 标志着完成爆破/因为协议不对,或者是网络验证错误,等 Finished bool // 标志着该用户名有问题,不应该再使用这个用户名 UserEliminated bool // 该爆破只需要密码,不需要用户名 OnlyNeedPassword bool // 爆破的目标 Target string // 爆破的用户名与密码 Username string Password string // 爆破结果的 banner 依据,额外信息 ExtraInfo []byte }
func (*BruteItemResult) Show ¶
func (r *BruteItemResult) Show()
func (*BruteItemResult) String ¶
func (r *BruteItemResult) String() string
type BruteItemResultCallback ¶
type BruteItemResultCallback func(b *BruteItemResult)
type BruteUtil ¶
type BruteUtil struct { TargetTaskConcurrent int // 这个选项标志着,如果遇到了 Ok,则停止对当前目标的爆破 OkToStop bool // 完成阈值,这是一个整型 // 在爆破过程中会统计任务 Finished 的数量 // 一旦任务执行给的结果 Finished 的数量达到这个参数设置的值 // 马上结束对当前这个目标的爆破 FinishingThreshold int // OnlyNeedPassword 标志着这次爆破只需要密码进行爆破 OnlyNeedPassword bool // contains filtered or unexported fields }
func NewMultiTargetBruteUtil ¶
func NewMultiTargetBruteUtil(targetsConcurrent, minDelay, maxDelay int, callback BruteCallback) (*BruteUtil, error)
func NewMultiTargetBruteUtilEx ¶
func NewMultiTargetBruteUtilEx(options ...OptionsAction) (*BruteUtil, error)
func (*BruteUtil) GetAllTargetsProcessing ¶
func (b *BruteUtil) GetAllTargetsProcessing() []*targetProcessing
func (*BruteUtil) GetProcessingByTarget ¶
func (*BruteUtil) RemoteProcessingByTarget ¶
func (*BruteUtil) SetResultCallback ¶
func (b *BruteUtil) SetResultCallback(cb BruteItemResultCallback)
func (*BruteUtil) StreamBruteContext ¶
type DefaultServiceAuthInfo ¶
type DefaultServiceAuthInfo struct { ServiceName string DefaultPorts string DefaultUsernames []string DefaultPasswords []string UnAuthVerify func(i *BruteItem) *BruteItemResult BrutePass func(i *BruteItem) *BruteItemResult // contains filtered or unexported fields }
func (*DefaultServiceAuthInfo) GetBruteHandler ¶
func (d *DefaultServiceAuthInfo) GetBruteHandler() BruteCallback
type OptionsAction ¶
type OptionsAction func(util *BruteUtil)
func WithBeforeBruteCallback ¶
func WithBeforeBruteCallback(c func(string) bool) OptionsAction
设置爆破预检查函数
func WithDelayerWaiter ¶
func WithDelayerWaiter(minDelay, maxDelay int) (OptionsAction, error)
这个选项来控制设置 Delayer
func WithResultCallback ¶
func WithResultCallback(callback BruteItemResultCallback) OptionsAction
设置结果回调
func WithTargetTasksConcurrent ¶
func WithTargetTasksConcurrent(targetTasksConcurrent int) OptionsAction
这个选项来控制每个目标最多同时执行多少个爆破任务,默认为 1
func WithTargetsConcurrent ¶
func WithTargetsConcurrent(targetsConcurrent int) OptionsAction
这个选项控制整体的目标并发 默认值为 200
Source Files ¶
Click to show internal directories.
Click to hide internal directories.