GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Perl Junkies, Explain this code to me (https://gfy.com/showthread.php?t=1091494)

fris 12-03-2012 08:23 AM

Perl Junkies, Explain this code to me
 
http://pastie.org/5474200

Due 12-03-2012 08:54 AM

Some kind of encryption ? Not really a perl expert though

Sin_Vraal 12-03-2012 11:14 AM

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.

V_RocKs 12-03-2012 11:37 AM

Quote:

Originally Posted by Sin_Vraal (Post 19346467)
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 ;)

Sin_Vraal 12-03-2012 11:44 AM

Quote:

Originally Posted by V_RocKs (Post 19347285)
Sometimes the simple trick is the best ;)

why let all that code go to waste LOL , I figured somebody should run it :)


All times are GMT -7. The time now is 12:09 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc