Add support for XOR
parent
1534613cda
commit
f2fd24780c
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue