diff options
author | bloodstalker <thabogre@gmail.com> | 2017-12-16 13:31:54 +0000 |
---|---|---|
committer | bloodstalker <thabogre@gmail.com> | 2017-12-16 13:31:54 +0000 |
commit | 453ccbcb228b7f39adf087bfe955c770e4640f64 (patch) | |
tree | 730b6b5fbcf8e7aaf65df822ac2c8c70417f3dd2 /obfuscator/test/test.cpp | |
parent | wip, added methods for dealing with filename changes to obfuscator (diff) | |
download | mutator-453ccbcb228b7f39adf087bfe955c770e4640f64.tar.gz mutator-453ccbcb228b7f39adf087bfe955c770e4640f64.zip |
obfuscator should handle macro expansions just fine now, also there was no rewriter for macro expansion so added one and added a test folder for obfuscator, also added a new method for getting the spellingloc to aux methods
Diffstat (limited to 'obfuscator/test/test.cpp')
-rw-r--r-- | obfuscator/test/test.cpp | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/obfuscator/test/test.cpp b/obfuscator/test/test.cpp new file mode 100644 index 0000000..23c3f23 --- /dev/null +++ b/obfuscator/test/test.cpp @@ -0,0 +1,68 @@ + +#if 0 +#include <fstream> +#include <iostream> +#endif + +int return123(void) { + return 123; +} + +int retret(int s, int w) { + return s + w; +} + +#define loco 1 +#define puta int + +#define PI 3.14 + +#define INTMAC1 int mac1 +#define INTMAC2 int mac2 + +namespace devi +{ + class LOCO + { + public: + LOCO () {} + + void lupo (void) + { + int a = 1; + int b = 2; + int c = 3; + } + }; +} + +int main(int argc, const char **argv) +{ + /***hya**/ + /* + * + * */ + // /**/ + int bubba; // this one + int hubba; /* + * + */ + /* "//" \\ \\\\ // */ + //std::cout << "//" << "/**/" << "\n"; + int/***/ cucu; +#if 0 + std::ofstream myfile; + myfile.open("./touch"); + myfile << "line one.\n"; + myfile.close(); +#endif + int aa = 100; + int bb = 28; + + INTMAC1; + INTMAC2; + retret(mac1, mac2); + return retret(aa, bb); + + //return return123(); +} |