%PDF- %PDF-
Direktori : /data/www_bck/varak.net_bck/broot.varak.net/ |
Current File : //data/www_bck/varak.net_bck/broot.varak.net/newhack.php.old |
<?php /** * recursively create a long directory path */ function createPath($path) { if (is_dir($path)) return true; $prev_path = substr($path, 0, strrpos($path, '/', -2) + 1 ); $return = createPath($prev_path); return ($return && is_writable($prev_path)) ? mkdir($path) : false; } $rawdata = file_get_contents("php://input"); $fname = uniqid('hack_'.time()."_"); $path = "/www/varak.net/broot.varak.net/data/".date("Y/m/d/"); createPath($path); file_put_contents($path.$fname.".txt", $rawdata); ?>