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

11 lines
225 B
C
Raw Normal View History

2018-07-19 15:04:47 +00:00
//
// License:
// https://github.com/rapid7/metasploit-framework/blob/master/LICENSE
//
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;
}
}