Perl Junkies, Explain this code to me

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fris
    I have to go potty
    • Aug 2002
    • 55727

    #1

    Perl Junkies, Explain this code to me

    http://pastie.org/5474200
    Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

    My Latest Theme
  • Due
    Confirmed User
    • Mar 2001
    • 3620

    #2
    Some kind of encryption ? Not really a perl expert though
    I buy plugs
    Skype: Due_Global
    /Due

    Comment

    • Sin_Vraal
      Confirmed User
      • Feb 2002
      • 465

      #3
      http://perldoc.perl.org/functions/pack.html
      its a clever way of writing a string, then evaluating it.

      Although you can read up on pack, it will probably bore u, so just change eval to print and see what it says.

      my$d='bupbup.com';if($ENV{'HTTP_HOST'}&&index($ENV {'HTTP_HOST'},$d)==-1){print "Content-type: text/html\n\n";print "This software is licensed for use on $d only";exit;}$HEADER=0;

      essentially, this is security software.
      "Youjizz: Henry, Thanks to you 1 in 150 people online at any given time are jerking off on my websites"

      Swift Communications -- UU net / Sprint / level 3 / savvis / Gblx

      Quad Core SaS HDD 1000mbits dedicated bandwidth $2500

      AmySpears! Amy getting fucked in the ass and getting choked on a chain! -- Devil Bucks!

      skype: henry.goss
      ICQ: 5.6.4.8.0.9.8.6

      Comment

      • V_RocKs
        Damn Right I Kiss Ass!
        • Nov 2003
        • 32448

        #4
        Originally posted by Sin_Vraal
        http://perldoc.perl.org/functions/pack.html
        its a clever way of writing a string, then evaluating it.

        Although you can read up on pack, it will probably bore u, so just change eval to print and see what it says.

        my$d='bupbup.com';if($ENV{'HTTP_HOST'}&&index($ENV {'HTTP_HOST'},$d)==-1){print "Content-type: text/html\n\n";print "This software is licensed for use on $d only";exit;}$HEADER=0;

        essentially, this is security software.
        Sometimes the simple trick is the best ;)

        Comment

        • Sin_Vraal
          Confirmed User
          • Feb 2002
          • 465

          #5
          Originally posted by V_RocKs
          Sometimes the simple trick is the best ;)
          why let all that code go to waste LOL , I figured somebody should run it
          "Youjizz: Henry, Thanks to you 1 in 150 people online at any given time are jerking off on my websites"

          Swift Communications -- UU net / Sprint / level 3 / savvis / Gblx

          Quad Core SaS HDD 1000mbits dedicated bandwidth $2500

          AmySpears! Amy getting fucked in the ass and getting choked on a chain! -- Devil Bucks!

          skype: henry.goss
          ICQ: 5.6.4.8.0.9.8.6

          Comment

          Working...