Skip to content

Instantly share code, notes, and snippets.

View CBonnell's full-sized avatar

Corey Bonnell CBonnell

  • Pittsburgh, PA
  • 21:58 (UTC -04:00)
View GitHub Profile
// This will open up a prompt for text to send to a console session on digital ocean
// Useful for long passwords
(function () {
var t = prompt("Enter text to be sent to console, (This wont send the enter keystroke)").split("");
function f() {
var character = t.shift();
var i=[];
var code = character.charCodeAt();
var needs_shift = "!@#$%^&*()_+{}:\"<>?~|".indexOf(character) !== -1
@vanbroup
vanbroup / ca-hierarchy-ocsp-test.go
Last active January 20, 2024 10:54
Script to create a CA hierarchy with delegated OCSP responder certificates to test the effects on different combinations of OCSP Signing EKU settings
// certutil -urlcache * delete
// certutil -verify -user -urlfetch "Server Certificate.cer"
package main
import (
"crypto"
"crypto/rand"
"crypto/rsa"
"crypto/tls"
"crypto/x509"