Skip to content

Instantly share code, notes, and snippets.

@Bottersnike
Bottersnike / Writeup.md
Created April 20, 2020 13:20
John Cena writeup WPICTF 2020

John Cena

This challenge was fairly simple, but had one or two complications.

The first step was parsing the image. Before I could script it, I opened up the image in GIMP to have a look at spacing. As it turned out, each braille block was 30 pixels wide, but the heights weren't consistent. On odd rows it was 43 pixels high, and even rows were 44 pixels high. There were 33 blocks to a row, and 57 rows in the image.

@Bottersnike
Bottersnike / V5.md
Last active December 17, 2018 02:38

ECMDS

cmd replyLength
FILE_INIT 0x11 8
FILE_EXIT 0x12 8
FILE_WRITE 0x13 8
FILE_READ 0x14 0
FILE_LINK 0x15 0
FILE_DIR 0x16 10
class Lump {
float start;
float wid;
float intensity;
public Lump(float s, float w, float i) {
start = s;
wid = w;
intensity = i;
}
}

Keybase proof

I hereby claim:

  • I am bottersnike on github.
  • I am bottersnike (https://keybase.io/bottersnike) on keybase.
  • I have a public key ASCXe6_wWCrp2CBZE2pMi2b7MDJOguqJS464x0f_5pRU5wo

To claim this, I am signing this object:

How to python

Take generic C-like language.

Remove braces. They're ugly

Instead start blocks with : and indent them

Remove semicolons. They're ugly

Just use new lines

#!/usr/bin/python2.7
class Caesar(str):
def encipher(self, shift):
ciphertext = []
for p in self:
if p.isalpha():
ciphertext.append(chr((ord(p) - ord('Aa'[int(p.islower())]) +
shift) % 26 + ord('Aa'[int(p.islower())])))
else: