The challenge provides a zip file, which has 3 files - assem.c, assem.s and out.txt. charasm function called in the assem.S,
.intel_syntax noprefix
.global charasm
This function returns its first parameter.
This c function takes a string input:
not operation is performed in the bytes at odd positions bytes at even position is written as same(since charsm function returns the first parameter of its input)
Out.txt contains:
So, Not operation should be performed on bytes at odd positions. The resulting hexadecimal value when converted into ASCII will give the output:
domectf{WR5t4bJUIHIjdlz9QtX8HOgJeI6guMUL}
And that’s our flag!
Automated human-like penetration testing for your web apps & APIs
Teams using Beagle Security are set up in minutes, embrace release-based CI/CD security testing and save up to 65% with timely remediation of vulnerabilities. Sign up for a free account to see what it can do for you.