BlackthornYugen
Follow
Backend Java Developer with an interest in all things security. π
-
ETAS Embedded Systems Canada Inc
- Waterloo, Ontario, Canada
- https://fosstodon.org/@jsteelkw
Pinned Loading
-
-
Generate a few passwords for haproxy...
Generate a few passwords for haproxy (or other things that use unix style passwords) 1#!/usr/bin/env bash
2# Need a recent openssl to use -6 option (sha512). Either update openssl or change to -1 or similar if it doesn't work
3shuf -n30 /usr/share/dict/words | tr '\n' ' ' | fold -s -w 48 | tr ' ' ';' | openssl passwd -6 -noverify -table -stdin
4# Example Output:
5#carrotwood;sacerdotalist;unfallible;homeliness; $6$xGj40hGX9L0NyToC$hqPn25jIFzS2vzfEVpsmzbDe3XeXtUkTJPHKBO7SI6FTkub4gqUWq5dpB8wfqkEoQClTmWkuiuN8K8eYIcfXL1
-
Use yq, jq, and dig +yaml to resolve...
Use yq, jq, and dig +yaml to resolve a bunch of domains with nice output. 1# Make a neato jq filter that just gives us question and answer sections.
2JQ_FILTER='.[].message.response_message_data | [.QUESTION_SECTION[], ( .ANSWER_SECTION[]? | split(" ")[-1])]'
34# What are my name servers for each of these?
5for domain in jskw jsteel jsteelkw ; do for tld in ca dev ; do dig ${domain}.${tld} +yaml -tns | yq $JQ_FILTER ; done ; done # SHOW NS
-
Send email if a server isn't using t...
Send email if a server isn't using the latest certificate. -
advent-of-code-solved
advent-of-code-solved PublicMy solutions to the advent of code puzzles
Roff 1
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.