This file contains hidden or 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
#!/usr/bin/env python2 | |
import binascii | |
import re | |
import socket | |
import struct | |
import subprocess | |
import sys | |
import telnetlib | |
import time |
This file contains hidden or 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
#!/usr/bin/env python2 | |
import binascii | |
import collections | |
import hashlib | |
import itertools | |
import numpy | |
import re | |
import shlex | |
import socket |
Author: hhc0null
本文は#04 Hokkaido CTF 勉強会で出されたrev100のwriteupである.
最適化のかかっていない標準的なELF x86のバイナリを解析するという問題. この問題は主に以下のようなことを行っている.
- 前処理
主に, flagとなる文字列が判別できないようなバイト列を生成する.
Author: hhc0null
本文は#04 Hokkaido CTF 勉強会で出されたrev200のwriteupである.
最適化はかかっていないが, strip
コマンドによりシンボル情報が欠除したELF x86のバイナリを解析するという問題. この問題は主に以下のようなことを行っている.
** // TODO **
これはCTF Advent Calendar 2015の3日目の記事です. 簡単な説明で終わってしまってるのでそのうち追記するかもです.
Okay, okay. It's not baremetal...
Running on: 188.40.147.100 1024 2b2ec84ea812c9730a244b44a2549fcb
問題ファイルはここにあります -> 2b2ec84ea812c9730a244b44a2549fcb
This file contains hidden or 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
#include <time.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <assert.h> | |
#define TIME_PREFIX_SIZE 8 // "YYYYmmdd" | |
int main() | |
{ | |
struct tm *current_tm; |
This file contains hidden or 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
(12:23) hhc0null@arch_on_vbox% ltrace -s 512 -e "[email protected].*" ./freenote [~/ctf] [8296] | |
freenote->malloc(6160) = 0x17d0010 | |
== 0ops Free Note == | |
1. List Note | |
2. New Note | |
3. Edit Note | |
4. Delete Note | |
5. Exit | |
==================== | |
Your choice: freenote->read(02 |