Re: Binary Config file: Protect script(s): Powered-by logo: How to?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have found the solution to the Statdaus Download Center Lite or the
config.dat.php file people have been talking about.

If you want to know what the config file is doing create a php file and put
it in the main directory:

<?php
					$script_root           = 'download_center_lite/'; //or where ever
installed
					$dlcl                     = @file($script_root . 'inc/config.dat.php');
          $tplt                     = 'dlcl';
					unset($dlcl[0]);
          $dlcl = @array_values($dlcl);
          $str = '';
          $conf_var = '';
          for ($n = 0; $n < count(${$tplt}); $n++)
          {
              $c_var = '';
              for ($o = 7; $o >= 0 ; $o--)
              {
                  $c_var += ${$tplt}[$n][$o] * pow(2, $o);
              }
              $img_var = sprintf("%c", $c_var);
              if ($img_var == ' ') {
                 $conf_var .= sprintf("%c", $str);
                 $str       = '';
              } else {
                  $str .= $img_var;
              }
          }
          print "$conf_var ";
?>

Then just go to this php page via browser and you will see what the config
script is writing. Problem solved.


Micky Hulse wrote:
> 
> Hey all,
> 
> A couple years ago, before I could write my own PHP, I used a 
> semi-commercial gallery script... Long story short, this gallery script 
> used a config.dat file with these contents:
> 
> 
> <?php exit(); ?>
> 11001100
> 01101100
> 00000100
> 10001100
> 00001100
> ...
> ... (Picture 1,667 lines of this)
> ...
> 11101100
> 00000100
> 00101100
> 11101100
> 00000100
> 
> 
> This config file controlled how a "Powered by Company Name" was 
> displayed on the bottom of the template page.
> 
> So, if you buy the gallery script, which I did (I think I spent like 
> 20$), the "Powered by Company Name" disappears.
> 
> Since then, I have always wondered how I could do the same. I am 
> definitely not a PHP guru, but I can hold my own... There have been a 
> few scripts I have written for clients where I would have loved to 
> implement this same technique...
> 
> Recently, I re-downloaded the script and tried to break-it-down to see 
> how it works... I was able to narrow things down to a few methods, a 
> template page, and a tiny bit more of PHP script... But, it is really 
> hard to understand how this is done because the config.dat file is 
> unreadable!
> 
> Any thoughts on how I could go about doing this?
> 
> How are they making their config files (I am assuming that they 
> probably wrote a proprietary script to convert PHP code to binary 1's 
> and 0's)?
> 
> Any thoughts and/or suggestions?
> 
> If anyone is curious, I can post a bit of the code. Here is a link to 
> the gallery script:
> 
> http://www.stadtaus.com/en/php_scripts/gallery_script/
> 
> Does anyone else do something similar? I would love to see some code, 
> and/or read more about similar techniques....
> 
> Thanks all,
> Cheers,
> Micky
> -- 
> ¸.·´¯`·.¸¸><(((º>`·.¸¸.·´¯`·.¸¸><((((º>
> ·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸><((((º>
> `·.¸¸><((((º>¸.·´¯`·.¸¸><((((º>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Binary-Config-file%3A-Protect-script%28s%29%3A-Powered-by-logo%3A-How-to--tf753209.html#a8013857
Sent from the PHP - General mailing list archive at Nabble.com.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux