Thread: Obfuscated Code Contest: The Results

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    465
    I know Stack overflow have referred me to a couple sites on obfuscated coding, but unless I missed something(most likely). It just told me that obfuscated coding was reverse engineering etc. not how to do it.
    My computer is awesome.

  2. #2
    Hello,

    It's quite simple indeed. For instance:
    Code:
    int main() {
        int bc;
    
        bc = 84;
    
        return 0;
    }
    Could be obfuscated as the following:
    Code:
    #define a int
    #define d 0x54
    a main() {a bc=(a)d;return d-d;}
    In this example, a represents and integer. d is a hex value which represents the number 84. We create an integer called bc which equals the type cast of 0x54 which is 84. Lastly, main returns 0, as [84-84 = 0]. That is a sample obfuscated code example.


    - Stack Overflow
    Segmentation Fault: I am an error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers, attempts to access a non-existent or read-only physical memory address, re-use of memory if freed within the same scope, de-referencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Expression Evaluator Contest
    By Stack Overflow in forum Contests Board
    Replies: 20
    Last Post: 03-29-2005, 10:34 AM
  2. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  3. Seems like correct code, but results are not right...
    By OmniMirror in forum C Programming
    Replies: 4
    Last Post: 02-13-2003, 01:33 PM
  4. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM