Skip to content

Instantly share code, notes, and snippets.

View WizardGed's full-sized avatar

Andrew DeMarsh WizardGed

View GitHub Profile
@WizardGed
WizardGed / gist:67da6466a8243c23fb74666cbf14103c
Created May 7, 2017 22:21 — forked from sjmurdoch/gist:1572229
Patch to FreeBSD OpenSSH to log username and password on log-in attempt to invalid user
Index: crypto/openssh/auth-pam.c
===================================================================
--- crypto/openssh/auth-pam.c (revision 229638)
+++ crypto/openssh/auth-pam.c (working copy)
@@ -809,6 +809,15 @@
return (-1);
}
+static void
+sshpam_log_invalid_user(const char *user, const char* pw, int kbdint)
@WizardGed
WizardGed / about:config.md
Last active September 14, 2015 06:28 — forked from haasn/about:config.md
Firefox bullshit removal via about:config

Firefox bullshit removal

Due to the incessant swarm of complete and utter nonsense that has been forcing its way into Firefox over time, I've decided to start collecting my personal list of “must-have” about:config tweaks required to turn Firefox into a functional brower.

WebSockets

These can be used for nefarious purposes and to bypass access restrictions.

network.websocket.enabled=false
@WizardGed
WizardGed / keybase.md
Created July 13, 2014 18:17
keybase.md

Keybase proof

I hereby claim:

  • I am WizardGed on github.
  • I am andrewdemarsh (https://keybase.io/andrewdemarsh) on keybase.
  • I have a public key whose fingerprint is 18CD FCAC 2E50 73F9 E07E 297D D498 3AC4 1D9B CDB5

To claim this, I am signing this object: