riceteacatpanda Writeup

この大会は2020/1/21 1:00(JST)~2020/1/25 17:00(JST)に開催されました。
今回もチームで参戦。結果は 3456点で1323チーム中148位でした。
自分で解けた問題をWriteupとして書いておきます。

Strong Password (Misc 1)

問題文にはこう書いてある。

Eat, Drink, Pet, Hug, Repeat!

flags are entered in the format rtcp{flag}

ヒント2つはこうなっている。

Words are separated by underscores ("_")
Come on, repeat it! Just once!

コンテストの名前を連結し、_区切りにしたものがフラグ。

rtcp{rice_tea_cat_panda}

Robots. Yeah, I know, pretty obvious. (Web 25)

https://riceteacatpanda.wtf/robots.txtにアクセスする。

User-agent: *
Disallow: 
/robot-nurses
/flag

https://riceteacatpanda.wtf/robot-nursesにアクセスするとフラグが表示された。

rtcp{r0b0t5_4r3_g01ng_t0_t4k3_0v3r_4nd_w3_4r3_s0_scr3w3d}

No Sleep (Web 100)

Cookieのgamerfuelに Jan 27, 2020 04:20:00 と設定されている。Jan 21, 2020 04:20:00 に書き換えるとフラグが表示された。

rtcp{w0w_d1d_u_st4y_up?}

Phishing for Flags (Web 105)

添付されているメールを眺めてみる。GIVE ME BACK MY EYEHOLES.emlのリンクをクリックしたら、フラグが表示された。

rtcp{r34d_b3f0rE_yOU_C1iCk}

Uwu? (Web 125)

https://riceteacatpanda.wtf/uwuにアクセスすると、以下のURLに次々とリダイレクトされる。

https://riceteacatpanda.wtf/omgmeow
https://riceteacatpanda.wtf/pandaaaaaaa
https://riceteacatpanda.wtf/you-better-wash-your-rice
https://riceteacatpanda.wtf/uwustorage

https://riceteacatpanda.wtf/you-better-wash-your-riceにアクセスしたときに、レスポンスにフラグが含まれていた。

rtcp{uwu_,_1_f0und_y0u}

What's in The Box?! (Web 200)

Chromeのブックマークバーにコピペしてスクリプトを見る。

javascript: function spawncat(){ var cat = document.createElement("IMG"); ...(snip)...; cat.setAttribute("src", cat_idle); var x = Math.random() * (window.innerWidth - 64); var y = Math.random() * (document.documentElement.scrollHeight - 64); var dx = 0; var dy = 0; var onGround = true; /*rtcp{*/ var ticks = 0; var jump_t = 20; var move_t = 180; cat.style.cssFloat = "left"; cat.style.position = "absolute"; cat.style.width = "64px"; cat.style.height = "64px"; cat.style.left = 0; cat.style.up = 0; cat.style.zIndex = 100000000; document.body.insertBefore(cat, document.body.firstChild); setInterval(function() { ticks++; if (onGround) { if (dx != 0) { if (ticks >= jump_t) { /*k4wA1*/ onGround = false; dy = 2 + Math.random() * 4; jump_t = ticks + Math.floor(Math.random() * 100) + 10; } } } else { dy -= 0.1; if (ticks >= jump_t) { onGround = true; dy = 0; /*I_kitT3nz*/ jump_t = ticks + Math.floor(Math.random() * 200) + 50; } } /*_4_tH*/ if (ticks >= move_t) { if (dx == 0) { var temp = Math.random(); if (temp > 0.5) { dx = 0.5 + Math.random(); cat.setAttribute("src", cat_right); } else { dx = -0.5 - Math.random(); /*3_w1N*/ cat.setAttribute("src", cat_left); } move_t = ticks + Math.floor(Math.random() * 200) + 25; } else { dx = 0; move_t = ticks + Math.floor(Math.random() * 200) + 25; cat.setAttribute("src", cat_idle); } } if (x + dx >= 0 && x + 64 + dx < window.innerWidth) { x += dx; } else if (x + dx < 0) { dx = 0; x = 0; } else { dx = 0; x = window.innerWidth - 64; } if (y - dy >= 0) { y -= dy; /*!!_4123*/ } else { dy = -dy; y = 0; } cat.style.left = (x + "px"); /*2345}*/ cat.style.top = (y + "px"); }, 20); }var i; for (i = 0; i < 2; i++) { spawncat(); }

途中から整形してみる。

cat.setAttribute("src", cat_idle);
var x = Math.random() * (window.innerWidth - 64);
var y = Math.random() * (document.documentElement.scrollHeight - 64);
var dx = 0;
var dy = 0;
var onGround = true; /*rtcp{*/
var ticks = 0;
var jump_t = 20;
var move_t = 180;
cat.style.cssFloat = "left";
cat.style.position = "absolute";
cat.style.width = "64px";
cat.style.height = "64px";
cat.style.left = 0;
cat.style.up = 0;
cat.style.zIndex = 100000000;
document.body.insertBefore(cat, document.body.firstChild);
setInterval(function() {
    ticks++;
    if (onGround) {
        if (dx != 0) {
            if (ticks >= jump_t) { /*k4wA1*/
                onGround = false;
                dy = 2 + Math.random() * 4;
                jump_t = ticks + Math.floor(Math.random() * 100) + 10;
            }
        }
    } else {
        dy -= 0.1;
        if (ticks >= jump_t) {
            onGround = true;
            dy = 0; /*I_kitT3nz*/
            jump_t = ticks + Math.floor(Math.random() * 200) + 50;
        }
    } /*_4_tH*/
    if (ticks >= move_t) {
        if (dx == 0) {
            var temp = Math.random();
            if (temp > 0.5) {
                dx = 0.5 + Math.random();
                cat.setAttribute("src", cat_right);
            } else {
                dx = -0.5 - Math.random(); /*3_w1N*/
                cat.setAttribute("src", cat_left);
            }
            move_t = ticks + Math.floor(Math.random() * 200) + 25;
        } else {
            dx = 0;
            move_t = ticks + Math.floor(Math.random() * 200) + 25;
            cat.setAttribute("src", cat_idle);
        }
    }
    if (x + dx >= 0 && x + 64 + dx < window.innerWidth) {
        x += dx;
    } else if (x + dx < 0) {
        dx = 0;
        x = 0;
    } else {
        dx = 0;
        x = window.innerWidth - 64;
    }
    if (y - dy >= 0) {
        y -= dy; /*!!_4123*/
    } else {
        dy = -dy;
        y = 0;
    }
    cat.style.left = (x + "px"); /*2345}*/
    cat.style.top = (y + "px");
}, 20); }var i; for (i = 0; i < 2; i++) { spawncat(); }

スクリプトの中のコメントにフラグが含まれている。

rtcp{k4wA1I_kitT3nz_4_tH3_w1N!!_41232345}

BTS-Crazed (Forensics 75)

$ strings Save\ Me.mp3 | grep rtcp
rtcp{j^cks0n_3ats_r1c3}N
rtcp{j^cks0n_3ats_r1c3}

Come Eat Grandma (General Skills 25)

スプレッドシートの変更履歴から「oh, woah, a FLAG」のものを見てみると、フラグが書いてあった。

rtcp{D0n't_E^t_Gr4NDmA_734252}

Sticks and Stones (General Skills 50)

rtcp{xxx}という形式のデータがたくさん含まれている。フラグは"_"を含んでいると推定し、"_"で検索する。

rtcp{w0Rd5_HuRt_,_d0n'T_Bu11y_,_k1Dz}

ghost-in-the-system (General Skills 1500)

Ghidraでデコンパイルする。

int main(void)

{
  char cVar1;
  long lVar2;
  bool bVar3;
  bool bVar4;
  DIR *__dirp;
  dirent *pdVar5;
  long lVar6;
  char *pcVar7;
  basic_ostream *this;
  reference pcVar8;
  long in_FS_OFFSET;
  int numcorr;
  int count;
  int n;
  int leng;
  int aschar;
  iterator __for_begin;
  iterator __for_end;
  DIR *dr;
  dirent *de;
  basic_string<char,std--char_traits<char>,std--allocator<char>> *__for_range;
  char *c;
  string str;
  string otxt;
  char flg [100];
  
  lVar2 = *(long *)(in_FS_OFFSET + 0x28);
  __dirp = opendir(".");
  if (__dirp == (DIR *)0x0) {
    printf("Could not open current directory");
  }
  else {
    while( true ) {
      pdVar5 = readdir(__dirp);
      if (pdVar5 == (dirent *)0x0) break;
      allocator();
                    /* try { // try from 001011d4 to 001011d8 has its CatchHandler @ 00101faf */
      basic_string((char *)&str,(allocator *)pdVar5->d_name);
      ~allocator((allocator<char> *)&__for_end);
      bVar3 = false;
      numcorr = 0;
                    /* try { // try from 0010121c to 00101220 has its CatchHandler @ 00101ff4 */
      lVar6 = rfind((char *)&str,(ulong)"rtcp{");
      if (lVar6 == 0) {
        lVar6 = length();
        if (lVar6 != 100) goto LAB_00101262;
        pcVar7 = (char *)back();
        if (*pcVar7 != '}') goto LAB_00101262;
        bVar4 = true;
      }
      else {
LAB_00101262:
        bVar4 = false;
      }
      if (bVar4) {
        allocator();
                    /* try { // try from 00101296 to 0010129a has its CatchHandler @ 00101fcc */
        basic_string((char *)&otxt,(allocator *)&DAT_001021e8);
        ~allocator((allocator<char> *)&__for_end);
                    /* try { // try from 001012b9 to 00101e09 has its CatchHandler @ 00101fe0 */
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1f0);
        flg[0] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x192);
        flg[1] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x322);
        flg[2] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xe4);
        flg[3] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x2f6);
        flg[4] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x2f4);
        flg[5] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x276);
        flg[6] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x27a);
        flg[7] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x2d6);
        flg[8] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xce);
        flg[9] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x8e);
        flg[10] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x33d);
        flg[11] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1cb);
        flg[12] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xd3);
        flg[13] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x126);
        flg[14] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x22a);
        flg[15] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x125);
        flg[16] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x2ad);
        flg[17] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1ab);
        flg[18] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x274);
        flg[19] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x117);
        flg[20] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x3a2);
        flg[21] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1cb);
        flg[22] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x161);
        flg[23] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xfb);
        flg[24] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x28a);
        flg[25] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xa9);
        flg[26] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x216);
        flg[27] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x142);
        flg[28] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x2f);
        flg[29] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x21a);
        flg[30] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x325);
        flg[31] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x216);
        flg[32] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x164);
        flg[33] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1e4);
        flg[34] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1b9);
        flg[35] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x2df);
        flg[36] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1e9);
        flg[37] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x3d);
        flg[38] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1fe);
        flg[39] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x2d3);
        flg[40] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1a1);
        flg[41] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x97);
        flg[42] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xaa);
        flg[43] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x123);
        flg[44] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x2d8);
        flg[45] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x184);
        flg[46] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x2d7);
        flg[47] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x90);
        flg[48] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x14);
        flg[49] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xd9);
        flg[50] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x5b);
        flg[51] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x346);
        flg[52] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x25c);
        flg[53] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1f7);
        flg[54] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1b6);
        flg[55] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xba);
        flg[56] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1bd);
        flg[57] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x204);
        flg[58] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xf8);
        flg[59] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x135);
        flg[60] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x14c);
        flg[61] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xb3);
        flg[62] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x35b);
        flg[63] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xe9);
        flg[64] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,9);
        flg[65] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1c3);
        flg[66] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x333);
        flg[67] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x3a1);
        flg[68] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xce);
        flg[69] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x2f7);
        flg[70] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x4f);
        flg[71] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x374);
        flg[72] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x164);
        flg[73] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xb8);
        flg[74] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x2c1);
        flg[75] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1cb);
        flg[76] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x36f);
        flg[77] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x62);
        flg[78] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x123);
        flg[79] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x395);
        flg[80] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x4f);
        flg[81] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x12e);
        flg[82] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1bd);
        flg[83] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x208);
        flg[84] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x142);
        flg[85] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xef);
        flg[86] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x1cb);
        flg[87] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x368);
        flg[88] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x2ee);
        flg[89] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xd);
        flg[90] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x28a);
        flg[91] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x3e2);
        flg[92] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x388);
        flg[93] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x39a);
        flg[94] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x3a5);
        flg[95] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xf2);
        flg[96] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xe5);
        flg[97] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0x2f7);
        flg[98] = *pcVar7;
        pcVar7 = (char *)operator[]((basic_string<char,std--char_traits<char>,std--allocator<char>>
                                     *)&otxt,0xe6);
        flg[99] = *pcVar7;
        bVar3 = true;
        bVar4 = operator==<char,std--char_traits<char>,std--allocator<char>>
                          ((basic_string<char,std--char_traits<char>,std--allocator<char>> *)&str,
                           flg);
        if (bVar4 == false) {
          n = 0;
          while (n < 0x65) {
            pcVar7 = (char *)operator[]((
                                         basic_string<char,std--char_traits<char>,std--allocator<char>>
                                         *)&str,(long)n);
            if (*pcVar7 == flg[n]) {
              numcorr = numcorr + 1;
              this = operator<<<std--char_traits<char>>((basic_ostream *)cout,"\x1b[46;1m");
              pcVar7 = (char *)operator[]((
                                           basic_string<char,std--char_traits<char>,std--allocator<char>>
                                           *)&str,(long)n);
              operator<<<std--char_traits<char>>(this,*pcVar7);
            }
            else {
              this = operator<<<std--char_traits<char>>((basic_ostream *)cout,"\x1b[47;1m");
              pcVar7 = (char *)operator[]((
                                           basic_string<char,std--char_traits<char>,std--allocator<char>>
                                           *)&str,(long)n);
              operator<<<std--char_traits<char>>(this,*pcVar7);
            }
            n = n + 1;
          }
        }
        else {
          this = operator<<<std--char_traits<char>>((basic_ostream *)cout,"\x1b[42;1m");
          operator<<<char,std--char_traits<char>,std--allocator<char>>(this,(basic_string *)&str);
          numcorr = 100;
        }
        ~basic_string((basic_string<char,std--char_traits<char>,std--allocator<char>> *)&otxt);
      }
      else {
        __for_begin = (char *)begin();
        __for_end = (char *)end();
        while( true ) {
          bVar4 = operator!=<char*,std--__cxx11--basic_string<char>>
                            ((
                              __normal_iterator<char*,std--__cxx11--basic_string<char,std--char_traits<char>,std--allocator<char>>>
                              *)&__for_begin,
                             (
                              __normal_iterator<char*,std--__cxx11--basic_string<char,std--char_traits<char>,std--allocator<char>>>
                              *)&__for_end);
          if (bVar4 == false) break;
          pcVar8 = operator*((
                              __normal_iterator<char*,std--__cxx11--basic_string<char,std--char_traits<char>,std--allocator<char>>>
                              *)&__for_begin);
          cVar1 = *pcVar8;
                    /* try { // try from 00101ebc to 00101f75 has its CatchHandler @ 00101ff4 */
          this = operator<<<std--char_traits<char>>((basic_ostream *)cout,"\x1b[38;5;");
          this = (basic_ostream *)
                 operator<<((basic_ostream<char,std--char_traits<char>> *)this,(int)cVar1 + -0x4b);
          this = operator<<<std--char_traits<char>>(this,"m");
          operator<<<std--char_traits<char>>(this,*pcVar8);
          operator++((
                      __normal_iterator<char*,std--__cxx11--basic_string<char,std--char_traits<char>,std--allocator<char>>>
                      *)&__for_begin);
        }
      }
      if (bVar3) {
        this = operator<<<std--char_traits<char>>((basic_ostream *)cout,"\x1b[0m ::: ");
        this = (basic_ostream *)
               operator<<((basic_ostream<char,std--char_traits<char>> *)this,numcorr);
        operator<<<std--char_traits<char>>(this,"\n");
      }
      else {
        this = operator<<<std--char_traits<char>>((basic_ostream *)cout,"\x1b[0m");
        operator<<<std--char_traits<char>>(this,"\n");
      }
      ~basic_string((basic_string<char,std--char_traits<char>,std--allocator<char>> *)&str);
    }
    closedir(__dirp);
  }
  if (lVar2 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return 0;
}
                             DAT_001021e8                                    XREF[1]:     main:0010128c(*)  
        001021e8 73              ??         73h    s
        001021e9 7d              ??         7Dh    }
        001021ea 79              ??         79h    y
        001021eb 76              ??         76h    v
        001021ec 7a              ??         7Ah    z
        001021ed 65              ??         65h    e
        001021ee 7a              ??         7Ah    z
        001021ef 71              ??         71h    q
        001021f0 72              ??         72h    r
        001021f1 5f              ??         5Fh    _
        001021f2 36              ??         36h    6
        001021f3 78              ??         78h    x
        001021f4 34              ??         34h    4
        001021f5 35              ??         35h    5
        001021f6 6a              ??         6Ah    j
        001021f7 78              ??         78h    x
        001021f8 32              ??         32h    2
        001021f9 79              ??         79h    y
        001021fa 70              ??         70h    p
        001021fb 34              ??         34h    4
        001021fc 64              ??         64h    d
        001021fd 33              ??         33h    3
        001021fe 38              ??         38h    8
        001021ff 71              ??         71h    q
        00102200 71              ??         71h    q
        00102201 31              ??         31h    1
        00102202 6d              ??         6Dh    m
        00102203 76              ??         76h    v
        00102204 6e              ??         6Eh    n
        00102205 73              ??         73h    s
        00102206 6c              ??         6Ch    l
        00102207 30              ??         30h    0
        00102208 75              ??         75h    u
        00102209 37              ??         37h    7
        0010220a 77              ??         77h    w
        0010220b 33              ??         33h    3
        0010220c 32              ??         32h    2
        0010220d 6c              ??         6Ch    l
        0010220e 72              ??         72h    r
        0010220f 31              ??         31h    1
        00102210 32              ??         32h    2
        00102211 67              ??         67h    g
        00102212 69              ??         69h    i
        00102213 7d              ??         7Dh    }
        00102214 74              ??         74h    t
        00102215 33              ??         33h    3
        00102216 69              ??         69h    i
        00102217 35              ??         35h    5
        00102218 6b              ??         6Bh    k
        00102219 77              ??         77h    w
        0010221a 30              ??         30h    0
        0010221b 6f              ??         6Fh    o
        0010221c 65              ??         65h    e
        0010221d 77              ??         77h    w
        0010221e 6b              ??         6Bh    k
        0010221f 71              ??         71h    q
        00102220 62              ??         62h    b
        00102221 5f              ??         5Fh    _
        00102222 76              ??         76h    v
        00102223 76              ??         76h    v
        00102224 36              ??         36h    6
        00102225 37              ??         37h    7
        00102226 32              ??         32h    2
        00102227 36              ??         36h    6
        00102228 7d              ??         7Dh    }
        00102229 7d              ??         7Dh    }
        0010222a 39              ??         39h    9
        0010222b 35              ??         35h    5
        0010222c 63              ??         63h    c
        0010222d 6d              ??         6Dh    m
        0010222e 66              ??         66h    f
        0010222f 79              ??         79h    y
        00102230 5f              ??         5Fh    _
        00102231 6a              ??         6Ah    j
        00102232 66              ??         66h    f
        00102233 67              ??         67h    g
        00102234 79              ??         79h    y
        00102235 78              ??         78h    x
        00102236 32              ??         32h    2
        00102237 35              ??         35h    5
        00102238 6e              ??         6Eh    n
        00102239 31              ??         31h    1
        0010223a 65              ??         65h    e
        0010223b 39              ??         39h    9
        0010223c 63              ??         63h    c
        0010223d 75              ??         75h    u
        0010223e 79              ??         79h    y
        0010223f 76              ??         76h    v
        00102240 73              ??         73h    s
        00102241 6f              ??         6Fh    o
        00102242 72              ??         72h    r
        00102243 5f              ??         5Fh    _
        00102244 30              ??         30h    0
        00102245 6d              ??         6Dh    m
        00102246 69              ??         69h    i
        00102247 6a              ??         6Ah    j
        00102248 63              ??         63h    c
        00102249 6e              ??         6Eh    n
        0010224a 68              ??         68h    h
        0010224b 6f              ??         6Fh    o
        0010224c 61              ??         61h    a
        0010224d 32              ??         32h    2
        0010224e 6b              ??         6Bh    k
        0010224f 70              ??         70h    p
        00102250 76              ??         76h    v
        00102251 64              ??         64h    d
        00102252 74              ??         74h    t
        00102253 6a              ??         6Ah    j
        00102254 64              ??         64h    d
        00102255 39              ??         39h    9
        00102256 6a              ??         6Ah    j
        00102257 73              ??         73h    s
        00102258 32              ??         32h    2
        00102259 6b              ??         6Bh    k
        0010225a 73              ??         73h    s
        0010225b 74              ??         74h    t
        0010225c 62              ??         62h    b
        0010225d 65              ??         65h    e
        0010225e 35              ??         35h    5
        0010225f 7d              ??         7Dh    }
        00102260 73              ??         73h    s
        00102261 36              ??         36h    6
        00102262 7a              ??         7Ah    z
        00102263 67              ??         67h    g
        00102264 79              ??         79h    y
        00102265 69              ??         69h    i
        00102266 6c              ??         6Ch    l
        00102267 36              ??         36h    6
        00102268 71              ??         71h    q
        00102269 78              ??         78h    x
        0010226a 74              ??         74h    t
        0010226b 72              ??         72h    r
        0010226c 7d              ??         7Dh    }
        0010226d 77              ??         77h    w
        0010226e 62              ??         62h    b
        0010226f 6f              ??         6Fh    o
        00102270 6c              ??         6Ch    l
        00102271 7d              ??         7Dh    }
        00102272 64              ??         64h    d
        00102273 7a              ??         7Ah    z
        00102274 6d              ??         6Dh    m
        00102275 67              ??         67h    g
        00102276 33              ??         33h    3
        00102277 74              ??         74h    t
        00102278 30              ??         30h    0
        00102279 32              ??         32h    2
        0010227a 34              ??         34h    4
        0010227b 36              ??         36h    6
        0010227c 36              ??         36h    6
        0010227d 68              ??         68h    h
        0010227e 75              ??         75h    u
        0010227f 31              ??         31h    1
        00102280 67              ??         67h    g
        00102281 6b              ??         6Bh    k
        00102282 70              ??         70h    p
        00102283 6d              ??         6Dh    m
        00102284 32              ??         32h    2
        00102285 78              ??         78h    x
        00102286 76              ??         76h    v
        00102287 38              ??         38h    8
        00102288 75              ??         75h    u
        00102289 7b              ??         7Bh    {
        0010228a 72              ??         72h    r
        0010228b 79              ??         79h    y
        0010228c 6e              ??         6Eh    n
        0010228d 30              ??         30h    0
        0010228e 73              ??         73h    s
        0010228f 31              ??         31h    1
        00102290 31              ??         31h    1
        00102291 75              ??         75h    u
        00102292 7a              ??         7Ah    z
        00102293 75              ??         75h    u
        00102294 5f              ??         5Fh    _
        00102295 34              ??         34h    4
        00102296 32              ??         32h    2
        00102297 36              ??         36h    6
        00102298 70              ??         70h    p
        00102299 38              ??         38h    8
        0010229a 6b              ??         6Bh    k
        0010229b 34              ??         34h    4
        0010229c 6f              ??         6Fh    o
        0010229d 77              ??         77h    w
        0010229e 62              ??         62h    b
        0010229f 32              ??         32h    2
        001022a0 31              ??         31h    1
        001022a1 66              ??         66h    f
        001022a2 33              ??         33h    3
        001022a3 62              ??         62h    b
        001022a4 75              ??         75h    u
        001022a5 6f              ??         6Fh    o
        001022a6 66              ??         66h    f
        001022a7 36              ??         36h    6
        001022a8 6f              ??         6Fh    o
        001022a9 6b              ??         6Bh    k
        001022aa 7b              ??         7Bh    {
        001022ab 63              ??         63h    c
        001022ac 70              ??         70h    p
        001022ad 39              ??         39h    9
        001022ae 73              ??         73h    s
        001022af 32              ??         32h    2
        001022b0 73              ??         73h    s
        001022b1 38              ??         38h    8
        001022b2 38              ??         38h    8
        001022b3 6b              ??         6Bh    k
        001022b4 33              ??         33h    3
        001022b5 79              ??         79h    y
        001022b6 68              ??         68h    h
        001022b7 7a              ??         7Ah    z
        001022b8 64              ??         64h    d
        001022b9 73              ??         73h    s
        001022ba 71              ??         71h    q
        001022bb 31              ??         31h    1
        001022bc 64              ??         64h    d
        001022bd 32              ??         32h    2
        001022be 75              ??         75h    u
        001022bf 37              ??         37h    7
        001022c0 6e              ??         6Eh    n
        001022c1 33              ??         33h    3
        001022c2 7d              ??         7Dh    }
        001022c3 39              ??         39h    9
        001022c4 65              ??         65h    e
        001022c5 78              ??         78h    x
        001022c6 7d              ??         7Dh    }
        001022c7 39              ??         39h    9
        001022c8 73              ??         73h    s
        001022c9 6c              ??         6Ch    l
        001022ca 79              ??         79h    y
        001022cb 30              ??         30h    0
        001022cc 70              ??         70h    p
        001022cd 30              ??         30h    0
        001022ce 7d              ??         7Dh    }
        001022cf 6c              ??         6Ch    l
        001022d0 70              ??         70h    p
        001022d1 35              ??         35h    5
        001022d2 79              ??         79h    y
        001022d3 78              ??         78h    x
        001022d4 64              ??         64h    d
        001022d5 69              ??         69h    i
        001022d6 37              ??         37h    7
        001022d7 6d              ??         6Dh    m
        001022d8 33              ??         33h    3
        001022d9 37              ??         37h    7
        001022da 5f              ??         5Fh    _
        001022db 70              ??         70h    p
        001022dc 38              ??         38h    8
        001022dd 32              ??         32h    2
        001022de 6f              ??         6Fh    o
        001022df 35              ??         35h    5
        001022e0 34              ??         34h    4
        001022e1 69              ??         69h    i
        001022e2 6d              ??         6Dh    m
        001022e3 31              ??         31h    1
        001022e4 7a              ??         7Ah    z
        001022e5 37              ??         37h    7
        001022e6 62              ??         62h    b
        001022e7 77              ??         77h    w
        001022e8 35              ??         35h    5
        001022e9 75              ??         75h    u
        001022ea 32              ??         32h    2
        001022eb 74              ??         74h    t
        001022ec 75              ??         75h    u
        001022ed 39              ??         39h    9
        001022ee 6e              ??         6Eh    n
        001022ef 32              ??         32h    2
        001022f0 6c              ??         6Ch    l
        001022f1 6f              ??         6Fh    o
        001022f2 79              ??         79h    y
        001022f3 62              ??         62h    b
        001022f4 6d              ??         6Dh    m
        001022f5 72              ??         72h    r
        001022f6 35              ??         35h    5
        001022f7 31              ??         31h    1
        001022f8 6a              ??         6Ah    j
        001022f9 69              ??         69h    i
        001022fa 68              ??         68h    h
        001022fb 38              ??         38h    8
        001022fc 6c              ??         6Ch    l
        001022fd 78              ??         78h    x
        001022fe 66              ??         66h    f
        001022ff 37              ??         37h    7
        00102300 7a              ??         7Ah    z
        00102301 36              ??         36h    6
        00102302 6e              ??         6Eh    n
        00102303 36              ??         36h    6
        00102304 32              ??         32h    2
        00102305 67              ??         67h    g
        00102306 6f              ??         6Fh    o
        00102307 68              ??         68h    h
        00102308 33              ??         33h    3
        00102309 5f              ??         5Fh    _
        0010230a 36              ??         36h    6
        0010230b 33              ??         33h    3
        0010230c 63              ??         63h    c
        0010230d 6e              ??         6Eh    n
        0010230e 6e              ??         6Eh    n
        0010230f 62              ??         62h    b
        00102310 66              ??         66h    f
        00102311 63              ??         63h    c
        00102312 7a              ??         7Ah    z
        00102313 68              ??         68h    h
        00102314 6d              ??         6Dh    m
        00102315 73              ??         73h    s
        00102316 79              ??         79h    y
        00102317 34              ??         34h    4
        00102318 70              ??         70h    p
        00102319 65              ??         65h    e
        0010231a 7d              ??         7Dh    }
        0010231b 69              ??         69h    i
        0010231c 6a              ??         6Ah    j
        0010231d 6c              ??         6Ch    l
        0010231e 75              ??         75h    u
        0010231f 71              ??         71h    q
        00102320 39              ??         39h    9
        00102321 78              ??         78h    x
        00102322 62              ??         62h    b
        00102323 6b              ??         6Bh    k
        00102324 6b              ??         6Bh    k
        00102325 34              ??         34h    4
        00102326 64              ??         64h    d
        00102327 7b              ??         7Bh    {
        00102328 63              ??         63h    c
        00102329 31              ??         31h    1
        0010232a 33              ??         33h    3
        0010232b 73              ??         73h    s
        0010232c 35              ??         35h    5
        0010232d 68              ??         68h    h
        0010232e 6a              ??         6Ah    j
        0010232f 6b              ??         6Bh    k
        00102330 6a              ??         6Ah    j
        00102331 6c              ??         6Ch    l
        00102332 64              ??         64h    d
        00102333 65              ??         65h    e
        00102334 77              ??         77h    w
        00102335 77              ??         77h    w
        00102336 39              ??         39h    9
        00102337 7a              ??         7Ah    z
        00102338 7d              ??         7Dh    }
        00102339 37              ??         37h    7
        0010233a 38              ??         38h    8
        0010233b 6f              ??         6Fh    o
        0010233c 79              ??         79h    y
        0010233d 74              ??         74h    t
        0010233e 31              ??         31h    1
        0010233f 70              ??         70h    p
        00102340 6f              ??         6Fh    o
        00102341 67              ??         67h    g
        00102342 35              ??         35h    5
        00102343 71              ??         71h    q
        00102344 75              ??         75h    u
        00102345 64              ??         64h    d
        00102346 7a              ??         7Ah    z
        00102347 7b              ??         7Bh    {
        00102348 36              ??         36h    6
        00102349 66              ??         66h    f
        0010234a 6b              ??         6Bh    k
        0010234b 77              ??         77h    w
        0010234c 5f              ??         5Fh    _
        0010234d 77              ??         77h    w
        0010234e 67              ??         67h    g
        0010234f 6f              ??         6Fh    o
        00102350 6e              ??         6Eh    n
        00102351 39              ??         39h    9
        00102352 39              ??         39h    9
        00102353 79              ??         79h    y
        00102354 63              ??         63h    c
        00102355 7b              ??         7Bh    {
        00102356 37              ??         37h    7
        00102357 76              ??         76h    v
        00102358 34              ??         34h    4
        00102359 73              ??         73h    s
        0010235a 61              ??         61h    a
        0010235b 6b              ??         6Bh    k
        0010235c 6a              ??         6Ah    j
        0010235d 36              ??         36h    6
        0010235e 70              ??         70h    p
        0010235f 64              ??         64h    d
        00102360 64              ??         64h    d
        00102361 6b              ??         6Bh    k
        00102362 35              ??         35h    5
        00102363 69              ??         69h    i
        00102364 31              ??         31h    1
        00102365 63              ??         63h    c
        00102366 5f              ??         5Fh    _
        00102367 31              ??         31h    1
        00102368 67              ??         67h    g
        00102369 37              ??         37h    7
        0010236a 34              ??         34h    4
        0010236b 65              ??         65h    e
        0010236c 5f              ??         5Fh    _
        0010236d 78              ??         78h    x
        0010236e 77              ??         77h    w
        0010236f 69              ??         69h    i
        00102370 76              ??         76h    v
        00102371 6b              ??         6Bh    k
        00102372 37              ??         37h    7
        00102373 6d              ??         6Dh    m
        00102374 6d              ??         6Dh    m
        00102375 62              ??         62h    b
        00102376 6d              ??         6Dh    m
        00102377 31              ??         31h    1
        00102378 36              ??         36h    6
        00102379 69              ??         69h    i
        0010237a 74              ??         74h    t
        0010237b 36              ??         36h    6
        0010237c 7a              ??         7Ah    z
        0010237d 78              ??         78h    x
        0010237e 66              ??         66h    f
        0010237f 63              ??         63h    c
        00102380 31              ??         31h    1
        00102381 79              ??         79h    y
        00102382 36              ??         36h    6
        00102383 73              ??         73h    s
        00102384 64              ??         64h    d
        00102385 7a              ??         7Ah    z
        00102386 7b              ??         7Bh    {
        00102387 30              ??         30h    0
        00102388 7a              ??         7Ah    z
        00102389 72              ??         72h    r
        0010238a 6d              ??         6Dh    m
        0010238b 75              ??         75h    u
        0010238c 76              ??         76h    v
        0010238d 79              ??         79h    y
        0010238e 73              ??         73h    s
        0010238f 62              ??         62h    b
        00102390 6c              ??         6Ch    l
        00102391 7d              ??         7Dh    }
        00102392 70              ??         70h    p
        00102393 6d              ??         6Dh    m
        00102394 77              ??         77h    w
        00102395 38              ??         38h    8
        00102396 7a              ??         7Ah    z
        00102397 36              ??         36h    6
        00102398 6a              ??         6Ah    j
        00102399 62              ??         62h    b
        0010239a 38              ??         38h    8
        0010239b 65              ??         65h    e
        0010239c 6a              ??         6Ah    j
        0010239d 6d              ??         6Dh    m
        0010239e 72              ??         72h    r
        0010239f 71              ??         71h    q
        001023a0 6b              ??         6Bh    k
        001023a1 6e              ??         6Eh    n
        001023a2 78              ??         78h    x
        001023a3 62              ??         62h    b
        001023a4 75              ??         75h    u
        001023a5 35              ??         35h    5
        001023a6 77              ??         77h    w
        001023a7 34              ??         34h    4
        001023a8 73              ??         73h    s
        001023a9 76              ??         76h    v
        001023aa 35              ??         35h    5
        001023ab 34              ??         34h    4
        001023ac 32              ??         32h    2
        001023ad 70              ??         70h    p
        001023ae 6c              ??         6Ch    l
        001023af 6e              ??         6Eh    n
        001023b0 7a              ??         7Ah    z
        001023b1 73              ??         73h    s
        001023b2 38              ??         38h    8
        001023b3 5f              ??         5Fh    _
        001023b4 7d              ??         7Dh    }
        001023b5 7a              ??         7Ah    z
        001023b6 6e              ??         6Eh    n
        001023b7 79              ??         79h    y
        001023b8 71              ??         71h    q
        001023b9 36              ??         36h    6
        001023ba 62              ??         62h    b
        001023bb 36              ??         36h    6
        001023bc 78              ??         78h    x
        001023bd 36              ??         36h    6
        001023be 37              ??         37h    7
        001023bf 61              ??         61h    a
        001023c0 72              ??         72h    r
        001023c1 30              ??         30h    0
        001023c2 6c              ??         6Ch    l
        001023c3 73              ??         73h    s
        001023c4 71              ??         71h    q
        001023c5 30              ??         30h    0
        001023c6 34              ??         34h    4
        001023c7 71              ??         71h    q
        001023c8 75              ??         75h    u
        001023c9 37              ??         37h    7
        001023ca 34              ??         34h    4
        001023cb 32              ??         32h    2
        001023cc 75              ??         75h    u
        001023cd 65              ??         65h    e
        001023ce 6e              ??         6Eh    n
        001023cf 70              ??         70h    p
        001023d0 34              ??         34h    4
        001023d1 75              ??         75h    u
        001023d2 66              ??         66h    f
        001023d3 6f              ??         6Fh    o
        001023d4 78              ??         78h    x
        001023d5 7a              ??         7Ah    z
        001023d6 37              ??         37h    7
        001023d7 69              ??         69h    i
        001023d8 72              ??         72h    r
        001023d9 38              ??         38h    8
        001023da 67              ??         67h    g
        001023db 7a              ??         7Ah    z
        001023dc 6f              ??         6Fh    o
        001023dd 68              ??         68h    h
        001023de 69              ??         69h    i
        001023df 33              ??         33h    3
        001023e0 35              ??         35h    5
        001023e1 32              ??         32h    2
        001023e2 7d              ??         7Dh    }
        001023e3 37              ??         37h    7
        001023e4 7b              ??         7Bh    {
        001023e5 39              ??         39h    9
        001023e6 68              ??         68h    h
        001023e7 6b              ??         6Bh    k
        001023e8 7b              ??         7Bh    {
        001023e9 79              ??         79h    y
        001023ea 75              ??         75h    u
        001023eb 34              ??         34h    4
        001023ec 5f              ??         5Fh    _
        001023ed 7a              ??         7Ah    z
        001023ee 62              ??         62h    b
        001023ef 6a              ??         6Ah    j
        001023f0 37              ??         37h    7
        001023f1 67              ??         67h    g
        001023f2 6d              ??         6Dh    m
        001023f3 76              ??         76h    v
        001023f4 6c              ??         6Ch    l
        001023f5 7b              ??         7Bh    {
        001023f6 63              ??         63h    c
        001023f7 5f              ??         5Fh    _
        001023f8 32              ??         32h    2
        001023f9 34              ??         34h    4
        001023fa 77              ??         77h    w
        001023fb 65              ??         65h    e
        001023fc 68              ??         68h    h
        001023fd 38              ??         38h    8
        001023fe 72              ??         72h    r
        001023ff 77              ??         77h    w
        00102400 78              ??         78h    x
        00102401 70              ??         70h    p
        00102402 5f              ??         5Fh    _
        00102403 32              ??         32h    2
        00102404 34              ??         34h    4
        00102405 64              ??         64h    d
        00102406 68              ??         68h    h
        00102407 70              ??         70h    p
        00102408 7b              ??         7Bh    {
        00102409 67              ??         67h    g
        0010240a 69              ??         69h    i
        0010240b 76              ??         76h    v
        0010240c 39              ??         39h    9
        0010240d 6b              ??         6Bh    k
        0010240e 7d              ??         7Dh    }
        0010240f 67              ??         67h    g
        00102410 7a              ??         7Ah    z
        00102411 38              ??         38h    8
        00102412 34              ??         34h    4
        00102413 30              ??         30h    0
        00102414 75              ??         75h    u
        00102415 65              ??         65h    e
        00102416 7a              ??         7Ah    z
        00102417 71              ??         71h    q
        00102418 6b              ??         6Bh    k
        00102419 39              ??         39h    9
        0010241a 73              ??         73h    s
        0010241b 7d              ??         7Dh    }
        0010241c 71              ??         71h    q
        0010241d 78              ??         78h    x
        0010241e 69              ??         69h    i
        0010241f 7b              ??         7Bh    {
        00102420 32              ??         32h    2
        00102421 75              ??         75h    u
        00102422 32              ??         32h    2
        00102423 6c              ??         6Ch    l
        00102424 62              ??         62h    b
        00102425 62              ??         62h    b
        00102426 74              ??         74h    t
        00102427 34              ??         34h    4
        00102428 69              ??         69h    i
        00102429 7d              ??         7Dh    }
        0010242a 6b              ??         6Bh    k
        0010242b 71              ??         71h    q
        0010242c 38              ??         38h    8
        0010242d 67              ??         67h    g
        0010242e 6f              ??         6Fh    o
        0010242f 6d              ??         6Dh    m
        00102430 72              ??         72h    r
        00102431 71              ??         71h    q
        00102432 65              ??         65h    e
        00102433 77              ??         77h    w
        00102434 76              ??         76h    v
        00102435 72              ??         72h    r
        00102436 6a              ??         6Ah    j
        00102437 36              ??         36h    6
        00102438 35              ??         35h    5
        00102439 64              ??         64h    d
        0010243a 67              ??         67h    g
        0010243b 77              ??         77h    w
        0010243c 61              ??         61h    a
        0010243d 6f              ??         6Fh    o
        0010243e 69              ??         69h    i
        0010243f 74              ??         74h    t
        00102440 63              ??         63h    c
        00102441 39              ??         39h    9
        00102442 39              ??         39h    9
        00102443 79              ??         79h    y
        00102444 68              ??         68h    h
        00102445 34              ??         34h    4
        00102446 6a              ??         6Ah    j
        00102447 65              ??         65h    e
        00102448 73              ??         73h    s
        00102449 74              ??         74h    t
        0010244a 36              ??         36h    6
        0010244b 73              ??         73h    s
        0010244c 63              ??         63h    c
        0010244d 63              ??         63h    c
        0010244e 6e              ??         6Eh    n
        0010244f 7a              ??         7Ah    z
        00102450 32              ??         32h    2
        00102451 77              ??         77h    w
        00102452 6c              ??         6Ch    l
        00102453 67              ??         67h    g
        00102454 6d              ??         6Dh    m
        00102455 61              ??         61h    a
        00102456 70              ??         70h    p
        00102457 36              ??         36h    6
        00102458 66              ??         66h    f
        00102459 39              ??         39h    9
        0010245a 6b              ??         6Bh    k
        0010245b 30              ??         30h    0
        0010245c 34              ??         34h    4
        0010245d 6c              ??         6Ch    l
        0010245e 68              ??         68h    h
        0010245f 61              ??         61h    a
        00102460 6e              ??         6Eh    n
        00102461 63              ??         63h    c
        00102462 33              ??         33h    3
        00102463 77              ??         77h    w
        00102464 6d              ??         6Dh    m
        00102465 67              ??         67h    g
        00102466 70              ??         70h    p
        00102467 6a              ??         6Ah    j
        00102468 36              ??         36h    6
        00102469 78              ??         78h    x
        0010246a 61              ??         61h    a
        0010246b 77              ??         77h    w
        0010246c 6c              ??         6Ch    l
        0010246d 6e              ??         6Eh    n
        0010246e 5f              ??         5Fh    _
        0010246f 6a              ??         6Ah    j
        00102470 63              ??         63h    c
        00102471 65              ??         65h    e
        00102472 36              ??         36h    6
        00102473 63              ??         63h    c
        00102474 36              ??         36h    6
        00102475 76              ??         76h    v
        00102476 66              ??         66h    f
        00102477 74              ??         74h    t
        00102478 74              ??         74h    t
        00102479 75              ??         75h    u
        0010247a 7b              ??         7Bh    {
        0010247b 7a              ??         7Ah    z
        0010247c 77              ??         77h    w
        0010247d 73              ??         73h    s
        0010247e 34              ??         34h    4
        0010247f 6f              ??         6Fh    o
        00102480 64              ??         64h    d
        00102481 6f              ??         6Fh    o
        00102482 6d              ??         6Dh    m
        00102483 37              ??         37h    7
        00102484 7b              ??         7Bh    {
        00102485 68              ??         68h    h
        00102486 35              ??         35h    5
        00102487 68              ??         68h    h
        00102488 65              ??         65h    e
        00102489 77              ??         77h    w
        0010248a 72              ??         72h    r
        0010248b 5f              ??         5Fh    _
        0010248c 7b              ??         7Bh    {
        0010248d 35              ??         35h    5
        0010248e 7d              ??         7Dh    }
        0010248f 36              ??         36h    6
        00102490 66              ??         66h    f
        00102491 74              ??         74h    t
        00102492 79              ??         79h    y
        00102493 34              ??         34h    4
        00102494 61              ??         61h    a
        00102495 31              ??         31h    1
        00102496 34              ??         34h    4
        00102497 61              ??         61h    a
        00102498 72              ??         72h    r
        00102499 36              ??         36h    6
        0010249a 34              ??         34h    4
        0010249b 71              ??         71h    q
        0010249c 31              ??         31h    1
        0010249d 76              ??         76h    v
        0010249e 76              ??         76h    v
        0010249f 67              ??         67h    g
        001024a0 30              ??         30h    0
        001024a1 73              ??         73h    s
        001024a2 32              ??         32h    2
        001024a3 38              ??         38h    8
        001024a4 7a              ??         7Ah    z
        001024a5 73              ??         73h    s
        001024a6 69              ??         69h    i
        001024a7 6b              ??         6Bh    k
        001024a8 7d              ??         7Dh    }
        001024a9 6e              ??         6Eh    n
        001024aa 68              ??         68h    h
        001024ab 70              ??         70h    p
        001024ac 6d              ??         6Dh    m
        001024ad 77              ??         77h    w
        001024ae 7d              ??         7Dh    }
        001024af 6a              ??         6Ah    j
        001024b0 39              ??         39h    9
        001024b1 32              ??         32h    2
        001024b2 73              ??         73h    s
        001024b3 34              ??         34h    4
        001024b4 32              ??         32h    2
        001024b5 6b              ??         6Bh    k
        001024b6 7d              ??         7Dh    }
        001024b7 7a              ??         7Ah    z
        001024b8 7a              ??         7Ah    z
        001024b9 78              ??         78h    x
        001024ba 78              ??         78h    x
        001024bb 30              ??         30h    0
        001024bc 62              ??         62h    b
        001024bd 6e              ??         6Eh    n
        001024be 37              ??         37h    7
        001024bf 63              ??         63h    c
        001024c0 64              ??         64h    d
        001024c1 64              ??         64h    d
        001024c2 6b              ??         6Bh    k
        001024c3 37              ??         37h    7
        001024c4 30              ??         30h    0
        001024c5 69              ??         69h    i
        001024c6 77              ??         77h    w
        001024c7 34              ??         34h    4
        001024c8 7b              ??         7Bh    {
        001024c9 66              ??         66h    f
        001024ca 38              ??         38h    8
        001024cb 77              ??         77h    w
        001024cc 71              ??         71h    q
        001024cd 67              ??         67h    g
        001024ce 75              ??         75h    u
        001024cf 79              ??         79h    y
        001024d0 6a              ??         6Ah    j
        001024d1 36              ??         36h    6
        001024d2 61              ??         61h    a
        001024d3 35              ??         35h    5
        001024d4 38              ??         38h    8
        001024d5 73              ??         73h    s
        001024d6 30              ??         30h    0
        001024d7 75              ??         75h    u
        001024d8 32              ??         32h    2
        001024d9 7d              ??         7Dh    }
        001024da 78              ??         78h    x
        001024db 7a              ??         7Ah    z
        001024dc 77              ??         77h    w
        001024dd 68              ??         68h    h
        001024de 7b              ??         7Bh    {
        001024df 30              ??         30h    0
        001024e0 76              ??         76h    v
        001024e1 64              ??         64h    d
        001024e2 61              ??         61h    a
        001024e3 77              ??         77h    w
        001024e4 64              ??         64h    d
        001024e5 67              ??         67h    g
        001024e6 65              ??         65h    e
        001024e7 38              ??         38h    8
        001024e8 6e              ??         6Eh    n
        001024e9 38              ??         38h    8
        001024ea 38              ??         38h    8
        001024eb 6a              ??         6Ah    j
        001024ec 36              ??         36h    6
        001024ed 6d              ??         6Dh    m
        001024ee 73              ??         73h    s
        001024ef 38              ??         38h    8
        001024f0 75              ??         75h    u
        001024f1 76              ??         76h    v
        001024f2 74              ??         74h    t
        001024f3 5f              ??         5Fh    _
        001024f4 72              ??         72h    r
        001024f5 34              ??         34h    4
        001024f6 68              ??         68h    h
        001024f7 65              ??         65h    e
        001024f8 7a              ??         7Ah    z
        001024f9 76              ??         76h    v
        001024fa 65              ??         65h    e
        001024fb 69              ??         69h    i
        001024fc 33              ??         33h    3
        001024fd 75              ??         75h    u
        001024fe 32              ??         32h    2
        001024ff 6b              ??         6Bh    k
        00102500 31              ??         31h    1
        00102501 37              ??         37h    7
        00102502 39              ??         39h    9
        00102503 74              ??         74h    t
        00102504 6c              ??         6Ch    l
        00102505 65              ??         65h    e
        00102506 70              ??         70h    p
        00102507 75              ??         75h    u
        00102508 6e              ??         6Eh    n
        00102509 7b              ??         7Bh    {
        0010250a 63              ??         63h    c
        0010250b 31              ??         31h    1
        0010250c 6c              ??         6Ch    l
        0010250d 30              ??         30h    0
        0010250e 32              ??         32h    2
        0010250f 5f              ??         5Fh    _
        00102510 65              ??         65h    e
        00102511 39              ??         39h    9
        00102512 32              ??         32h    2
        00102513 69              ??         69h    i
        00102514 6a              ??         6Ah    j
        00102515 6b              ??         6Bh    k
        00102516 39              ??         39h    9
        00102517 78              ??         78h    x
        00102518 78              ??         78h    x
        00102519 30              ??         30h    0
        0010251a 6f              ??         6Fh    o
        0010251b 5f              ??         5Fh    _
        0010251c 61              ??         61h    a
        0010251d 38              ??         38h    8
        0010251e 67              ??         67h    g
        0010251f 77              ??         77h    w
        00102520 6e              ??         6Eh    n
        00102521 6d              ??         6Dh    m
        00102522 70              ??         70h    p
        00102523 31              ??         31h    1
        00102524 6a              ??         6Ah    j
        00102525 72              ??         72h    r
        00102526 39              ??         39h    9
        00102527 67              ??         67h    g
        00102528 74              ??         74h    t
        00102529 6b              ??         6Bh    k
        0010252a 32              ??         32h    2
        0010252b 7b              ??         7Bh    {
        0010252c 63              ??         63h    c
        0010252d 71              ??         71h    q
        0010252e 37              ??         37h    7
        0010252f 71              ??         71h    q
        00102530 6e              ??         6Eh    n
        00102531 6d              ??         6Dh    m
        00102532 72              ??         72h    r
        00102533 70              ??         70h    p
        00102534 68              ??         68h    h
        00102535 76              ??         76h    v
        00102536 79              ??         79h    y
        00102537 65              ??         65h    e
        00102538 63              ??         63h    c
        00102539 70              ??         70h    p
        0010253a 73              ??         73h    s
        0010253b 7d              ??         7Dh    }
        0010253c 36              ??         36h    6
        0010253d 33              ??         33h    3
        0010253e 63              ??         63h    c
        0010253f 71              ??         71h    q
        00102540 76              ??         76h    v
        00102541 78              ??         78h    x
        00102542 63              ??         63h    c
        00102543 79              ??         79h    y
        00102544 7b              ??         7Bh    {
        00102545 69              ??         69h    i
        00102546 35              ??         35h    5
        00102547 7d              ??         7Dh    }
        00102548 64              ??         64h    d
        00102549 32              ??         32h    2
        0010254a 72              ??         72h    r
        0010254b 31              ??         31h    1
        0010254c 72              ??         72h    r
        0010254d 7b              ??         7Bh    {
        0010254e 72              ??         72h    r
        0010254f 67              ??         67h    g
        00102550 31              ??         31h    1
        00102551 6e              ??         6Eh    n
        00102552 7d              ??         7Dh    }
        00102553 6e              ??         6Eh    n
        00102554 75              ??         75h    u
        00102555 66              ??         66h    f
        00102556 6d              ??         6Dh    m
        00102557 37              ??         37h    7
        00102558 73              ??         73h    s
        00102559 75              ??         75h    u
        0010255a 65              ??         65h    e
        0010255b 33              ??         33h    3
        0010255c 37              ??         37h    7
        0010255d 38              ??         38h    8
        0010255e 75              ??         75h    u
        0010255f 77              ??         77h    w
        00102560 64              ??         64h    d
        00102561 71              ??         71h    q
        00102562 65              ??         65h    e
        00102563 39              ??         39h    9
        00102564 65              ??         65h    e
        00102565 7a              ??         7Ah    z
        00102566 73              ??         73h    s
        00102567 63              ??         63h    c
        00102568 78              ??         78h    x
        00102569 6f              ??         6Fh    o
        0010256a 71              ??         71h    q
        0010256b 39              ??         39h    9
        0010256c 30              ??         30h    0
        0010256d 6e              ??         6Eh    n
        0010256e 6d              ??         6Dh    m
        0010256f 65              ??         65h    e
        00102570 37              ??         37h    7
        00102571 36              ??         36h    6
        00102572 7d              ??         7Dh    }
        00102573 6a              ??         6Ah    j
        00102574 78              ??         78h    x
        00102575 34              ??         34h    4
        00102576 7d              ??         7Dh    }
        00102577 7d              ??         7Dh    }
        00102578 62              ??         62h    b
        00102579 38              ??         38h    8
        0010257a 61              ??         61h    a
        0010257b 68              ??         68h    h
        0010257c 65              ??         65h    e
        0010257d 5f              ??         5Fh    _
        0010257e 70              ??         70h    p
        0010257f 61              ??         61h    a
        00102580 62              ??         62h    b
        00102581 79              ??         79h    y
        00102582 32              ??         32h    2
        00102583 71              ??         71h    q
        00102584 78              ??         78h    x
        00102585 71              ??         71h    q
        00102586 77              ??         77h    w
        00102587 6f              ??         6Fh    o
        00102588 70              ??         70h    p
        00102589 36              ??         36h    6
        0010258a 33              ??         33h    3
        0010258b 6b              ??         6Bh    k
        0010258c 63              ??         63h    c
        0010258d 36              ??         36h    6
        0010258e 65              ??         65h    e
        0010258f 75              ??         75h    u
        00102590 6a              ??         6Ah    j
        00102591 73              ??         73h    s
        00102592 37              ??         37h    7
        00102593 7d              ??         7Dh    }
        00102594 66              ??         66h    f
        00102595 39              ??         39h    9
        00102596 30              ??         30h    0
        00102597 70              ??         70h    p
        00102598 6b              ??         6Bh    k
        00102599 6b              ??         6Bh    k
        0010259a 69              ??         69h    i
        0010259b 64              ??         64h    d
        0010259c 64              ??         64h    d
        0010259d 6c              ??         6Ch    l
        0010259e 76              ??         76h    v
        0010259f 66              ??         66h    f
        001025a0 6f              ??         6Fh    o
        001025a1 62              ??         62h    b
        001025a2 62              ??         62h    b
        001025a3 32              ??         32h    2
        001025a4 34              ??         34h    4
        001025a5 77              ??         77h    w
        001025a6 6a              ??         6Ah    j
        001025a7 35              ??         35h    5
        001025a8 32              ??         32h    2
        001025a9 77              ??         77h    w
        001025aa 7a              ??         7Ah    z
        001025ab 75              ??         75h    u
        001025ac 32              ??         32h    2
        001025ad 63              ??         63h    c
        001025ae 6e              ??         6Eh    n
        001025af 68              ??         68h    h
        001025b0 6f              ??         6Fh    o
        001025b1 61              ??         61h    a
        001025b2 5f              ??         5Fh    _
        001025b3 70              ??         70h    p
        001025b4 34              ??         34h    4
        001025b5 6a              ??         6Ah    j
        001025b6 6a              ??         6Ah    j
        001025b7 77              ??         77h    w
        001025b8 34              ??         34h    4
        001025b9 6e              ??         6Eh    n
        001025ba 68              ??         68h    h
        001025bb 39              ??         39h    9
        001025bc 6b              ??         6Bh    k
        001025bd 72              ??         72h    r
        001025be 35              ??         35h    5
        001025bf 67              ??         67h    g
        001025c0 69              ??         69h    i
        001025c1 66              ??         66h    f
        001025c2 30              ??         30h    0
        001025c3 34              ??         34h    4
        001025c4 6f              ??         6Fh    o
        001025c5 6a              ??         6Ah    j
        001025c6 62              ??         62h    b
        001025c7 68              ??         68h    h
        001025c8 31              ??         31h    1
        001025c9 65              ??         65h    e
        001025ca 5f              ??         5Fh    _
        001025cb 65              ??         65h    e
        001025cc 65              ??         65h    e
        001025cd 63              ??         63h    c
        001025ce 31              ??         31h    1
        001025cf 32              ??         32h    2
        001025d0 00              ??         00h

