2014-02-01から1ヶ月間の記事一覧

#5 Onion

問題文 http://ksnctf.sweetduet.info/problem/5ひたすらbase64でデコードさせます。 そうすると一行目にbegin 666 とでてきます。 これを調べるとこのページhttp://www.cc.u-tokai.ac.jp/FAQ/Mail/unix/mluucode.htmが出てきます。最後にuuencodeさせると結…

#2 Easy Cipher

問題 http://ksnctf.sweetduet.info/problem/2これは古典暗号のシーザー暗号です。KVVV がヒントでこの文章をある数戻すとflagが出てきます。

JIS -> SJISへの変換プログラム

眠いのでソースだけとりあえず(あとから説明かく) #include <iostream> #include <cstdlib> #define ESC 0x1B void jisToSjis(int *h, int *l){ if(*h & 1){ if(*l < 0x60) *l += 0x1F; else *l += 0x20; } else *l += 0x7E; if(*h < 0x5F) *h = (*h + 0xE1) >> 1; else *h = (*</cstdlib></iostream>…