obfuscate this code

obfuscate this code

Post by pretentious on Tue Jan 27, 2015 11:11 am
([msg=86482]see obfuscate this code[/msg])

Let's see how this goes. The idea is to make this code unreadable without changing its end functionality.
Each reply should add something to the previous ETC. We're using C++.

Original code:
Code: Select all
#include <iostream>
int main(){
    std::cout << "hello, world";
    return 0;
}


I'll go first
Code: Select all
#include <iostream>
#define water int
water main(){
    std::cout << "hello, world";
    return 0;
}
Goatboy wrote:Oh, that's simple. All you need to do is dedicate many years of your life to studying security.

IF you feel like exchanging ASCII arrays, let me know ;)
Can you say brainwashing It's a non stop disco
User avatar
pretentious
Addict
Addict
 
Posts: 1201
Joined: Wed Mar 03, 2010 12:48 am
Blog: View Blog (0)


Re: obfuscate this code

Post by ghost107 on Tue Jan 27, 2015 12:43 pm
([msg=86483]see Re: obfuscate this code[/msg])

Code: Select all
#include <iostream>
#define water int
#define is ::
water main(){
   std is cout << "hello, world";
   return 0;
}
User avatar
ghost107
Poster
Poster
 
Posts: 316
Joined: Wed Jul 02, 2008 7:57 am
Blog: View Blog (0)


Re: obfuscate this code

Post by pretentious on Wed Jan 28, 2015 7:54 am
([msg=86490]see Re: obfuscate this code[/msg])

Code: Select all
#include <iostream>
#include <stdio.h>
#define water int
#define is ::
namespace std{
class marshmallows{
public:
     void operator<<(water spring){
        printf("hello, world");
    }
};
}
water main(){
   std is marshmallows yummi;
   yummi << 42;
   return 0;
}
Goatboy wrote:Oh, that's simple. All you need to do is dedicate many years of your life to studying security.

IF you feel like exchanging ASCII arrays, let me know ;)
Can you say brainwashing It's a non stop disco
User avatar
pretentious
Addict
Addict
 
Posts: 1201
Joined: Wed Mar 03, 2010 12:48 am
Blog: View Blog (0)



Return to C and C++

Who is online

Users browsing this forum: No registered users and 0 guests