Skip to content

Instantly share code, notes, and snippets.

View krejac's full-sized avatar

Kresten Jacobsen krejac

View GitHub Profile
@krejac
krejac / keybase.md
Created December 20, 2019 13:06
Keybase verification

bfnfn

When Microsoft chooses to release security updates for OS's that are way out of support security specialists grabs a cup of coffee and starts reading. BlueKeep (also known as CVE-2019-0708) is a flaw in Microsofts Remote Desktop Services that allows an attacker to gain full control over an affected system.

The vulnerability occurs during pre-authorization, and has the potential to run arbitrary malicious code in the "NT Authority\SYSTEM" user security context. Which means that you don't need to know any credentials to exploit the flaw and that you get to execute code as a privileged user.

Oh, and Microsoft says that it's potentially wormable like WannaCry, meaning that someone could write code that makes this self-replicating, making it possible to spread throughout a (inter-)network without intervention.

The vulnerable systems are Windows Server 2003, Windows XP, Windows Vista, Windo

@krejac
krejac / SOLIPSISTISK-OFFENTLIG-LICENS.TXT
Last active December 19, 2018 17:54
SOLIPSISTISK OFFENTLIG LICENS
SOLIPSISTISK OFFENTLIG LICENS
Version 1.0, april 2013
Alle rettigheder reserveret (R) 2015
Det er tilladt for alle at kopiere og distribuere uændrede udgaver
af dette licensdokument. Modificerede udgaver af dette dokument er
tilladt for så vidt gælder, at du frasiger BÅDE originalen OG din
kopi som blotte sansedata uden verificerbare årsager uden for sindet.
@krejac
krejac / sshtomymac.sh
Created March 22, 2017 12:47
ssh to an iCloud connected mac using Back To My Mac
#!/bin/bash
ACCOUNT=$(echo "show Setup:/Network/BackToMyMac" | scutil | sed -n 's/.* : *\(.*\).$/\1/p')
if [ ! -n "$1" ]; then
echo "ssh to which Mac? "
read MAC
# Uncomment the following two lines if you need to login to the remote host with a different user than the current local user.
#echo "As who? "

Keybase proof

I hereby claim:

  • I am krestenjacobsen on github.
  • I am krestenjacobsen (https://keybase.io/krestenjacobsen) on keybase.
  • I have a public key ASAG0FwwXo5AfqSL0cbdhGZIQmO-78-vPLl10pPEfoIlzAo

To claim this, I am signing this object:

@krejac
krejac / hent_skam_1-3.sh
Created February 14, 2017 18:12
Hent skam fra dr.dk
#!/bin/bash
###########################
# OBS: Kræver youtube-dl #
###########################
EPISODE=1
while [ $EPISODE -lt 12 ]; do
youtube-dl https://www.dr.dk/tv/se/skam/skam-2/skam-$EPISODE-11
let EPISODE=EPISODE+1
@krejac
krejac / .osx
Created December 2, 2015 13:59
# .osx
# Highly opinionated OS X specific configuration
###############################################################################
# Installing apps #
###############################################################################
# Install Xcode cli-tools
xcode-select --install
# .bash_logout
# Executed after logout of bash shells
clear
# .bash_profile
# Sourced by .bash_profile
# Shell prompt based on the Solarized Dark theme.
# More or less by Mathias Bynens. Heavily inspired by @necolas’s prompt: https://github.com/necolas/dotfiles
# iTerm → Profiles → Text → use 13pt Monaco with 1.1 vertical spacing.
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM='gnome-256color';
elif infocmp xterm-256color >/dev/null 2>&1; then
# .bash_aliases
# Sourced by .bash_profile
# Easier navigation
alias ~="cd ~" # Home
alias -- -="cd -" # Last used dir
# Always start vmware horizon view in detached state directing standard out to /dev/null
alias vmware-view="vmware-view </dev/null &>/dev/null &"
# v for vmware-view