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"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
//"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// {firstname}_{firstname backwards}_{randomly generated integer between 1 and 1,000,000,000}
|
// {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()
|
defer file.Close()
|
||||||
|
|
||||||
reverseName := reverseString(name)
|
reverseName := reverseString(name)
|
||||||
fmt.Println(name, reverseName)
|
nameToWrite := fmt.Sprintf("%v_%v_", name, reverseName)
|
||||||
os.Exit(2)
|
//fmt.Println(name, reverseName, nameToWrite)
|
||||||
|
|
||||||
for i := low; i < high; i++ {
|
|
||||||
//nameToWrite := name
|
|
||||||
file.WriteString(name)
|
|
||||||
|
|
||||||
|
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