Skip to content

Instantly share code, notes, and snippets.

@elderica
Created February 6, 2022 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elderica/1a3f6e96013dd25b4b3c5175f3206c0c to your computer and use it in GitHub Desktop.
Save elderica/1a3f6e96013dd25b4b3c5175f3206c0c to your computer and use it in GitHub Desktop.
#lang racket/base
(require [only-in file/sha1 bytes->hex-string])
(define hex (bytes->hex-string (sha256-bytes #"FREEMAN")))
(define part-of-key
(list->string (map (lambda (i) (string-ref hex i))
(list 4 5 3 6 2 7 1 8))))
(displayln (string-append "picoCTF{1n_7h3_|<3y_of_" part-of-key "}"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment