Skip to content

Instantly share code, notes, and snippets.

View breadchris's full-sized avatar

Chris breadchris

View GitHub Profile
@breadchris
breadchris / Delphi.md
Last active May 24, 2021 17:59
Bsides Vancouver CTF 2015 - Delphi (200 ownable) Writeup

Delphi

files given:

  • delphi-07a5c9d07a4c20ae81a2ddc66b9602d0dcceb74b
  • libtwenty.so-4a3918b2efd9fbdfd20eeb8fa51ca76bc42eb2f2

TL;DR

  • Reverse Command Protocol
  • Integer Overflow
  • Metacharacter Injection
@breadchris
breadchris / gist:3d72f88826c8d4b964c6
Created March 8, 2015 01:31
Ropasaurus Rex like program
int overflow()
{
char buf[136];
return read(0, &buf, 256u);
}
int main()
{
overflow();
return write(1, "WIN\n", 4u);
@breadchris
breadchris / Dot Vimrc
Created March 5, 2015 17:29
A custom Vimrc file
syntax enable
set background=dark
colorscheme molokai
filetype plugin indent on
let &t_SI .= "\<Esc>[?2004h"
let &t_EI .= "\<Esc>[?2004l"
inoremap <special> <expr> <Esc>[200~ XTermPasteBegin()
@breadchris
breadchris / Git Trending Repos Python
Created February 8, 2015 20:45
A python one liner to return all trending repos on Github