Basic functionality finished
It's not the most effective way of cracking the password, but my CPU/GPU don't have OpenCL support so HashCat is off the table
This commit is contained in:
parent
c2b4c2493d
commit
b21881adb5
13
main.go
13
main.go
|
@ -5,6 +5,7 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
"strconv"
|
||||
//"time"
|
||||
)
|
||||
|
||||
// {firstname}_{firstname backwards}_{randomly generated integer between 1 and 1,000,000,000}
|
||||
|
@ -42,12 +43,12 @@ func writer(name string, low int, high int) {
|
|||
defer file.Close()
|
||||
|
||||
reverseName := reverseString(name)
|
||||
fmt.Println(name, reverseName)
|
||||
os.Exit(2)
|
||||
|
||||
for i := low; i < high; i++ {
|
||||
//nameToWrite := name
|
||||
file.WriteString(name)
|
||||
nameToWrite := fmt.Sprintf("%v_%v_", name, reverseName)
|
||||
//fmt.Println(name, reverseName, nameToWrite)
|
||||
|
||||
for i := low; i <= high; i++ {
|
||||
fmt.Printf("Writing \"%v%v\" to passwords.txt...\n", nameToWrite, i)
|
||||
file.WriteString(nameToWrite + fmt.Sprintln(i))
|
||||
//time.Sleep(time.Millisecond * 50)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue