Skip to content

Instantly share code, notes, and snippets.

View ntddk's full-sized avatar

Yuma Kurogome ntddk

  • Tokyo, Japan
View GitHub Profile
@ntddk
ntddk / rofi_kaomoji_alpha1
Created September 23, 2012 10:27 — forked from lindwurm/rofi_kaomoji_alpha1
rofi顔文字辞書(alpha)
お (*・ρ・)ジュルリ 名詞
お (*>ヮ<)(>ヮ<*)ネー 名詞
お ヾ(๑╹◡╹)ノ"♡ 名詞
お (╹⌓╹ ) 名詞
お (/ω\) 名詞
お (ヾノ・ω・`)ナイナイ 名詞
お ☆(ゝω・)v 名詞
お ヾ(>ヮ<*)ナデナデ 名詞
お (*/ω\*) 名詞
お (=△=`歩) 名詞
@ntddk
ntddk / ResNet_A.py
Created January 14, 2016 15:19 — forked from mitmul/ResNet_A.py
Deep Residual Network definition by Chainer
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import math
import chainer
import chainer.links as L
import chainer.functions as F
from PyPDF2.generic import (
DictionaryObject,
NumberObject,
FloatObject,
NameObject,
TextStringObject,
ArrayObject
)
# x1, y1 starts in bottom left corner
@ntddk
ntddk / WannaCry-SMB.c
Created May 15, 2017 05:41 — forked from msuiche/WannaCry-SMB.c
WannaCry - DOUBLEPULSAR references
// https://twitter.com/msuiche
int threadMain()
{
unsigned int i; // edi@1
_DWORD *v1; // eax@2
void *v2; // esi@7
char v4; // [sp+13h] [bp-2Dh]@0
char v5; // [sp+14h] [bp-2Ch]@1
void *Memory; // [sp+18h] [bp-28h]@1
@ntddk
ntddk / README.md
Created February 26, 2018 06:29 — forked from jthuraisamy/README.md

TL;DR: Using symbolic execution to recover driver IOCTL codes that are computed at runtime.

The goal here is to find valid IOCTL codes for the HackSysExtremeVulnerableDriver by analyzing the binary. The control flow varies between the binary and source due to compiler optimizations. This results in a situation where only a few IOCTL codes in the assembly are represented as a constant with the remaining being computed at runtime.

The code in hevd_ioctl.py is a approximation of the control flow of the compiled IrpDeviceIoCtlHandler function. The effects of the compiler optimization are more pronounced when comparing this code to the original C function. To comply with requirements of the PyExZ3 module, the target function is named after the script's filename, and the `ex