Skip to content

Instantly share code, notes, and snippets.

@hhc0null
hhc0null / readme.md
Created March 24, 2016 16:04
somthing on heap

?

@hhc0null
hhc0null / WoS3
Last active September 9, 2016 01:30
VolgaCTF 2016 Quals: Web of Science (250pts) & Web of Science 2 (350pts)
I was cooking and eating curry...
#!/usr/bin/env python2
import binascii
import hashlib
import re
import socket
import string
import struct
import subprocess
import time
@hhc0null
hhc0null / my_first_fuzzing.py
Created April 2, 2016 23:16
For NDH2K16: Crazy Town Famous(pwn350). Works not well, I have no taste for programming...
#!/usr/bin/env python2
import binascii
import hashlib
import itertools
import random
import re
import socket
import string
import struct
@hhc0null
hhc0null / exploit.py
Last active September 9, 2016 01:31
{DEF CON CTF 2016 Qualification] pwn-pillpusher (I couldn't solve it during competition but thanks for reversing by @ytoku)
#!/usr/bin/env python2
import binascii
import hashlib
import re
import random
import socket
import string
import struct
import subprocess
@hhc0null
hhc0null / battery
Created September 21, 2016 09:36
battery?
#!/bin/sh
CAPACITY_PATH="/sys/class/power_supply/BAT1/capacity"
capacity=$(cat ${CAPACITY_PATH})
ESC="\e"
BK=40
LBK=100
FW=30
LFW=90
@hhc0null
hhc0null / weather
Last active November 13, 2016 06:41
RuCTFE: weather (explicit bof and fsb by sprintf())
@hhc0null
hhc0null / Makefile
Last active December 11, 2016 14:21
SECON 2016 Online CTF Exp300 tinypad
CC = gcc
CFLAGS =-c -std=gnu11 -fstack-protector-all -fPIC
LDFLAGS = -Wl,-z,now -Wl,-z,relro #-pie
sources = tinypad.c pwnio.c
objects = $(sources:.c=.o)
solution= tinypad
.PHONY: clean
all: $(sources) $(solution)
@hhc0null
hhc0null / lshift.py
Last active February 16, 2017 16:56
__lshift__
class Cell:
def __init__(self, *args):
self.stock = [*args]
def __lshift__(self, value):
self.stock.append(value)
return self
if __name__ == '__main__':
mini: file format elf64-x86-64
Disassembly of section .init:
00000000004003c8 <_init>:
4003c8: 48 83 ec 08 sub $0x8,%rsp
4003cc: 48 8b 05 25 0c 20 00 mov 0x200c25(%rip),%rax # 600ff8 <_DYNAMIC+0x1d8>
4003d3: 48 85 c0 test %rax,%rax