Skip to content

Instantly share code, notes, and snippets.

View goude's full-sized avatar

Daniel Goude goude

View GitHub Profile
@goude
goude / gist:c523283fcd58192efede97c5ea0a75eb
Last active December 11, 2020 08:35
John the Ripper Plaintext Password
Q: Given a plaintext password, how do I create a password file that john the ripper can use?
A: See https://unix.stackexchange.com/questions/81240/manually-generate-password-for-etc-shadow
```
openssl passwd -6 -salt xyz yourpass
mkpasswd --method=SHA-512 --stdin
```
how do i create plain text password to use with john the ripper

WSL 2 Cisco AnyConnect Networking Workaround

Overview

WSL 2 uses a Hyper-V Virtual Network adapter. Network connectivity works without any issue when a VPN is not in use. However when a Cisco AnyConnect VPN session is established Firewall Rules and Routes are added which breaks connectivity within the WSL 2 VM. This issue is tracked WSL/issues/4277

Below outline steps to automatically configure the Interface metric on VPN connect and update DNS settings (/etc/resolv.conf) on connect/disconnect.

Manual Configuration

Set Interface Metrics

On the screen, there is an adress below the QR code. Type this address into a work computer.