Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

par::filter(3pm) [debian man page]

PAR::Filter(3pm)					User Contributed Perl Documentation					  PAR::Filter(3pm)

NAME
PAR::Filter - Input filter for PAR SYNOPSIS
$code = 'use strict; print "Hello, World! ";'; $ref = PAR::Filter->new('PodStrip', 'Bleach')->apply($code); print $code; # pod-stripped and obfuscated code print $$ref; # same thing $ref = PAR::Filter->new('PodStrip', 'Bleach')->apply('file.pl'); print $$ref; # same thing, applied to file.pl DESCRIPTION
Starting with PAR 0.76, "pp -f" takes a filter name, like "Bleach", and invokes this module to transform the programs with PAR::Filter::Bleach. Similarily, "pp -F Bleach" applies the Bleach filter to all included modules. It is possible to pass in multiple such filters, which are applied in turn. The output of each such filter is expected be semantically equivalent to the input, although possibly obfuscated. The default list of filters include: o PAR::Filter::Bleach The archetypical obfuscating filter. o PAR::Filter::Obfuscate Use B::Deobfuscate to strip away indents and comments, as well as mangling variable names. o PAR::Filter::PatchContent Fix PAR-incompatible modules, applied to modules by default. o PAR::Filter::PodStrip Strip away POD sections, applied to modules by default. o PAR::Filter::Bytecode Use B::Bytecode to strip away indents and comments. This filter is deprecated! For source hiding, have a look at PAR::Filter::Crypto instead and make sure to read about its caveats. AUTHORS
Audrey Tang <cpan@audreyt.org> COPYRIGHT
Copyright 2003-2009 by Audrey Tang <cpan@audreyt.org>. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html> perl v5.14.2 2011-03-22 PAR::Filter(3pm)

Check Out this Related Man Page

PAR::Packer(3pm)					User Contributed Perl Documentation					  PAR::Packer(3pm)

NAME
PAR::Packer - PAR Packager DESCRIPTION
This module implements the App::Packer::Backend interface, for generating stand-alone executables, perl scripts and PAR files. Currently, this module is used by the command line tool pp internally, as well as by the contributed contrib/gui_pp/gpp program. Since version 0.97 of PAR, this module and its related tools such as "pp" have been stripped from the PAR distribution and are now distributed as the "PAR-Packer" distribution so that PAR users need not necessarily have a C compiler. SEE ALSO
PAR, pp App::Packer, App::Packer::Backend ACKNOWLEDGMENTS
Mattia Barbon for taking the first step in refactoring pp into App::Packer::Backend::PAR, and Edward S. Peschko for continuing the work that eventually became this module. AUTHORS
Audrey Tang <cpan@audreyt.org> Steffen Mueller <smueller@cpan.org> <http://par.perl.org/> is the official PAR website. You can write to the mailing list at <par@perl.org>, or send an empty mail to <par-subscribe@perl.org> to participate in the discussion. Please submit bug reports to <bug-par@rt.cpan.org>. COPYRIGHT
Copyright 2004-2010 by Audrey Tang <cpan@audreyt.org>. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html> perl v5.14.2 2011-12-04 PAR::Packer(3pm)
Man Page

8 More Discussions You Might Find Interesting

1. Programming

zan

Originally written by Don Yang - Obfuscated code - this is as good as it gets and was a prize winner in the obfuscated code contest. Personally, I see obfuscated code every day written by cowboy programmers who worked developing our monstrous legacy system long ago. This code rewrites... (1 Reply)
Discussion started by: jim mcnamara
1 Replies

2. Shell Programming and Scripting

Hiding PHP code on the server

Hi all, Sometime back, had put up a Q regarding hiding perl code. A: There is a utility known as 'pp' which comes along with PAR. Downloaded from CPAN. These people have done wonderful work I must say. Cool executables from perl scripts. Have one more... (4 Replies)
Discussion started by: sudhir_onweb
4 Replies

3. Shell Programming and Scripting

How to filter only comments while reading a file including line break characters.

How do I filter only comments and still keep Line breaks at the end of the line!? This is one of the common tasks we all do,, How can we do this in a right way..!? I try to ignore empty lines and commented lines using following approach. test.sh # \040 --> SPACE character octal... (17 Replies)
Discussion started by: kchinnam
17 Replies

4. Shell Programming and Scripting

Filter files and print

Hi, I need to filter and store the files ends with log extension in the array and need to write the file names in the array to a file. I need to use array to derive this solution. Please help me out. Thanks (2 Replies)
Discussion started by: Sekar1
2 Replies

5. Shell Programming and Scripting

Filter certain number of alphabets

filter the ones (ex:>1279_17_27_F3) that have 50letters (ABABABACACACACACAADADADADABABABABAACACACACACACAACAC) in input. And others that are less than 50 have to be ignore and the ones with more than 50 have to trimmed to first 50 letters. Thanx >1279_16_1960_F3 A >1279_16_2010_F3 BCCC... (2 Replies)
Discussion started by: ruby_sgp
2 Replies

6. Shell Programming and Scripting

Removing obfuscated javascript from js files

ello, I am trying to remove obfuscated code in multiple files on a server, the malicious code is surronded by /*km0ae9gr6m*//*qhk6sa6g1c*/ I had success removing from some files using this command sed -i ':strt;s|/\*km0ae9gr6m\*/*/\*qhk6sa6g1c\*/||g;/\/\*km0ae9gr6m\*\//{N;b strt}'... (5 Replies)
Discussion started by: cuantica
5 Replies

7. IP Networking

Perl : traceroute error

I am writing a perl code(windows) to traceroute IP address and to print the output. Could anyone please supply the code. I had executed the below code which was taken from cpan modules #!C:/perl/bin/perl.exe use Net::Traceroute; $tr = Net::Traceroute->new(host=> "google.com");... (1 Reply)
Discussion started by: giridhar276
1 Replies

8. UNIX for Advanced & Expert Users

Filter top -bc -n10 output

I have posted a thread in Unix for Dummies question...... https://www.unix.com/unix-dummies-questions-answers/223769-filter-top-bc-n10-output.html Can anybody help me out with this please? Thanks Avinash (3 Replies)
Discussion started by: avinthm
3 Replies