Skip to content

Instantly share code, notes, and snippets.

# coding: utf-8
# Trend Micro CTF 2017 pre - Analysis-Offensive 400
from struct import *
from socket import *
import re
from winappdbg import Process, System, win32
"""
#-*- coding: utf-8
"""
SECUINSIDE CTF 2017 - KVM PWN, KVM REV
wget http://www.leptonica.com/source/leptonica-1.74.4.tar.gz
./configure && make install
wget https://github.com/tesseract-ocr/tesseract/archive/3.05.zip
./autogen.sh && ./configure && make install
@eggpod
eggpod / idapython
Last active November 25, 2023 14:37
[swigをインストール]
http://www.swig.org/download.html から3.0.5(最新版)をダウンロード、展開しパスを通す。
例では3系だがswigは2系を推奨
> 7z x swigwin-3.0.5.zip
> set PATH=%PATH%;c:\work\swigwin-3.0.5
[idasdkの配置]
idapythonの1つ下のディレクトリにswigsdk-versions/6.7のような形式でバージョンごとのディレクトリを作りidasdk67のファイルを展開する
> mkdir swigsdk-versions
> 7z x idasdk67.zip -oswigsdk-versions
# Plaid CTF 2014 ezhp
from socket import *
import os,sys
from array import *
from struct import *
sock = None
f = None
# coding:utf8
# defcon2013pre annyong
from socket import *
from struct import *
sock =socket(AF_INET, SOCK_STREAM)
sock.settimeout(5)
sock.connect(("192.168.189.131", 7788))
fmt = ""
for i in xrange(11):