https://github.com/hlts2/gobf
Brute force string generation
https://github.com/hlts2/gobf
brute-force bruteforce bruteforce-password-cracker golang library penetration-testing security
Last synced: 11 months ago
JSON representation
Brute force string generation
- Host: GitHub
- URL: https://github.com/hlts2/gobf
- Owner: hlts2
- License: mit
- Created: 2021-02-12T04:19:50.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-17T10:50:25.000Z (over 5 years ago)
- Last Synced: 2025-02-02T15:11:44.122Z (over 1 year ago)
- Topics: brute-force, bruteforce, bruteforce-password-cracker, golang, library, penetration-testing, security
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gobf
[](https://goreportcard.com/report/github.com/hlts2/gobf)
[](http://godoc.org/github.com/hlts2/gobf)
gobf is a simple library that generates brute force string patterns.
## Requirement
Go 1.15
## Installing
```
go get github.com/hlts2/gobf
```
## Example
```go
package main
import (
"context"
"log"
"github.com/hlts2/gobf"
)
func main() {
bf, err := gobf.New(
gobf.WithNumber(true),
gobf.WithUpper(true),
gobf.WithLower(true),
gobf.WithSize(4),
gobf.WithConcrencyLimit(1000000),
)
if err != nil {
log.Fatal(err)
}
log.Println("start to search pattern: s3Df")
err = bf.Do(context.Background(), func(pattern string) {
if pattern == "s3Df" {
log.Printf("find: %s\n", pattern)
}
})
if err != nil {
log.Fatal(err)
}
}
```
### Option
You can use options to change the type of string generated.
```go
// Generate a pattern of four-letter lowercase and number combinations.
bf, err := gobf.New(
gobf.WithNumber(true),
// gobf.WithUpper(true),
gobf.WithLower(true),
gobf.WithSize(4),
)
```
## Contribution
1. Fork it ( https://github.com/hlts2/gobf/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create new Pull Request
## Author
[hlts2](https://github.com/hlts2)