Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
refactor: README
Browse files Browse the repository at this point in the history
  • Loading branch information
niudaii committed Sep 2, 2022
1 parent 80e93f1 commit 7b2b409
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<a href="https://github.com/niudaii/crack/releases">
<img src="https://img.shields.io/github/release/niudaii/crack/all.svg?style=flat-square">
</a>
<a href="https://github.com/Becivells/iconhash/releases">
<a href="https://github.com/niudaii/crack/releases">
<img src="https://img.shields.io/github/downloads/niudaii/crack/total">
</a>
</p>
Expand Down
6 changes: 3 additions & 3 deletions internal/runner/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ func (o *Options) configureOutput() {

func (o *Options) validateOptions() error {
if o.Input == "" && o.InputFile == "" {
return fmt.Errorf("no service input provided")
return fmt.Errorf("No service input provided")
}
if o.Debug && o.Silent {
return fmt.Errorf("both debug and silent mode specified")
return fmt.Errorf("Both debug and silent mode specified")
}
if o.Delay < 0 {
return fmt.Errorf("delay can't be negative")
return fmt.Errorf("Delay can't be negative")
}

return nil
Expand Down
2 changes: 1 addition & 1 deletion internal/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func (r *Runner) Run() {
if len(results) > 0 {
gologger.Info().Msgf("爆破成功: %v", len(results))
for _, result := range results {
gologger.Info().Msgf("%v -> %v %v", result.Protocol, result.Addr, result.UserPass)
gologger.Print().Msgf("%v -> %v %v", result.Protocol, result.Addr, result.UserPass)
}
}
}

0 comments on commit 7b2b409

Please sign in to comment.