github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/brutecheck/check/uint64switch.go (about) 1 package check 2 3 import "encoding/binary" 4 5 func Uint64Switch(name string) bool { 6 var key [8]byte 7 copy(key[:], name) 8 h := binary.LittleEndian.Uint64(key[:]) 9 switch h { 10 case 461195539042: 11 return len(name) == 5 12 case 1702060387: 13 return len(name) == 4 14 case 1851877475: 15 return len(name) == 4 16 case 500152823651: 17 return len(name) == 5 18 case 7310870969309884259: 19 return len(name) == 8 20 case 32770348699510116: 21 return len(name) == 7 22 case 491327481188: 23 return len(name) == 5 24 case 1702063205: 25 return len(name) == 4 26 case 8030595934799552870: 27 return name[8:] == "ugh" 28 case 7499622: 29 return len(name) == 3 30 case 1668183398: 31 return len(name) == 4 32 case 28519: 33 return len(name) == 2 34 case 1869901671: 35 return len(name) == 4 36 case 26217: 37 return len(name) == 2 38 case 128034844732777: 39 return len(name) == 6 40 case 7161117524010233449: 41 return name[8:] == "e" 42 case 7364973: 43 return len(name) == 3 44 case 28542640758940016: 45 return len(name) == 7 46 case 435526984050: 47 return len(name) == 5 48 case 121437875889522: 49 return len(name) == 6 50 case 127970252186995: 51 return len(name) == 6 52 case 127970521019507: 53 return len(name) == 6 54 case 114776364119923: 55 return len(name) == 6 56 case 1701869940: 57 return len(name) == 4 58 case 7496054: 59 return len(name) == 3 60 } 61 return false 62 }