Fixed an issue with the Morphin problem

Forgot to note the sig figs
This commit is contained in:
John W 2017-03-14 02:33:27 -05:00
parent 760e810337
commit 8507334251
7 changed files with 16 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View file

@ -1,2 +1,5 @@
Welcome to the RE training course, this problem has 4 phases. Solve all four to get the flag. Welcome to the RE training course, this problem has 4 phases. Solve all four to get the flag.
Note: On phase 1 round to 6 significant figures.
[Download](${morpher_exe}) [Download](${morpher_exe})

View file

@ -128,7 +128,7 @@ past_trash:
retn retn
b_val dd 0x4039999a b_val dd 0x4039999a
base_txt db 'Please enter the best number', ENDL, 0 base_txt db 'Please enter the best number, round to 6 significant figures.', ENDL, 0
a_val dd 0x40d00000 a_val dd 0x40d00000
scanf_txt db '%f', 0 scanf_txt db '%f', 0
final_val dd 0xc092e6a0 final_val dd 0xc092e6a0

Binary file not shown.

View file

@ -0,0 +1,12 @@
# Generates random flag thing
import random
flag_temp = '{%s}'
def gen_flag(len):
val = ''
for x in range(len):
val += random.choice(list('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'))
return flag_temp % val
print(gen_flag((4*3)-2))

Binary file not shown.