Skip to content

Instantly share code, notes, and snippets.

View d3v-null's full-sized avatar

Dev Null d3v-null

View GitHub Profile
@d3v-null
d3v-null / cloak.ovpn
Last active June 28, 2018 00:00
This is an OpenVPN settings file for Cloak. Forked for compatibility the OpenVPN client in ASUS RT routers
client
dev tun
comp-lzo
auth-user-pass
# remote-cert-tls server
server-poll-timeout 10
auth-nocache
auth-retry interact
verb 1
remote openvpn.getcloakvpn.com 443 udp
@d3v-null
d3v-null / snippet-index-decoded.php
Last active November 13, 2018 00:49
Snippets from my analysis of the wp gdpr compliance hack
/home/[redacted]/public_html/wp-content/plugins/shortcoder/.94a90d7a.ico
@d3v-null
d3v-null / .zshrc
Last active May 9, 2019 00:59
My macOS setup. Run commands from setup.sh
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
# ZSH customization
ZSH_THEME="powerlevel9k/powerlevel9k"
COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="yyyy-mm-dd"
plugins=(git, zsh-autosuggestions, zsh-syntx-highlighting, brew, npm, z, colorize, autopep8, cabal, dirhistory, lein, macports, osx, perl, pep8, python, pip, sublime, taskwarrior, wd, vi-mode, zsh_reload)
bindkey -v
source $ZSH/oh-my-zsh.sh
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# Generate messages in background
(while true; do echo "$(vcgencmd measure_volts) $(vcgencmd measure_temp)" | systemd-cat; sleep 1; done)&
# View messages
journalctl -f

My Lab Setup

I used the 2020.1 version of the kali VM. https://support.offensive-security.com/kali-vm/

replace ${IP_WIN10} and ${IP_DEBIAN} with your kali and lab machine IPs

Working on the host machine

I ran Kali in VMWare Fusion (v11.5.6) on MacOS, and used VM shared folders so that I could work mostly with tools in my existing development setup on the (more responsive) host machine. VSCode has some fantastic extension to help you write markdown, and I could SSH into Kali and run TMUX with the excellent inbuilt terminal, meaning most things (those requireing a web gui) could be done without switching between windows much.

%% Live Render https://mermaid-js.github.io/mermaid-live-editor/edit#eyJjb2RlIjoiZ3JhcGggTFJcbiAgICAlJXN1YmdyYXBoIE91dHB1dHNcbiAgICAgICAgY29tcGxleC1jaXJjdWl0LWJvYXJkW0NvbXBsZXggQ2lyY3VpdCBCb2FyZF1cbiAgICAlJWVuZFxuXG4gICAgJSVzdWJncmFwaCBSYXcgTWF0ZXJpYWxzXG4gICAgICAgIGFsdW1pbml1bS1wbGF0ZVtBbHVtaW5pdW0gUGxhdGVdXG4gICAgICAgIGFtbW9uaWFbQW1tb25pYV1cbiAgICAgICAgYXJhbWlkLWZpYmVyW0FyYW1pZCBGaWJlcl1cbiAgICAgICAgYXJvbWF0aWNzW0Fyb21hdGljc11cbiAgICAgICAgYXNoW0FzaF1cbiAgICAgICAgYmVuemVuZVtCZW56ZW5lXVxuICAgICAgICBib3JheFtCb3JheF1cbiAgICAgICAgY2FyYm9uLWRpb3hpZGVbQ2FyYm9uIERpb3hpZGVdXG4gICAgICAgIGNlcmFtaWNbQ2VyYW1pY11cbiAgICAgICAgY2VybWV0W0Nlcm1ldF1cbiAgICAgICAgY2hsb3JpbmVbQ2hsb3JpbmVdXG4gICAgICAgIGNocm9taXVtW0Nocm9taXVtXVxuICAgICAgICBjbGFkZGluZ1tDbGFkZGluZ11cbiAgICAgICAgY29rZVtDb2tlXVxuICAgICAgICBjb3BwZXItY2FibGVbQ29wcGVyIENhYmxlXVxuICAgICAgICBjb3BwZXItY29hdGluZ1tDb3BwZXIgQ29hdGluZ11cbiAgICAgICAgY29wcGVyLXBsYXRlW0NvcHBlciBQbGF0ZV1cbiAgICAgICAgY3J1c2hlZC1xdWFydHpbQ3J1c2hlZCBRdWFydHpdXG4gICAgICAgIGZpYmVyYm9hcmRbRmli
@d3v-null
d3v-null / instructions.md
Last active December 25, 2021 19:30
Safely dual boot macOS Sierra with Filevault2 and Debian Stretch with rEFInd and cross-mounting

Dual Boot encrypted macOS Sierra and Debian Stretch

Rationale

I wanted a safe, encrypted Debian install, parallel to my existing macOS install that I could nuke trivially at a moment's notice and would leave very little evidence behind. In my setup, if I zero'd partitions sda4->sda7 (can be done trivially from macOS or Debian), the next time I rebooted, it would revert to the original EFI System Partition, and I would be greeted by an unblemished factory macOS bootloader. Even if I was asked to decrypt my OS at customs, there would be no evidence of a previous debian install.

Warning

Do not attempt this guide if you are not familiar with linux. YOU WILL NUKE YOUR COMPUTER AND EVERYONE YOU LOVE WILL DIE. Please first read through the whole guide and make sure you are familiar with the utilities we will be using.

@d3v-null
d3v-null / led_ic_comparison.md
Last active February 11, 2022 16:49
Comparison of LED IC Types: APA102 APA102C APA104 APA107 APA201 CS2803 GS2808 HD107S INK1003 LPD1886 LDP8806 LPD6803 MBI6020 MY9221 MY9231 P9813 PL9823 SK6812 SK6822 SK9822 SM16703 SM16716 TLS3001 TM1803 TM1804 TM1809 TM1812 TM1814 TM1829 UCS1903 UCS2903 WS2801 WS2811 WS2812 WS2812B WS2812B Eco WS2813 WS2815 WS2818 WS2821A

Reminder, generate this with:

tabulate -s '\t' -f 'github' ~/Downloads/LED\ _\ Controller\ _\ Protocol\ Comparison\ -\ LED\ Types.tsv | pbcopy

Note: I do not take responsibility for the accuracy of this data, please let me know if you spot any errors and I can update

| LED Type | Volts | Power (W) | Pins | Data Rate (bps) | LED PWM (Hz) | PL | FL | Notes / Extra Features | Pros | Cons | Datasheet |