この情報を元にフラグを構成する。

indexes = [496, 402, 802, 228, 758, 756, 630, 634, 726, 206, 142, 829, 459,
    211, 294, 554, 293, 685, 427, 628, 279, 930, 459, 353, 251, 650, 169, 534,
    322, 47, 538, 805, 534, 356, 484, 441, 735, 489, 61, 510, 723, 417, 151,
    170, 291, 728, 388, 727, 144, 20, 217, 91, 838, 604, 503, 438, 186, 445,
    516, 248, 309, 332, 179, 859, 233, 9, 451, 819, 929, 206, 759, 79, 884,
    356, 184, 705, 459, 879, 98, 291, 917, 79, 302, 445, 520, 322, 239, 459,
    872, 750, 13, 650, 994, 904, 922, 933, 242, 229, 759, 230]

values = ['s', '}', 'y', 'v', 'z', 'e', 'z', 'q', 'r', '_', '6', 'x', '4', '5',
    'j', 'x', '2', 'y', 'p', '4', 'd', '3', '8', 'q', 'q', '1', 'm', 'v', 'n',
    's', 'l', '0', 'u', '7', 'w', '3', '2', 'l', 'r', '1', '2', 'g', 'i', '}',
    't', '3', 'i', '5', 'k', 'w', '0', 'o', 'e', 'w', 'k', 'q', 'b', '_', 'v',
    'v', '6', '7', '2', '6', '}', '}', '9', '5', 'c', 'm', 'f', 'y', '_', 'j',
    'f', 'g', 'y', 'x', '2', '5', 'n', '1', 'e', '9', 'c', 'u', 'y', 'v', 's',
    'o', 'r', '_', '0', 'm', 'i', 'j', 'c', 'n', 'h', 'o', 'a', '2', 'k', 'p',
    'v', 'd', 't', 'j', 'd', '9', 'j', 's', '2', 'k', 's', 't', 'b', 'e', '5',
    '}', 's', '6', 'z', 'g', 'y', 'i', 'l', '6', 'q', 'x', 't', 'r', '}', 'w',
    'b', 'o', 'l', '}', 'd', 'z', 'm', 'g', '3', 't', '0', '2', '4', '6', '6',
    'h', 'u', '1', 'g', 'k', 'p', 'm', '2', 'x', 'v', '8', 'u', '{', 'r', 'y',
    'n', '0', 's', '1', '1', 'u', 'z', 'u', '_', '4', '2', '6', 'p', '8', 'k',
    '4', 'o', 'w', 'b', '2', '1', 'f', '3', 'b', 'u', 'o', 'f', '6', 'o', 'k',
    '{', 'c', 'p', '9', 's', '2', 's', '8', '8', 'k', '3', 'y', 'h', 'z', 'd',
    's', 'q', '1', 'd', '2', 'u', '7', 'n', '3', '}', '9', 'e', 'x', '}', '9',
    's', 'l', 'y', '0', 'p', '0', '}', 'l', 'p', '5', 'y', 'x', 'd', 'i', '7',
    'm', '3', '7', '_', 'p', '8', '2', 'o', '5', '4', 'i', 'm', '1', 'z', '7',
    'b', 'w', '5', 'u', '2', 't', 'u', '9', 'n', '2', 'l', 'o', 'y', 'b', 'm',
    'r', '5', '1', 'j', 'i', 'h', '8', 'l', 'x', 'f', '7', 'z', '6', 'n', '6',
    '2', 'g', 'o', 'h', '3', '_', '6', '3', 'c', 'n', 'n', 'b', 'f', 'c', 'z',
    'h', 'm', 's', 'y', '4', 'p', 'e', '}', 'i', 'j', 'l', 'u', 'q', '9', 'x',
    'b', 'k', 'k', '4', 'd', '{', 'c', '1', '3', 's', '5', 'h', 'j', 'k', 'j',
    'l', 'd', 'e', 'w', 'w', '9', 'z', '}', '7', '8', 'o', 'y', 't', '1', 'p',
    'o', 'g', '5', 'q', 'u', 'd', 'z', '{', '6', 'f', 'k', 'w', '_', 'w', 'g',
    'o', 'n', '9', '9', 'y', 'c', '{', '7', 'v', '4', 's', 'a', 'k', 'j', '6',
    'p', 'd', 'd', 'k', '5', 'i', '1', 'c', '_', '1', 'g', '7', '4', 'e', '_',
    'x', 'w', 'i', 'v', 'k', '7', 'm', 'm', 'b', 'm', '1', '6', 'i', 't', '6',
    'z', 'x', 'f', 'c', '1', 'y', '6', 's', 'd', 'z', '{', '0', 'z', 'r', 'm',
    'u', 'v', 'y', 's', 'b', 'l', '}', 'p', 'm', 'w', '8', 'z', '6', 'j', 'b',
    '8', 'e', 'j', 'm', 'r', 'q', 'k', 'n', 'x', 'b', 'u', '5', 'w', '4', 's',
    'v', '5', '4', '2', 'p', 'l', 'n', 'z', 's', '8', '_', '}', 'z', 'n', 'y',
    'q', '6', 'b', '6', 'x', '6', '7', 'a', 'r', '0', 'l', 's', 'q', '0', '4',
    'q', 'u', '7', '4', '2', 'u', 'e', 'n', 'p', '4', 'u', 'f', 'o', 'x', 'z',
    '7', 'i', 'r', '8', 'g', 'z', 'o', 'h', 'i', '3', '5', '2', '}', '7', '{',
    '9', 'h', 'k', '{', 'y', 'u', '4', '_', 'z', 'b', 'j', '7', 'g', 'm', 'v',
    'l', '{', 'c', '_', '2', '4', 'w', 'e', 'h', '8', 'r', 'w', 'x', 'p', '_',
    '2', '4', 'd', 'h', 'p', '{', 'g', 'i', 'v', '9', 'k', '}', 'g', 'z', '8',
    '4', '0', 'u', 'e', 'z', 'q', 'k', '9', 's', '}', 'q', 'x', 'i', '{', '2',
    'u', '2', 'l', 'b', 'b', 't', '4', 'i', '}', 'k', 'q', '8', 'g', 'o', 'm',
    'r', 'q', 'e', 'w', 'v', 'r', 'j', '6', '5', 'd', 'g', 'w', 'a', 'o', 'i',
    't', 'c', '9', '9', 'y', 'h', '4', 'j', 'e', 's', 't', '6', 's', 'c', 'c',
    'n', 'z', '2', 'w', 'l', 'g', 'm', 'a', 'p', '6', 'f', '9', 'k', '0', '4',
    'l', 'h', 'a', 'n', 'c', '3', 'w', 'm', 'g', 'p', 'j', '6', 'x', 'a', 'w',
    'l', 'n', '_', 'j', 'c', 'e', '6', 'c', '6', 'v', 'f', 't', 't', 'u', '{',
    'z', 'w', 's', '4', 'o', 'd', 'o', 'm', '7', '{', 'h', '5', 'h', 'e', 'w',
    'r', '_', '{', '5', '}', '6', 'f', 't', 'y', '4', 'a', '1', '4', 'a', 'r',
    '6', '4', 'q', '1', 'v', 'v', 'g', '0', 's', '2', '8', 'z', 's', 'i', 'k',
    '}', 'n', 'h', 'p', 'm', 'w', '}', 'j', '9', '2', 's', '4', '2', 'k', '}',
    'z', 'z', 'x', 'x', '0', 'b', 'n', '7', 'c', 'd', 'd', 'k', '7', '0', 'i',
    'w', '4', '{', 'f', '8', 'w', 'q', 'g', 'u', 'y', 'j', '6', 'a', '5', '8',
    's', '0', 'u', '2', '}', 'x', 'z', 'w', 'h', '{', '0', 'v', 'd', 'a', 'w',
    'd', 'g', 'e', '8', 'n', '8', '8', 'j', '6', 'm', 's', '8', 'u', 'v', 't',
    '_', 'r', '4', 'h', 'e', 'z', 'v', 'e', 'i', '3', 'u', '2', 'k', '1', '7',
    '9', 't', 'l', 'e', 'p', 'u', 'n', '{', 'c', '1', 'l', '0', '2', '_', 'e',
    '9', '2', 'i', 'j', 'k', '9', 'x', 'x', '0', 'o', '_', 'a', '8', 'g', 'w',
    'n', 'm', 'p', '1', 'j', 'r', '9', 'g', 't', 'k', '2', '{', 'c', 'q', '7',
    'q', 'n', 'm', 'r', 'p', 'h', 'v', 'y', 'e', 'c', 'p', 's', '}', '6', '3',
    'c', 'q', 'v', 'x', 'c', 'y', '{', 'i', '5', '}', 'd', '2', 'r', '1', 'r',
    '{', 'r', 'g', '1', 'n', '}', 'n', 'u', 'f', 'm', '7', 's', 'u', 'e', '3',
    '7', '8', 'u', 'w', 'd', 'q', 'e', '9', 'e', 'z', 's', 'c', 'x', 'o', 'q',
    '9', '0', 'n', 'm', 'e', '7', '6', '}', 'j', 'x', '4', '}', '}', 'b', '8',
    'a', 'h', 'e', '_', 'p', 'a', 'b', 'y', '2', 'q', 'x', 'q', 'w', 'o', 'p',
    '6', '3', 'k', 'c', '6', 'e', 'u', 'j', 's', '7', '}', 'f', '9', '0', 'p',
    'k', 'k', 'i', 'd', 'd', 'l', 'v', 'f', 'o', 'b', 'b', '2', '4', 'w', 'j',
    '5', '2', 'w', 'z', 'u', '2', 'c', 'n', 'h', 'o', 'a', '_', 'p', '4', 'j',
    'j', 'w', '4', 'n', 'h', '9', 'k', 'r', '5', 'g', 'i', 'f', '0', '4', 'o',
    'j', 'b', 'h', '1', 'e', '_', 'e', 'e', 'c', '1', '2']

