Tags: c++ gdbscript re
Rating: 5.0
C++ binary with some anti-debug measures. No big deal, just patch out things I don't like.
A 70-byte string is expected as input from a file `.secret-license-file`. An array of 70 strings are prepared, they turned out to be md5 hashes.
Our string needs to satisfy the following code
```
is_correct = True
for i in range(70):
if md5(md5(b64encode(rot13(input)[i]))) != hash_array[i]:
is_correct = False
if is_correct:
print("You have installed your software!")
else:
print("Piracy is bad!")
```