Skip to content

Instantly share code, notes, and snippets.

@K-atc
Last active December 7, 2015 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save K-atc/009cdb4ed080a5a373af to your computer and use it in GitHub Desktop.
Save K-atc/009cdb4ed080a5a373af to your computer and use it in GitHub Desktop.
Individual Elebin Writeup

SECCON 2015 Online - Individual Elebin

1.bin

$ ./1.bin
SECCON{AaA

2.bin

$ m6811-elf-run 2.bin; echo
B

3.bin

$ v850-elf-gdb 3.bin
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=v850-elf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/user/ctf/Individual_Elebin/3.bin...(no debugging symbols found)...done.
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading section .text, size 0x1d8 vma 0x1400
Loading section .rodata, size 0x11 vma 0x15d8
Loading section .data, size 0x8 vma 0x1800
Start address 0x1400
Transfer rate: 3976 bits in <1 sec.
(gdb) r
Starting program: /home/user/ctf/Individual_Elebin/3.bin
i[Inferior 1 (process 42000) exited normally]
(gdb) q

4.bin

$ m32r-elf-gdb 4.bin
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=m32r-elf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/user/ctf/Individual_Elebin/4.bin...(no debugging symbols found)...done.
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading section .text, size 0x1a4 lma 0x1400
Loading section .rodata, size 0x14 lma 0x15a4
Loading section .data, size 0x8 lma 0x1800
Start address 0x1400
Transfer rate: 3584 bits in <1 sec.
(gdb) r
Starting program: /home/user/ctf/Individual_Elebin/4.bin
N[Inferior 1 (process 42000) exited normally]
(gdb) q

5.bin

[cross]$ sh64-elf-run 5.bin; echo
12345678

6.bin

[cross-gcc4]$ sparc-elf-gdb 6.bin
GNU gdb (GDB) 7.5.1
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=sparc-elf".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/user/ctf/Individual_Elebin/6.bin...(no debugging symbols found)...done.
(gdb) target sim
Connected to the simulator.
(gdb) load
(gdb) r
Starting program: /home/user/ctf/Individual_Elebin/6.bin
90abcdef[Inferior 1 (process 42000) exited normally]
(gdb) q

7.bin

[cross]$ mcore-elf-run 7.bin; echo
BDFHJLNP

8.bin

$ cris-elf-run 8.bin; echo
AW

9.bin

$ avr-elf-run 9.bin
3a5d37a3

10.bin

$ arm-elf-run 10.bin; echo
8a0d28f

11.bin

$ mips16-elf-run 11.bin; echo
aAq}
ファイル: 1.bin
ELF ヘッダ:
マジック: 7f 45 4c 46 01 01 01 09 00 00 00 00 00 00 00 00
クラス: ELF32
データ: 2 の補数、リトルエンディアン
バージョン: 1 (current)
OS/ABI: UNIX - FreeBSD
ABI バージョン: 0
型: EXEC (実行可能ファイル)
マシン: Intel 80386
バージョン: 0x1
エントリポイントアドレス: 0x8048400
プログラムの開始ヘッダ: 52 (バイト)
セクションヘッダ始点: 2108 (バイト)
フラグ: 0x0
このヘッダのサイズ: 52 (バイト)
プログラムヘッダサイズ: 32 (バイト)
プログラムヘッダ数: 1
セクションヘッダ: 40 (バイト)
セクションヘッダサイズ: 6
セクションヘッダ文字列表索引: 5
ファイル: 10.bin
ELF ヘッダ:
マジック: 7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00
クラス: ELF32
データ: 2 の補数、リトルエンディアン
バージョン: 1 (current)
OS/ABI: ARM
ABI バージョン: 0
型: EXEC (実行可能ファイル)
マシン: ARM
バージョン: 0x1
エントリポイントアドレス: 0x1400
プログラムの開始ヘッダ: 52 (バイト)
セクションヘッダ始点: 8300 (バイト)
フラグ: 0x2, has entry point, GNU EABI
このヘッダのサイズ: 52 (バイト)
プログラムヘッダサイズ: 32 (バイト)
プログラムヘッダ数: 1
セクションヘッダ: 40 (バイト)
セクションヘッダサイズ: 9
セクションヘッダ文字列表索引: 8
ファイル: 11.bin
ELF ヘッダ:
マジック: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
クラス: ELF32
データ: 2 の補数、ビッグエンディアン
バージョン: 1 (current)
OS/ABI: UNIX - System V
ABI バージョン: 0
型: EXEC (実行可能ファイル)
マシン: MIPS R3000
バージョン: 0x1
エントリポイントアドレス: 0x80000001
プログラムの開始ヘッダ: 52 (バイト)
セクションヘッダ始点: 5392 (バイト)
フラグ: 0x4001001, noreorder, o32, mips16, mips1
このヘッダのサイズ: 52 (バイト)
プログラムヘッダサイズ: 32 (バイト)
プログラムヘッダ数: 1
セクションヘッダ: 40 (バイト)
セクションヘッダサイズ: 8
セクションヘッダ文字列表索引: 7
ファイル: 2.bin
ELF ヘッダ:
マジック: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
クラス: ELF32
データ: 2 の補数、ビッグエンディアン
バージョン: 1 (current)
OS/ABI: UNIX - System V
ABI バージョン: 0
型: EXEC (実行可能ファイル)
マシン: Motorola MC68HC11 Microcontroller
バージョン: 0x1
エントリポイントアドレス: 0x1400
プログラムの開始ヘッダ: 52 (バイト)
セクションヘッダ始点: 2124 (バイト)
フラグ: 0x3
このヘッダのサイズ: 52 (バイト)
プログラムヘッダサイズ: 32 (バイト)
プログラムヘッダ数: 1
セクションヘッダ: 40 (バイト)
セクションヘッダサイズ: 8
セクションヘッダ文字列表索引: 7
ファイル: 3.bin
ELF ヘッダ:
マジック: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
クラス: ELF32
データ: 2 の補数、リトルエンディアン
バージョン: 1 (current)
OS/ABI: UNIX - System V
ABI バージョン: 0
型: EXEC (実行可能ファイル)
マシン: Renesas V850
バージョン: 0x1
エントリポイントアドレス: 0x1400
プログラムの開始ヘッダ: 52 (バイト)
セクションヘッダ始点: 2128 (バイト)
フラグ: 0x0
このヘッダのサイズ: 52 (バイト)
プログラムヘッダサイズ: 32 (バイト)
プログラムヘッダ数: 1
セクションヘッダ: 40 (バイト)
セクションヘッダサイズ: 8
セクションヘッダ文字列表索引: 7
ファイル: 4.bin
ELF ヘッダ:
マジック: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
クラス: ELF32
データ: 2 の補数、ビッグエンディアン
バージョン: 1 (current)
OS/ABI: UNIX - System V
ABI バージョン: 0
型: EXEC (実行可能ファイル)
マシン: Renesas M32R (formerly Mitsubishi M32r)
バージョン: 0x1
エントリポイントアドレス: 0x1400
プログラムの開始ヘッダ: 52 (バイト)
セクションヘッダ始点: 668 (バイト)
フラグ: 0x0
このヘッダのサイズ: 52 (バイト)
プログラムヘッダサイズ: 32 (バイト)
プログラムヘッダ数: 3
セクションヘッダ: 40 (バイト)
セクションヘッダサイズ: 8
セクションヘッダ文字列表索引: 7
ファイル: 5.bin
ELF ヘッダ:
マジック: 7f 45 4c 46 02 02 01 00 00 00 00 00 00 00 00 00
クラス: ELF64
データ: 2 の補数、ビッグエンディアン
バージョン: 1 (current)
OS/ABI: UNIX - System V
ABI バージョン: 0
型: EXEC (実行可能ファイル)
マシン: Renesas / SuperH SH
バージョン: 0x1
エントリポイントアドレス: 0x1401
プログラムの開始ヘッダ: 64 (バイト)
セクションヘッダ始点: 1496 (バイト)
フラグ: 0xa, sh5
このヘッダのサイズ: 64 (バイト)
プログラムヘッダサイズ: 56 (バイト)
プログラムヘッダ数: 2
セクションヘッダ: 64 (バイト)
セクションヘッダサイズ: 8
セクションヘッダ文字列表索引: 7
ファイル: 6.bin
ELF ヘッダ:
マジック: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
クラス: ELF32
データ: 2 の補数、ビッグエンディアン
バージョン: 1 (current)
OS/ABI: UNIX - System V
ABI バージョン: 0
型: EXEC (実行可能ファイル)
マシン: Sparc
バージョン: 0x1
エントリポイントアドレス: 0x2001400
プログラムの開始ヘッダ: 52 (バイト)
セクションヘッダ始点: 6224 (バイト)
フラグ: 0x0
このヘッダのサイズ: 52 (バイト)
プログラムヘッダサイズ: 32 (バイト)
プログラムヘッダ数: 1
セクションヘッダ: 40 (バイト)
セクションヘッダサイズ: 8
セクションヘッダ文字列表索引: 7
ファイル: 7.bin
ELF ヘッダ:
マジック: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
クラス: ELF32
データ: 2 の補数、リトルエンディアン
バージョン: 1 (current)
OS/ABI: UNIX - System V
ABI バージョン: 0
型: EXEC (実行可能ファイル)
マシン: MCORE
バージョン: 0x1
エントリポイントアドレス: 0x1400
プログラムの開始ヘッダ: 52 (バイト)
セクションヘッダ始点: 2116 (バイト)
フラグ: 0x0
このヘッダのサイズ: 52 (バイト)
プログラムヘッダサイズ: 32 (バイト)
プログラムヘッダ数: 1
セクションヘッダ: 40 (バイト)
セクションヘッダサイズ: 7
セクションヘッダ文字列表索引: 6
ファイル: 8.bin
ELF ヘッダ:
マジック: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
クラス: ELF32
データ: 2 の補数、リトルエンディアン
バージョン: 1 (current)
OS/ABI: UNIX - System V
ABI バージョン: 0
型: EXEC (実行可能ファイル)
マシン: Axis Communications 32-bit embedded processor
バージョン: 0x1
エントリポイントアドレス: 0x1400
プログラムの開始ヘッダ: 52 (バイト)
セクションヘッダ始点: 6184 (バイト)
フラグ: 0x1
このヘッダのサイズ: 52 (バイト)
プログラムヘッダサイズ: 32 (バイト)
プログラムヘッダ数: 1
セクションヘッダ: 40 (バイト)
セクションヘッダサイズ: 6
セクションヘッダ文字列表索引: 5
ファイル: 9.bin
ELF ヘッダ:
マジック: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
クラス: ELF32
データ: 2 の補数、リトルエンディアン
バージョン: 1 (current)
OS/ABI: UNIX - System V
ABI バージョン: 0
型: EXEC (実行可能ファイル)
マシン: Atmel AVR 8-bit microcontroller
バージョン: 0x1
エントリポイントアドレス: 0x1400
プログラムの開始ヘッダ: 52 (バイト)
セクションヘッダ始点: 1204 (バイト)
フラグ: 0x82
このヘッダのサイズ: 52 (バイト)
プログラムヘッダサイズ: 32 (バイト)
プログラムヘッダ数: 3
セクションヘッダ: 40 (バイト)
セクションヘッダサイズ: 7
セクションヘッダ文字列表索引: 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment