Skip to content

Instantly share code, notes, and snippets.

@dushankw
dushankw / MITM -SSL-Proxies.md
Created August 13, 2018 04:36 — forked from jeremiahsnapp/MITM -SSL-Proxies.md
Man In The Middle (MITM) SSL Proxies - Simple ways to see traffic between an SSL server and client in clear text.

HTTP(S) specific MITM SSL Proxies

mitmproxy

mitmproxy is an excellent console app written in Python.

It is easy to use on Linux and OS X.

Use brew install mitmproxy to install it on OS X.

@dushankw
dushankw / inline_file.rb
Created September 14, 2020 04:01 — forked from pda/inline_file.rb
A basic !InlineFile YAML tag/function resolver for inlining Lambda into CloudFormation; assumes two-space indentation
PATTERN = %r{
^
(?<indent>\s*)
(?<key>\S+):
\s*
!InlineFile
\s*
(?<file>.*)
$
}x
@dushankw
dushankw / chrome_websocket_messages.py
Created March 16, 2024 03:24 — forked from achmel/chrome_websocket_messages.py
Tiny parser to get websocket messages from Google Chrome Developer Tools > Network > Export HAR...
# !/usr/bin/env python3
# encoding: utf-8
import json
file_name = 'websocket.har'
f = open(file_name)
j = json.load(f)
entries = j['log']['entries']
for e in entries:
if e['_resourceType'] == 'websocket' and '_webSocketMessages' in e.keys():
@dushankw
dushankw / bootable-win-on-mac.md
Created November 2, 2024 14:35 — forked from acarril/bootable-win-on-mac.md
Create a bootable Windows USB using macOS

For some reason, it is surprisingly hard to create a bootable Windows USB using macOS. These are my steps for doing so, which have worked for me in macOS Monterey (12.6.1) for Windows 10 and 11. After following these steps, you should have a bootable Windows USB drive.

1. Download a Windows disc image (i.e. ISO file)

You can download Windows 10 or Windows 11 directly from Microsoft.

2. Identify your USB drive

After plugging the drive to your machine, identify the name of the USB device using diskutil list, which should return an output like the one below. In my case, the correct disk name is disk2.