easyctf-2017/hexable-autogen/hexable.asm
John W c2555cdf41 Added hexable
Simple hex-edit solvable binary problem.
2017-03-12 04:12:21 -05:00

36 lines
603 B
NASM

format ELF executable 3
entry start
;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Buffer macros
BUFF_SIZE equ 32
;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Includes of macros
include 'elf.inc'
include 'char.inc'
;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Code
segment executable writeable readable
put:
print ecx
ret
start:
mov ecx, msg
call put
exit 0
reserve no_code,20
;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Data
segment readable writeable
msg db 'Can you find the flag?',ENDL,0
flag db 'easyctf{abcdef__123456}'
reserve temp,1
;;;;;;;;;;;;;;;;;;;;;;;;;;;