Camouflaging Your Perl Code - PowerPoint PPT Presentation

1 / 14
About This Presentation
Title:

Camouflaging Your Perl Code

Description:

... run a program under use Acme::Bleach, the module removes all the unsightly ... 'use Acme::Bleach;' Decode It. Strip out all text ... – PowerPoint PPT presentation

Number of Views:110
Avg rating:3.0/5.0
Slides: 15
Provided by: danielmag
Category:

less

Transcript and Presenter's Notes

Title: Camouflaging Your Perl Code


1
Camouflaging Your Perl Code
  • Dan Magnuszewski
  • Buffalo Perl Mongers
  • May 16th, 2006

2
Steganography
  • is the art and science of writing hidden
    messages in such a way that no one apart from the
    intended recipient knows of the existence of the
    message

3
Steganography
  • The word "Steganography" is of Greek origin and
    means covered, or hidden writing
  • Demeratus sent a warning about a forthcoming
    attack to Greece by writing it on a wooden panel
    and covering it in wax

4
Steganography
  • Generally, a steganographic message will appear
    to be something else a picture, an article, a
    shopping list, or some other message.

5
Steganography
  • Steganographic messages are often first encrypted
    by some traditional means, and then a covertext
    is modified in some way to contain the encrypted
    message, resulting in stegotext.

6
Steganography
  • The advantage of steganography over
    cryptography alone is that messages do not
    attract attention to themselves, to messengers,
    or to recipients. An unhidden coded message, no
    matter how unbreakable it is, will arouse
    suspicion and may in itself be incriminating, as
    in some countries encryption is illegal.

7
Steganography With Perl
  • Many different ways to do it - of course, its
    Perl -)
  • A good method to use
  • Make the Perl code invisible
  • Hide it
  • Decode it

8
Make The Code Disappear
  • Sounds like I need a magic module
  • But I dont. Theres a very clean solution to
    this problem
  • AcmeBleach

9
AcmeBleach
  • By Damian Conway
  • The first time you run a program under use
    AcmeBleach, the module removes all the
    unsightly printable characters from your source
    file. The code continues to work exactly as it
    did before, but now it only contains one line of
    text use AcmeBleach

10
Hide The Code
  • One way to do this is to alternate lines of
    invisible code with text
  • Remove the remaining text
  • use AcmeBleach

11
Decode It
  • Strip out all text
  • Create a new file and put the invisible code into
    it.
  • Execute the file and grab the output.
  • Remove all evidence (the file)

12
Time For An Example
13
Questions?!
14
The End
Write a Comment
User Comments (0)
About PowerShow.com