-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprint_welcome.go
56 lines (44 loc) · 1.66 KB
/
print_welcome.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package main
import (
"fmt"
"log"
"os"
)
// version func
func versionFunc() {
fmt.Fprintln(os.Stderr, "Cyclone's Yescrypt Cracker v0.2.0; 2025-03-06\nhttps://github.com/cyclone-github/yescrypt_crack\n ")
}
// help func
func helpFunc() {
versionFunc()
str := `Example Usage:
-w {wordlist} (omit -w to read from stdin)
-h {yescrypt_hash_file}
-o {output} (omit -o to write to stdout)
-t {cpu threads}
-s {print status every nth sec)
-version (version info)
-help (usage instructions)
./yescrypt_cracker.bin -h {yescrypt_hash_file} -w {wordlist} -o {output} -t {cpu threads} -s {print status every nth sec}
./yescrypt_cracker.bin -h hashes.txt -w wordlist.txt -o cracked.txt -t 16 -s 10
cat wordlist | ./yescrypt_cracker.bin -h hashes.txt
./yescrypt_cracker.bin -h hashes.txt -w wordlist.txt -o output.txt`
fmt.Fprintln(os.Stderr, str)
}
// print welcome screen
func printWelcomeScreen(hashFileFlag, wordlistFileFlag *string, totalHashCount, numThreads int) {
fmt.Fprintln(os.Stderr, " -------------------------------------------------- ")
fmt.Fprintln(os.Stderr, "| Cyclone's Yescrypt Cracker |")
fmt.Fprintln(os.Stderr, "| https://github.com/cyclone-github/yescrypt_crack |")
fmt.Fprintln(os.Stderr, " -------------------------------------------------- ")
fmt.Fprintln(os.Stderr)
fmt.Fprintf(os.Stderr, "Hash file:\t%s\n", *hashFileFlag)
fmt.Fprintf(os.Stderr, "Total Hashes:\t%d\n", totalHashCount)
fmt.Fprintf(os.Stderr, "CPU Threads:\t%d\n", numThreads)
if *wordlistFileFlag == "" {
fmt.Fprintf(os.Stderr, "Wordlist:\tReading from stdin\n")
} else {
fmt.Fprintf(os.Stderr, "Wordlist:\t%s\n", *wordlistFileFlag)
}
log.Println("Working...")
}