This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Plaid CTF 2014 ezhp | |
from socket import * | |
import os,sys | |
from array import * | |
from struct import * | |
sock = None | |
f = None | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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): |