metasploit-framework/data/headers/windows/xor.h

6 lines
136 B
C
Raw Normal View History

2018-07-19 04:13:45 +00:00
void xor(char* dest, char* src, char key, int len) {
for (int i = 0; i < len; i++) {
char c = src[i] ^ key;
dest[i] = c;
}
}