Shared object obfuscation concept proven.

This commit is contained in:
Vahagn Khachatryan
2015-03-03 22:23:02 +04:00
parent f62e08cbb7
commit 67b4092b96
5 changed files with 43 additions and 15 deletions

View File

@@ -0,0 +1,36 @@
/*
VIM: let g:lcppflags="-O2 -lshared_object -L."
VIM: let g:argv=""
*/
#include <iostream>
#include <exception>
#include "interface.h"
int main ( void )
{try{
MyVerySecretClass o;
o.secret_method1();
o.secret_method2();
o.secret_method1();
o.secret_method2();
o.secret_method1();
o.secret_method2();
o.secret_method3();
return 0;
}
catch ( const std::exception& e )
{
std::cerr << std::endl
<< "std::exception(\"" << e.what() << "\")." << std::endl;
return 2;
}
catch ( ... )
{
std::cerr << std::endl
<< "unknown exception." << std::endl;
return 1;
}}