Skip to content

Instantly share code, notes, and snippets.

@hhc0null
hhc0null / decompiled.c
Created March 4, 2015 08:27
CODEGATE 2014 [PWN250] Angry Doraemon
int data_804b078 = 100; // Doraemon HP
int bss_804b080; // fd
char bss_804b0a0[5000]; // buffer
// error message.
void sub_804889d(char *arg0)
{
fprintf(bss_804b080, "%s\n", arg0);
exit(EXIT_FAILURE);
}
@hhc0null
hhc0null / gizmo.py
Created March 9, 2015 18:15
my gadget searcher.
#!/usr/bin/env python2
"""Usage:
gizmo.py [-h] [-o NAME] [-r NUMBER] PATH
gizmo.py --version
Arguments:
PATH source path
Options:
@hhc0null
hhc0null / CODEGATE2015-systemshock-200pts
Last active August 29, 2015 14:17
!!THIS IS NOT A WRITEUP!! CODEGATE 2015 [PWN200] systemshock
// DEP, ASLR, SSP
#include <ctype.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#define not(x) (!(x))
extern char **environ;
@hhc0null
hhc0null / gm.c
Created March 17, 2015 14:10
B-sides 2015 Own350 Glorious Modern memo
// checked
void sub_400976(arg0)
{
// Local variables.
rbp_28h;
rbp_10h;
rbp_08h;
rbp_28h = arg0;
rbp_10h = 0;
@hhc0null
hhc0null / exploit.py
Last active August 29, 2015 14:17
B-sides 2015 Own200 www
#!/usr/bin/env python2
import binascii
import re
import socket
import struct
import sys
import telnetlib
import time
@hhc0null
hhc0null / decompiled.c
Created March 18, 2015 06:43
B-sides 2015 SB340 Baby Playpen Fence
int main()
{
// Local variables.
int rsp_04h;
setvbuf(stdin, 0, 2); // maybe
setvbuf(stdout, 0, 2); // maybe
puts("\n ______\n | |__| | WELCOME TO THE\n | () | UNTRUSTED COMPUTING SERVICE\n |______| V0.0.1a\n\nLOAD PROGRAM");
@hhc0null
hhc0null / qoobee.c
Last active August 29, 2015 14:17
[Memo] BCTF2015-qoobee-Exploit500
int sub_400d5d(arg0)
{
rbp_18h = arg0;
rbp_08h = rbp_18h ^ 0xdead;
return rbp_08h;
}
void sub_400d79()
{
// Local variables.
@hhc0null
hhc0null / freenote.c
Last active August 29, 2015 14:17
0CTF 2015 Quals Exploit-freenote-400pts
// [0ctf 2015 quals] exploit-freenote-400pts
/*
* memo of bss_6020a8h.
* offset_00h: limit number of memo.
* offset_08h: current number of memo.
* offset_10h[memo_limit]: content.
*/
const unsigned long long memo_limit = 0x100;
@hhc0null
hhc0null / exploit.py
Last active August 29, 2015 14:17
0CTF 2015 Quals Exploit-FlagGenerator-250pts Writeup? Just exploit code?
#!/usr/bin/env python2
import binascii
import re
import socket
import struct
import subprocess
import sys
import telnetlib
import time
@hhc0null
hhc0null / login.c
Last active August 29, 2015 14:17
0CTF 2015 Quals Exploit-Login-300pts
// [0CTF 2015 Quals] Exploit-Login-300pts
int sub_cb5(char *arg0, int arg1)
{
// Local variables.
int rbp_1ch;
char *rbp_18h;
rbp_18h = arg0;
rbp_1ch = arg1;