Results 1 to 10 of 16

Thread: Darkhog's challenge: Obfuscated drawing

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Just out of curiosity i tried to draw some graphics in small executable. I managed to fit the compiled Lazarus exe and source code under 60kb (or actually under 50kb i guess), and it draws a full color pixel map in a WinAPI window.

    Some limitations i noticed, is that simple types like TBitmap is not allowed. It uses interfaces which increases executable size by 1Mb or so. Anyway, it is doable.

    (The only thing i have in uses list is Windows)

    edit: I have finalized my entry. Up to you if i send it as private message or post public. I know it could be obfiscated to remove all line-change characters, but i left it at 137 lines
    Last edited by User137; 26-07-2013 at 03:36 AM.

  2. #2
    Under Darkhog's permission, i'll post my submission in this thread. That is under 50kb when extracted:
    https://www.dropbox.com/s/nk8u6a0bwv...window_obf.zip

  3. #3
    In source you are pretty much storing image in that big string. It isn't allowed.

    You can save steps (e.g. draw line by line), but you can't store image itself. Nice try though.

  4. #4
    Actually i stored line start and end indices, and for black lines only. So isn't that what we describe as steps? And if i compare my data to whole image PNG packed, the PNG is 1703 bytes, and string 2219 bytes. So it is quite compact.

  5. #5
    Ah, okay. If that's so, then it's good.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •