Skip to content

Instantly share code, notes, and snippets.

View romannekhor's full-sized avatar
🍰
The cake is a lie

Roman N. romannekhor

🍰
The cake is a lie
View GitHub Profile
@romannekhor
romannekhor / tcpdump__top_urls.md
Created July 23, 2018 17:42
How to extract top URLs from intercepted traffic (tcpdump + tshark)

How to extract top URLs from intercepted traffic (tcpdump + tshark)

  1. Intercept live TCP traffic using tcpdump.
# Record 1 minute of port 80 traffic from eth0 NIC
sudo timeout 1m tcpdump -i eth0 'port 80' -w 1minute_traffic.pcap
@romannekhor
romannekhor / make_bootable_elcap_iso.sh
Last active October 7, 2020 12:08
Script to make bootable El Capitan ISO for VirtualBox
#!/bin/bash
set -ex
# thx to http://apple.stackexchange.com/a/233788
# Create bootable El Capitan ISO
# Mount the installer image
hdiutil attach "/Applications/Install OS X El Capitan.app/Contents/SharedSupport/InstallESD.dmg" -noverify -nobrowse -mountpoint /Volumes/esd