Add support for XOR

GSoC/Meterpreter_Web_Console
Wei Chen 2018-07-18 23:13:45 -05:00
parent 1534613cda
commit f2fd24780c
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,6 @@
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;
}
}

View File

@ -22,7 +22,8 @@ module Metasploit
'String.h' => ['stddef.h'],
'Winsock2.h' => ['stddef.h', 'Windows.h'],
'rc4.h' => ['String.h', 'stdlib.h'],
'base64.h' => ['stddef.h']
'base64.h' => ['stddef.h'],
'xor.h' => ['stddef.h']
}
end