Skip to content

Instantly share code, notes, and snippets.

@MartinMSPedersen
Created August 11, 2019 01:00
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 MartinMSPedersen/5d182d58738a50dc5cf7c7e2637bade5 to your computer and use it in GitHub Desktop.
Save MartinMSPedersen/5d182d58738a50dc5cf7c7e2637bade5 to your computer and use it in GitHub Desktop.
library(digest)
DEBUG <- FALSE
while(TRUE) {
flag <- paste0(c(sample(c(letters,LETTERS,0:9,":","_","+"), 8, replace = TRUE)), collapse = "")
shasum <- substr(digest(flag,"md5", serialize=FALSE), 27,32)
cat(flag,shasum,"\n")
}
@MartinMSPedersen
Copy link
Author

Generate flags and last 6 hexdigits of md5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment