Skip to content
View dwallraff's full-sized avatar

Block or report dwallraff

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Commands to create a self-signed SSL... Commands to create a self-signed SSL cert or CSRs using the openssl conf from https://gist.github.com/dwallraff/c1ed31291ac7cf19304b
    1
    ##### Commands to generate SSL certs/artifcts
    2
    
                  
    3
    # Download the temp.cnf file using the wget command below
    4
    # Edit temp.cnf and add your information
    5
    # Run the uncommented out commands to generate a self-signed cert (cert.pem) and private key (keyfile.pem)
  2. Use netcat to send syslog messages Use netcat to send syslog messages
    1
    # Here’s how to create UDP syslog messages via nc, netcat:
    2
    echo<14>_sourcehost_ messagetext’ | nc -v -u -w 0 _syslog-host_ 514
  3. Generate random passwords with urandom Generate random passwords with urandom
    1
    cat /dev/urandom | tr -dc 'a-zA-Z0-9-_!@#$%^&*()_+{}|:<>?=' | fold -w 32 | head -n 5
    2
    
                  
    3
    # cat /dev/urandom | tr -dc 'a-zA-Z0-9._!@#$%^&*()' | fold -w 8 | head -n 500000 > wordlist.txt
    4
    # cat /dev/urandom | tr -dc 'a-zA-Z0-9-_!@#$%^&*()_+{}|:<>?=' | fold -w 12 | head -n 4
    5
    # cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1
  4. Create and mount a loopback filesystem Create and mount a loopback filesystem
    1
    #!/usr/bin/env bash
    2
    
                  
    3
    ## Loopback Filesystem
    4
    # This script will create and mount a loopback filesystem
    5
    # Useful if you need to limit director(ies) by size