Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
lexansoft committed Mar 28, 2016
1 parent 6c3abd9 commit 830b3e0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion run.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

go run src/ethcracker.go -pk ~/test/pk.txt -t ~/test/templates.txt -keep_order -threads 4 -min_len 1 -max_len 40 -v 1 -start_from 0 -dump ~/test/v.txt -re 1
go run src/ethcracker.go -pk ~/test/pk.txt -t ~/test/ethcracker-pwd3.txt -keep_order -threads 4 -min_len 1 -max_len 40 -v 1 -start_from 0 -dump ~/test/v.txt -re 1
#go run src/ethcracker.go -pk ~/test/ethwallet-q.json -t ~/test/pattern.txt -presale -threads 4 -min_len 1 -v 1 -start_from 0
12 changes: 12 additions & 0 deletions src/ethcracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ var chans []chan string
var wg sync.WaitGroup
var f_dump *os.File


func fact( x int) int {
if x == 0 {
return 1
Expand Down Expand Up @@ -117,6 +118,8 @@ func main() {
}

templates = make( [][]string, 0 )
templates_flags = make( TEMP_FLAGS, 0 )

f, err := os.Open( *t )
if err != nil { panic( err ) }

Expand All @@ -129,7 +132,16 @@ func main() {
tl[i] = strings.Replace( tl[i], "\\s", " ", -1 )
}

var tf TEMP_FLAGS

if strings.HasPrefix( tl[0], "~" ) {
if len( tl ) == 1 continue //nothing but flag...

tf.UseAlways = strings.Index( tl[0], "a" ) >= 0
}

templates = append( templates, tl )
templates_flags = append( templates_flags, tf )
}
}

Expand Down

0 comments on commit 830b3e0

Please sign in to comment.