flag = ''
for index in indexes:
    flag += values[index]

print flag
rtcp{wh37h3r_1n4n1m473_f16ur35_0r_un4u7h0r1z3d_c0d3_7h3r35_4lw4y5_4_6h057_1n_7h3_5y573m_1056_726_00}

HOOOOOOOOOOMEEEEEE RUNNNNNNNNNNNNN!!!!! (Cryptography 50)

Ascii85デコードする。

#!/usr/bin/env python3
import base64

enc = 'Ecbf1HZ_kd8jR5K?[";(7;aJp?[4>J?Slk3<+n\'pF]W^,F>._lB/=r'

flag = base64.a85decode(enc)
print(flag)
rtcp{uH_JAk3_w3REn't_y0u_4t_Th3_uWust0r4g3}

Don't Give The GIANt a COOKie (Cryptography 100)

md5が69acad26c0b7fa29d2df023b4744bf07になるパスワードをrockyou.txtからブルートフォースで探す。

import hashlib

with open('dict/rockyou.txt', 'r') as f:
    lines = f.readlines()

for line in lines:
    word = line.rstrip()
    if hashlib.md5(word).hexdigest() == '69acad26c0b7fa29d2df023b4744bf07':
        break

flag = 'rtcp{%s}' % word
print flag
rtcp{chocolate mmm}

15 (Cryptography 100)

暗号化されている長文が与えられている。換字式暗号と推測して、quipqiupで復号する。

Number fifteen: Burger King Foot Lettuce

The last thing you'd want in your Burger King burger is someone's foot fungus. But as it turns out, that might be what you get. A 4channer uploaded a photo anonymously to the site showcasing his feet in a plastic bin of lettuce, with the statement: "This is the lettuce you eat at Burger King." Admittedly, he had shoes on. But that's even worse.

The post went live at 11:38 PM on July 16, and a mere twenty minutes later, the Burger King in question was alerted to the rogue employee. At least, I hope he's rogue. How did it happen? Well, the BK employee hadn't removed the EXIF data from the uploaded photo, which suggested the culprit was somewhere in Mayfield Heights, Ohio. This was at 11:47. Three minutes later at 11:50, the Burger King branch address was posted with wishes of happy unemployment. Five minutes later, the news station was contacted by another 4channer. And three minutes later, at 11:58, a link was posted: BK's "Tell us about us" online forum. The foot photo, otherwise known as exhibit A, was attached. Cleveland Scene Magazine contacted the BK in question the next day. When questioned, the breakfast shift manager said "Oh, I know who that is. He's getting fired." Mystery solved, by 4chan. Now we can all go back to eating our fast food in peace.

rtcp{c4R3Ful_w1tH_3X1f_d4T4}
rtcp{c4R3Ful_w1tH_3X1f_d4T4}

notice me senpai (Cryptography 100)

Rail Fence Cipherと推定し、rtcpで始まることを考慮して復号を試す。
レール本数が7の場合はこうなる。

.x...........x...........x....
x.x.........x.x.........x.x...
...x.......x...x.......x...x..
....x.....x.....x.....x.....x.
.....x...x.......x...x.......x
......x.x.........x.x.........
.......x...........x..........

.t...........l...........y....
r.c........._.o........._.0...
...p.......n...v.......h...u..
....}.....x.....x.....x.....x.
.....x...x.......x...x.......x
......x.x.........x.x.........
.......x...........x..........

"}"の位置がおかしくなる。レール本数を6にしてみる。

.x.........x.........x........
x.x.......x.x.......x.x.......
...x.....x...x.....x...x.....x
....x...x.....x...x.....x...x.
.....x.x.......x.x.......x.x..
......x.........x.........x...

.t.........l.........y........
r.c......._.o......._.0.......
...p.....n...v.....h...u.....}
....{...1.....3...7.....r...m.
.....i._......._.i......._.o..
......m.........w.........m...

フラグになった。

rtcp{im_1n_lov3_wi7h_y0ur_mom}

That's Some Interesting Tea(rs)....... (Cryptography 175)

以下のように順にデコードする。

base32デコード⇒base58デコード⇒base62デコード⇒base64デコード⇒base85デコード
#!/usr/bin/env python3
import base64
import base58
import base62

enc = 'O53GG4CSJRHEWQT2GJ5HC4CGOM4VKY3SOZGECZ2YNJTXO6LROV3DIR3CK4ZEMWCDHFMTOWSXGRSHU23DLJVTS5BXOQZXMU3ONJSFKRCVO5BEGVSELJSGUNSYLI2XQ32UOI3FKWDYMJQWOMKQOJ4XIU2WN5KTKWT2INUW44SZONGUUN2BMFRTQQJYKM3WGSSUNVXGEU3THFIFUSDHIVWVEQ3LJVUXEMSXK5MXSZ3TG5JXORKTMZRFIVQ='

dec = base64.b32decode(enc)
print(dec)

dec = base58.b58decode(dec.decode())
print(dec)

dec = base62.decode(dec.decode())
dec = dec.to_bytes((dec.bit_length() + 7) // 8, byteorder='big')
print(dec)

dec = base64.b64decode(dec)
print(dec)

dec = base64.a85decode(dec)
print(dec)

実行結果は以下の通り。

b'wvcpRLNKBz2zqpFs9UcrvLAgXjgwyquv4GbW2FXC9Y7ZW4dzkcZk9t7t3vSnjdUDUwBCVDZdj6XZ5xoTr6UXxbag1PrytSVoU5ZzCinrYsMJ7Aac8A8S7cJTmnbSs9PZHgEmRCkMir2WWYygs7SwESfbTV'
b'BGJz4dCH0UuQZ2Q9vLExJUKcrvdIoYRwrspUSms5eRJoVc3WAztlKjjkEXDJuI1uqXQT3OdCcm8LjC12gR3Fd1EfZ2isyNxfe55MiOvz2DYGDb9dh'
b'RWNiZjFIWldwWEY+W0RfMFByVVEyKUssa0ghYllMMWdfdEVAVmRsPDFMRHRUQ2dWOXQwUVQkV0Y+R2FvRisi'
b'Ecbf1HZWpXF>[D_0PrUQ2)K,kH!bYL1g_tE@Vdl<1LDtTCgV9t0QT$WF>GaoF+"'
b'rtcp{th4t5_50m3_54lty_t34_1_bl4m3_4ll_th0s3_t34rs}'
rtcp{th4t5_50m3_54lty_t34_1_bl4m3_4ll_th0s3_t34rs}

That's a Lot of Stuff . . . (Cryptography 275)

hexデコードすると、スペース区切りの数値になる。これを8進数でASCIIコードとして文字にすると、base64文字列のようになるので、デコードする。

enc = '31 34 33 20 31 35 36 20 31 32 32 20 31 35 32 20 31 34 33 20 31 31 30 20 31 36 34 20 31 35 32 20 31 31 35 20 31 30 37 20 36 35 20 36 32 20 31 31 35 20 36 33 20 31 31 32 20 31 37 32 20 31 31 35 20 31 32 34 20 31 30 32 20 31 36 35 20 31 34 33 20 36 31 20 37 31 20 31 35 30 20 31 34 33 20 31 35 32 20 31 31 36 20 31 34 36 20 31 31 36 20 31 30 36 20 37 31 20 31 35 32 20 31 31 35 20 31 30 34 20 31 30 32 20 31 31 35 20 31 33 30 20 36 32 20 31 31 35 20 36 30 20 31 34 34 20 31 31 30 20 31 31 36 20 37 31'

enc = enc.replace(' ', '').decode('hex')
print enc
enc = enc.split(' ')

b64 = ''
for e in enc:
    b64 += chr(int(e, 8))
print b64

flag = b64.decode('base64')
print flag

実行結果は以下の通り。

143 156 122 152 143 110 164 152 115 107 65 62 115 63 112 172 115 124 102 165 143 61 71 150 143 152 116 146 116 106 71 152 115 104 102 115 130 62 115 60 144 110 116 71
cnRjcHtjMG52M3JzMTBuc19hcjNfNF9jMDBMX2M0dHN9
rtcp{c0nv3rs10ns_ar3_4_c00L_c4ts}
rtcp{c0nv3rs10ns_ar3_4_c00L_c4ts}

Pandas Like Salads (Cryptography 350)

Pigpen cipherとして文字を起こす。

YSAY{HJKAHR_QQGDIA_UNR_KW_YRQ_PM_NNFB}

Vigenere暗号と推定する。https://www.dcode.fr/vigenere-cipherで、キーにCUTENESSを指定して復号する。

WYHU{UFSIFX_XMTZQI_STY_GJ_UZY_NS_UJSX}

Ceaser暗号として、復号する。大文字では通らなかったので、小文字にする。

rtcp{pandas_should_not_be_put_in_pens}