easy_one Walkthrough
reference | scifi's easy_one |
Identify the binary with DIE
:
Since I don’t have a MAC machine, I can only use ghidra
to do some static analysis.
Load the binary with ghidra
, and navigate to decompile:
According to man strcspn
:
The strcspn() function calculates the length of the initial segment of s which consists entirely of bytes not in reject.
1 | undefined8 entry(void) |
1 | MOVSX EAX, byte ptr [RBP + local_118] ; first element of the array |
So, the input must be:
- 10 chars without ‘\n’
- first char equals to the last char
proof
Run Mach-O binary on Linux with shinh/maloader: