Compare commits
No commits in common. "c67d4dbff1c4dbb200ea4ec7d6e5d73a71bf9279" and "66038355fac8da07ff86d5d2c3a0fdc8988d49d3" have entirely different histories.
c67d4dbff1
...
66038355fa
4
main.go
4
main.go
|
@ -92,7 +92,7 @@ func decryptAESCBC(p string, enc string) ([]byte, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !bytes.Equal(tmp[:8], []byte{0x53, 0x61, 0x6c, 0x74, 0x65, 0x64, 0x5f, 0x5f}) {
|
if !bytes.Equal(tmp[:8], []byte{0x53, 0x61, 0x6c, 0x74, 0x65, 0x64, 0x5f, 0x5f}) {
|
||||||
return []byte{}, errors.New("magic not found")
|
return []byte{}, errors.New("Magic not found")
|
||||||
}
|
}
|
||||||
|
|
||||||
key, iv := deriveKeyFromPassword(p, tmp[8:16])
|
key, iv := deriveKeyFromPassword(p, tmp[8:16])
|
||||||
|
@ -257,7 +257,7 @@ func main() {
|
||||||
flag.StringVar(&dbf, "d", "", "Database file")
|
flag.StringVar(&dbf, "d", "", "Database file")
|
||||||
flag.StringVar(&sentry, "e", "", "Select entry")
|
flag.StringVar(&sentry, "e", "", "Select entry")
|
||||||
flag.BoolVar(&firefox, "f", false, "Get tokens from Firefox Authenticator Extension module")
|
flag.BoolVar(&firefox, "f", false, "Get tokens from Firefox Authenticator Extension module")
|
||||||
flag.StringVar(&passwd, "p", "", "Database password")
|
flag.StringVar(&passwd, "p", "", "Database file")
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
if firefox || dbf != "" {
|
if firefox || dbf != "" {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user