Skip to content

Instantly share code, notes, and snippets.

Created July 20, 2015 21:19
What would you like to do?
package main
import (
func main() {
var cookie [4]uint32
cookieStr := os.Args[1]
data, err := base64.StdEncoding.DecodeString(cookieStr)
if err != nil {
b := []byte(data)
buf := bytes.NewReader(b)
err = binary.Read(buf, binary.LittleEndian, &cookie)
if err != nil {
fmt.Printf("%08X%08X%08X%08X\n", cookie[0], cookie[1], cookie[2], cookie[3])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment