added string obfuscation example
This commit is contained in:
parent
3c98c7fddf
commit
7c2c089f60
1 changed files with 11 additions and 1 deletions
|
|
@ -2,12 +2,22 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
#include <cstdlib>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|
||||||
int _tmain(int argc, _TCHAR* argv[])
|
int _tmain(int argc, _TCHAR* argv[])
|
||||||
{
|
{
|
||||||
printf("hello world");
|
char* a = "bdgs";
|
||||||
|
char* b = "\x00\x01\x02\x03";
|
||||||
|
char* c = (char*) malloc(sizeof(char)*5);
|
||||||
|
for(int i = 0; i < 4; i ++){
|
||||||
|
c[i] = a[i] ^ b[i];
|
||||||
|
// printf("%x",c[i]);
|
||||||
|
}
|
||||||
|
c[4] = '\0';
|
||||||
|
// printf("The string is:");
|
||||||
|
printf("%s\n",c);
|
||||||
while(1);
|
while(1);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue