Skip to content

Instantly share code, notes, and snippets.

@ytn86
ytn86 / exploit.py
Last active August 29, 2015 14:21
DEFCON 25 Quals r0pbaby
#!/usr/bin/env python3
import struct
import sys
import telnetlib
HOST = 'r0pbaby_542ee6516410709a1421141501f03760.quals.shallweplayaga.me'
PORT = 10436
@ytn86
ytn86 / hostfile
Last active November 23, 2016 16:46
OpenMPIメモ
node1
@ytn86
ytn86 / cheer_msg.py
Last active December 11, 2016 18:23
SECCON Online 2016
#! /usr/bin/env python3
import struct
import telnetlib
import sys
HOST_L='localhost'
HOST_R='cheermsg.pwn.seccon.jp'
PORT=30527
@ytn86
ytn86 / crc.py
Created April 9, 2017 15:55
ASIS CTF 2017 Quals
#! python3
from ctflib import Pwn
from ctflib.util import *
from binascii import crc32
def exploit(cn):
@ytn86
ytn86 / mute.S
Last active May 1, 2017 13:56
DEFCON 2017 Quals
BITS 64
_start:
mov rdi, rax
mov rax, 0x3
syscall
pop rcx
mov rcx, 0x67616c66
@ytn86
ytn86 / install.md
Last active May 8, 2018 13:49
Dionaea導入等

必要なライブラリ等のインストール

apt-get install libudns-dev libglib2.0-dev libssl-dev libcurl4-openssl-dev libreadline-dev libsqlite3-dev python-dev libtool automake autoconf build-essential subversion git-core flex bison pkg-config libnl-3-dev libnl-genl-3-dev libnl-nf-3-dev libnl-route-3-dev sqlite3

ここでは/opt/dionaea に依存関係まわりのインストール。

cd /opt/
@ytn86
ytn86 / cl_platform.c
Last active November 7, 2019 04:09
show OpenCL device list
#include <stdio.h>
#include <CL/cl.h>
#define MAX_PLATFORM_SIZE 256
#define MAX_DEVICE_SIZE 256
int main()
{
cl_device_id devices[256];