Skip to content

Instantly share code, notes, and snippets.

@z3cka
Created September 21, 2016 16:34
Show Gist options
  • Save z3cka/d2aa02749a02e15bb603658f93f3bd92 to your computer and use it in GitHub Desktop.
Save z3cka/d2aa02749a02e15bb603658f93f3bd92 to your computer and use it in GitHub Desktop.
Quick command to generate passwords from https://xkpasswd.net _(w/ jq at `/Applications/jq-osx-amd64` on Mac OS )_
curl 'https://xkpasswd.net/s/index.cgi' -H 'Pragma: no-cache' -H 'Origin: https://xkpasswd.net' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: en-US,en;q=0.8' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' -H 'Accept: */*' -H 'Cache-Control: no-cache' -H 'X-Requested-With: XMLHttpRequest' -H 'Cookie: gsScrollPos=' -H 'Connection: keep-alive' -H 'Referer: https://xkpasswd.net/s/' --data 'a=genpw&n=3&c=%7B%22num_words%22%3A3%2C%22word_length_min%22%3A4%2C%22word_length_max%22%3A8%2C%22case_transform%22%3A%22LOWER%22%2C%22separator_character%22%3A%22NONE%22%2C%22padding_digits_before%22%3A0%2C%22padding_digits_after%22%3A2%2C%22padding_type%22%3A%22NONE%22%2C%22random_increment%22%3A%22AUTO%22%7D' --compressed -k | /Applications/jq-osx-amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment