Skip to content

Instantly share code, notes, and snippets.

! vim:syntax=cisco
hostname HQ_S1
banner motd #Warning unauthorized access is not allowed#
! Hardening
no service finger
no service pad
no service udp-small-servers
no service tcp-small-servers
service tcp-keepalives-in
@404d
404d / bkpctf16_lilyflac.mkd
Created March 8, 2016 12:25 — forked from Taqiyeddine/bkpctf16_lilyflac
Writeup for lily.flac of BKPCTF 2016

At first I thought this was a DSP problem. It wasn't. The solution was much simpler.

To start, I listened to the entirety of the song. It's not quite everyone's favorite genre, but I rather enjoyed it. I noticed a short burst of static at the beginning. Static typically means data, but I figured I'd look for other patterns.

Some GNU Radio later showed that there were no obvious patters in the spectra of the signal or in the relation of the right and left channels.

Initially, I incorrectly converted the file to a raw type. In the converted file, there was obviously some data at the very beginning in the burst of static, but it wasn't readable as anything.

I re-did the conversion to raw and looked again. The static was an ELF for linux x86_64. Thinking it couldn't be that easy, I threw it into IDA. It's a binary that grabs samples from the raw audio and prints the samples out as characters.

Enabling screenshots in Plex Home Theater

  1. Close PHT if it is launched
  2. Open ~/Library/Application Support/Plex Home Theater/userdata/guisettings.xml.
  3. Find the XML node debug -> screenshotpath
  4. Set node value to be the folder you want.
  5. Save and launch PHT.

Screenshot keybinding for Apple Remote

This will make the center remote button take a screenshot when in fullscreen video (the video player). Regular remote functionality should be the same, and at least my remote already had two play/pause buttons

@404d
404d / STATEMENT
Last active August 29, 2015 14:22
PGP
Right på tide å komme i gang med PGP.<br />
`4AAA 4FC6 230E 87F5`
<https://pgp.mit.edu/pks/lookup?search=0x4AAA4FC6230E87F5&op=index> <br />
<http://simen.lybekk.no/pgp> <br />
<https://keybase.io/404d>
Denne posten og en signatur av innholdet er tiljengelig på [gist.github.com](https://gist.github.com/404d/f12190b0d2f764eefb50)

Keybase proof

I hereby claim:

  • I am 404d on github.
  • I am 404d (https://keybase.io/404d) on keybase.
  • I have a public key whose fingerprint is 78B4 A906 810B 1DE1 F315 003B 4AAA 4FC6 230E 87F5

To claim this, I am signing this object:

@404d
404d / krig.py
Last active December 14, 2015 12:48
A Python script playing the cardgame "War"
# -*- encoding: utf-8 -*-
# ^ Give me invincibility, give me hope,
# give me the ability to use my fucking Å
from random import shuffle, randrange
import re
import sys
import os
"""
Krig, det gode, gamle kortspillet. Nå i slangeform!