From b21881adb5582c3a44c450983b244d8d41d428d7 Mon Sep 17 00:00:00 2001 From: raul Date: Tue, 19 Mar 2024 10:38:26 +0100 Subject: [PATCH] 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 --- main.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index 4c3082b..b9479c4 100644 --- a/main.go +++ b/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) } }