Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($success==1){
- $d_out = "TInyAuthKF".$_SESSION["user"]."\0".$signature;
- $binname = tempnam("/tmp", "kfbin_");
- $tifname = tempnam("/tmp", "kfti_");
- error_log("File Names: ".$binname.", ".$tifname);
- $tf = fopen($binname, "wb");
- fwrite($tf, $d_out);
- fclose($tf);
- $cmd = "/home/services/bin/convbin -i ".$binname." -j bin -o ".$tifname." -k 8xv -n TIAuthKF";
- error_log("Command: ".$cmd);
- $cmd_status = shell_exec($cmd);
- error_log($cmd_status);
- header('Content-Type: application/octetstream; name="TInyAuthKF.8xv"');
- header('Content-Type: application/octet-stream; name="TInyAuthKF.8xv"');
- header('Content-Disposition: attachment; filename="TInyAuthKF.8xv"');
- echo file_get_contents($tifname);
- unlink($binname);
- unlink($tifname);
- exit();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement