Skip to content

Commit

Permalink
2.14 Fixed the exception on empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
lexansoft committed Jul 4, 2017
1 parent 9a62fb9 commit 75527f6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/ethcracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func main() {

if *v > 0 {
println( "------------------------------------------------")
println( "Ethereum Password Cracker v2.13")
println( "Ethereum Password Cracker v2.14")
println( "Author: @AlexNa ")
println( "------------------------------------------------")
println( "Private Key File:", *pk )
Expand Down Expand Up @@ -179,7 +179,7 @@ func main() {

var tf TEMP_FLAGS

if strings.HasPrefix( templ[0], "~" ) {
if len( templ ) > 0 && strings.HasPrefix( templ[0], "~" ) {
if len( templ ) == 1 { continue } //nothing but flags...

tf.UseAlways = strings.Index( templ[0], "a" ) > 0
Expand All @@ -200,9 +200,10 @@ func main() {
}
}


templates = append( templates, templ )
templates_flags = append( templates_flags, tf )
if len( templ ) > 0 {
templates = append( templates, templ )
templates_flags = append( templates_flags, tf )
}

//println( "templates_flags:", len( templates_flags ) - 1, tf.UseAlways )
}
Expand Down

0 comments on commit 75527f6

Please sign in to comment.