Skip to content

Instantly share code, notes, and snippets.

View lawndoc's full-sized avatar
🤓
Learning

C.J. May lawndoc

🤓
Learning
View GitHub Profile
@GermanAizek
GermanAizek / README.md
Created March 18, 2024 15:19
GPU benchmark rating Hashcat (WPA-PBKDF2-PMKID+EAPOL)

Hash-Mode 22000 (WPA-PBKDF2-PMKID+EAPOL)

Model Brand Hashrate (H/s)
Quadro NVS 135M 279
GeForce 8200M G 328
GeForce G100 510
GeForce 9200M GS 511
GeForce 9300 GS 543
GeForce 9300M GS 584
@mikegerber
mikegerber / Fix WSL2 vs VPN networking.md
Last active November 13, 2024 13:21
Fix WSL2 vs VPN networking

The problem

WSL2 uses a random network from the 172.16.0.0/12 RFC1918 private IP address block. And our VPN uses that address block, too, with a route metric of 1 (= most preferred.)

This breaks networking for WSL2. Meh!

The solution

While messing around with the interface/route metric of the VPN network may work around the problem, it also reduces the priority of the VPN. We do not really want this. Additionally, changing the interface metric does not seem to be permanent, so it requires more work when it breaks again.

@ChuckFrey
ChuckFrey / RansomwareExtensions.txt
Last active October 21, 2024 08:53
Possible file extensions to open with notepad.exe to reduce the risk of ransomware executing
You can create a GPO to test changing the default behavior of the following extensions to not behave as a script
but rather as a benign text file opened in notepad.
js
wsh
vbs
wsc
sct
jse
wsf
@machuu
machuu / WSL2_VPN_Workaround_Instructions.md
Last active November 16, 2024 13:12
Workaround for WSL2 network broken on VPN

Overview

Internet connection and DNS routing are broken from WSL2 instances, when some VPNs are active.

The root cause seems to be that WSL2 and the VPN use the same IP address block, and the VPN routing clobbers WSL2's network routing.

This problem is tracked in multiple microsoft/WSL issues including, but not limited to:

@tuantmb
tuantmb / breachcompilation.txt
Created December 26, 2017 16:22
1.4 billion password breach compilation wordlist
wordlist created from original 41G stash via:
grep -rohP '(?<=:).*$' | uniq > breachcompilation.txt
Then, compressed with:
7z a breachcompilation.txt.7z breachcompilation.txt
Size:
@VojtechStep
VojtechStep / Config.ps1
Last active October 5, 2022 05:27
Powerline-style PowerShell prompt (git support and extensible)
#If this isn't the user using the shell, username@host will be displayed (if enabled)
$DEFAULT_USER='Adalbert'
#True to print username@host event if it's the default user
$PRINT_DEFAULT_USER=$FALSE
#Glyphs
$SEGMENT_DELIMETER_GLYPH=[char]0xE0B0 # î‚°
$PREV_CMD_FAIL_GLYPH=[char]0x2718 # ✘
$BGTASK_GLYPH=[char]0x2699 # âš™
@gene1wood
gene1wood / config_file_and_command_line_arguments.py
Last active July 2, 2024 16:45
An example of how to use a config file which is overridden by command line arguments in Python.
#!/usr/bin/env python
import ConfigParser
import argparse
import logging
import os
def type_loglevel(level):
try:
result = getattr(logging, level.upper())