Skip to content

Instantly share code, notes, and snippets.

Created July 20, 2015 21:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save debedb/b88ac06149cbad75b4de to your computer and use it in GitHub Desktop.
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