Getting the obfu to look good is damn near impossible. Are there any programs to assist with that to get those 'Perl Artist' look to them?

I'm no Perl Artist, that's for sure, but I was faced with the same thing when trying to format an obfu. It's tough to just move the source code around and try and make it look nice. I looked for code on PM to help do this, but couldn't find any. But as it turns out, it's not that difficult to roll your own utility to help out.

My solution was to make a script that will take as input a perl source file and a format pattern file. The pattern file is just a text file with with characters and spaces (or black and white pixels, if you will). The script reads in the source and the pattern and it sticks the source into the format of the pattern.

I posted the code in the Snippets Section. You can find it here.

HTH


In reply to Re: BrainF*** Interpreter by CubicSpline
in thread BrainF*** Interpreter by Toodles

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.