Skip to content

unf0rgvn/picoCTF_asm1_writeup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Write Up - asm1

This is my first time writing a write-up on github. This challenge envolves assembly code. In the hints of it, there's a site where you can access and learn some things about assembly (I needed to view more about the language to "understand" more).

Score

Points: 200

Description:

What does asm1(0x8be) return? Submit the flag as a hexadecimal value (starting with '0x'). NOTE: Your submission for this question will NOT be in the normal flag format. Source

Hints:

assembly conditions

Solution:

First thing to do is pay attention in the description where it says "What does asm1(0x8be) return?", it says to us that this value(0x8be) is an input value, which means we gonna read the sentences this way: [ebp+0x8] == 0x8be --> [ebp+0x8] is equal to the value 0x8be.

Imagem

This "program" simply check if the input value macthes with the statment, like: The line 3(<+3>) is doing a comparation(cmp) between ebp+0x8 and 0x7c1; The line 4(<+10>) is doing a jumping to the line <+37> if [ebp+0x8] is greater than 0x7c1, else it just move on.

Imagem

So, we just need to verify the values and follow the flow. I did it this way to make it "easier".

Imagem

My flag in this case was: 0x8bb

About

picoCTF-Write_Up

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published