Windows Of Opportunity

HTB 2023



Solution

Given a file named windows.

The program wants the user to input a password (flag). If the password incorrect, it will show this.

Checking the code using Ghidra, i can see that line 18 compares variable local_d with array arr.

local_d is the sum of the value at current index and the index after from user input.

local_d = local_38[i+1] + local_38[i];

Double click the arr[] to see the array.

The value in each of the array is the value of local_d, which i explained earlier. So, we need to calculate the value (in ascii) for the user input.

The flag format starts with HTB{. It should be easy for us to start calculate the rest of the value. You can use ASCII Table as guidance and some simple math skills.

We get a flag from it, check it just to make sure it is legit.


Flag

HTB{4_d00r_cl0s35_bu7_4_w1nd0w_0p3n5!}

Last updated