Hello,

I am maintaining an old system with some monitoring scripts written in perl. The fun part is all these scripts are encoded and I could not read them to figure out why they failed from time to time. Here is script text and hexadecimal header. With several hours google search, I understand these are the bleached scripts and people say it is useless to hide source in such way and mention it is easy to decode it. I tried unbleach.pl and it says script is not bleached. I wonder whether it is possible to decode this script. No need to be accurate or runnable, just information of what it is checking, how it is checking. Thanks for any suggestions!
#!/usr/bin/perl $_=<<'';y;\r\n;;d;$_=pack'b*',$_;$_=eval;$@&&die$@;$_ root# od -cx check_services 0000000 # ! / u s r / b i n / p e r l \ +n 2123 752f 7273 622f 6e69 702f 7265 0a6c 0000020 $ _ = < < ' ' ; y ; \ r \ n ; +; 5f24 3c3d 273c 3b27 3b79 725c 6e5c 3b3b 0000040 d ; $ _ = p a c k ' b * ' , $ +_ 3b64 5f24 703d 6361 276b 2a62 2c27 5f24 0000060 ; $ _ = e v a l ; $ @ & & d i +e 243b 3d5f 7665 6c61 243b 2640 6426 6569 0000100 $ @ ; $ _ \n \t \t \t \t \ +n 4024 243b 0a5f 0909 2020 0920 2020 0a09 0000120 \t \t \t \n \t \t \t 2020 2020 2009 0920 0a09 0909 0920 2020 0000140 \t \t \n \t \t \t \t \t \n \t \ +t 2009 0a09 0920 0909 0920 2009 0a20 0909 0000160 \t \t \t \n \t \t \t \t \t \t 2009 0920 2020 0a09 0909 0920 0909 2009 0000200 \t \n \t \t \t \n \t 0a09 2020 0920 2020 0920 0a09 0920 2020 0000220 \t \t \t \n \t \t \t \t \t \t \ +n 2009 0909 0a20 0920 0909 0920 2009 0a09 0000240 \t \t \t \t \n \t \t \t 0909 2009 2009 2020 0a20 2020 0909 2009

In reply to bleach question by roadtest

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.