Transcript
Page 1: Assembler Haiku - TAKESAKO

Assembler Haiku アセンブラ俳句

@TAKESAKO 写実主義(アララギ派)

Page 2: Assembler Haiku - TAKESAKO

What is Haiku?

●Haiku "俳句" is a short poem.

–Haiku is a genre of classical Japanese

poetry even now from of old.

–Haiku consists of 17 characters and

three units with the following pattern:

5-7-5

Page 3: Assembler Haiku - TAKESAKO

アセンブラ俳句 Assembler Haiku

for example

Page 4: Assembler Haiku - TAKESAKO

[demo] Assembler Haiku

Page 5: Assembler Haiku - TAKESAKO

/* 5 */ 8048350: 6A 04 PUSH byte 0x04 8048352: 54 PUSH esp 8048353: 59 POP ecx 8048354: 58 POP eax /* 7 */ 8048355: 68 93 8C 8B 9E PUSH 0x9E8B8C93 804835A: 50 PUSH eax 804835B: 5A POP edx /* 5 */ 804835C: 5B POP ebx 804835D: 21 C3 AND ebx, eax 804835F: CD 80 INT 0x80

アセンブラ俳句 解説

東京

Shift_JIS

Page 6: Assembler Haiku - TAKESAKO

/* 5 */ 8048350: 6A 04 PUSH byte 0x04 8048352: 54 PUSH esp 8048353: 59 POP ecx 8048354: 58 POP eax /* 7 */ 8048355: 68 8B 47 8C EA PUSH 0xEA8C478B 804835A: 50 PUSH eax 804835B: 5A POP edx /* 5 */ 804835C: 5B POP ebx 804835D: 21 C3 AND ebx, eax 804835F: CD 80 INT 0x80

アセンブラ俳句 解説

季語

Shift_JIS

Page 7: Assembler Haiku - TAKESAKO

シェルコード短歌 Shellcode Tanka

実用的作品 Practical work

Page 8: Assembler Haiku - TAKESAKO

68 2f 73 68 00 68 2f 62 69 6e 89 e3 31 c0 50 53 40 40 40 40 40 40 89 e1 40 40 40 40 40 cd 80

Author: Yoshinori TAKESAKO

Shellcode Tanka (5-7-5-7-7)

Point of focus

Page 9: Assembler Haiku - TAKESAKO

68 2f 73 68 00 68 2f 62 69 6e 89 e3 31 c0 50 53 40 40 40 40 40 40 89 e1 40 40 40 40 40 cd 80

Author: Yoshinori TAKESAKO

韻を踏んでいる (match rhyming words)

Shellcode Tanka (5-7-5-7-7)

Page 10: Assembler Haiku - TAKESAKO

68 2f 73 68 00 68 2f 62 69 6e 89 e3 31 c0 50 53 40 40 40 40 40 40 89 e1 40 40 40 40 40 cd 80

Author: Yoshinori TAKESAKO

Linux/x86 syscall (int 0x80)

Shellcode Tanka (5-7-5-7-7)

Page 11: Assembler Haiku - TAKESAKO

68 2f 73 68 00 68 2f 62 69 6e 89 e3 31 c0 50 53 40 40 40 40 40 40 89 e1 40 40 40 40 40 cd 80

Author: Yoshinori TAKESAKO

INC EAX (×11) sys_execve("/bin/sh")

Shellcode Tanka (5-7-5-7-7)

Page 12: Assembler Haiku - TAKESAKO

000000: /*5*/ 68 2F 73 68 00 push dword 0x68732F 000005: /*5*/ 68 2F 62 69 6E push dword 0x6E69622F 00000A: /*2*/ 89 E3 mov ebx, esp 00000C: /*2*/ 31 C0 xor eax, eax 00000E: /*1*/ 50 push eax 00000F: /*1*/ 53 push ebx 000010: /*1*/ 40 inc eax 000011: /*1*/ 40 inc eax 000012: /*1*/ 40 inc eax 000013: /*1*/ 40 inc eax 000014: /*1*/ 40 inc eax 000015: /*1*/ 40 inc eax 000016: /*2*/ 89 E1 mov ecx, esp 000018: /*1*/ 40 inc eax 000019: /*1*/ 40 inc eax 00001A: /*1*/ 40 inc eax 00001B: /*1*/ 40 inc eax 00001C: /*1*/ 40 inc eax 00001D: /*2*/ CD 80 int 0x80

5

7

5

7

7

Page 13: Assembler Haiku - TAKESAKO

[demo]

Page 14: Assembler Haiku - TAKESAKO

写実主義(アララギ派)とは

●写実的歌風を特徴とする流派

–Araragi school was

characterized “realistic”.

●命令をありのままに使う

–we use it plainly instruction.

Page 15: Assembler Haiku - TAKESAKO

メモ帳で アセンブラ短歌

Notepad.exe

Page 16: Assembler Haiku - TAKESAKO

MS-DOS (8086)

[demo]

Page 17: Assembler Haiku - TAKESAKO

MS-DOS (8086)

Page 18: Assembler Haiku - TAKESAKO

MS-DOS (8086)

Page 19: Assembler Haiku - TAKESAKO

SECCON 全国大会

アセンブラ短歌の鑑賞会あり(誰でも参加OK)

日時:2014年3月1日(土) ~ 3月2日(日)

場所:東京電機大学 東京千住キャンパス

Page 20: Assembler Haiku - TAKESAKO