quickbms string xor then filexor
Posted: Sat Oct 20, 2012 3:57 pm
I read in two strings
Then I want to xor them
Now I want to use the result as my filexor key
But the result isn't right.
When I print out str1, it's just two bytes for some reason.
Is this the right way to do it?
This is the logic I want to reproduce
So I should be able to xor the two strings first and then use the result for filexor'ing.
Code: Select all
getdstring str1 16
getdstring str2 16
Code: Select all
string str1 ^= str2
Code: Select all
filexor str1
log NAME OFFSET SIZE
filexor ""
When I print out str1, it's just two bytes for some reason.
Is this the right way to do it?
This is the logic I want to reproduce
Code: Select all
for (int i = 0; i < size; i++)
data[i] ^= str1[i % 16] ^ str2[i % 16]