Skip to content

Instantly share code, notes, and snippets.

@Neo23x0
Created July 2, 2020 14:18
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 Neo23x0/276e45ee1d747c6db672363b69a6b491 to your computer and use it in GitHub Desktop.
Save Neo23x0/276e45ee1d747c6db672363b69a6b491 to your computer and use it in GitHub Desktop.
Get All Possible Variations of Casings for a String
import itertools
s = "cmd.exe"
list(map(''.join, itertools.product(*zip(s.upper(), s.lower()))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment