Lesson writeup

Lesson writeup

Challenge name: Lesson

Difficulty: Very Easy

Challenge Scenario: It’s time to learn some basic things about binaries and basic c. Answer some questions to get the flag.

Link: https://app.hackthebox.com/challenges/Lesson?tab=play_challenge

Machine IP: 154.57.164.82:31300

Downloaded the zip as the site looks a bit like junk.

Read the main.c file.

It looks like if I just input admin, I would be able to successfully log in. This is the return on my own machine.

Looks like I actually need to connect to the IP and it provides questions.

nc 154.57.164.82 31300

Question 0x1: 64-bit.

File main

Question number 0x2: NX

gdb ./main

Checksec

This is actually just a lesson and not a challenge.

Question number 0x3: admin

What we saw earlier.

Question number 0x4: 0x20

Seen in the previous code.

Question number 0x5: under_construction

Never actually used, seen in previous code.

Question number 0x6: scanf

Question number 0x7: 40

Just run the code and see when it errors out.

Question number 0x8: 0x4011d6

Then we get the flag.

GG

Leave a comment