Datenstand V1.0
This commit is contained in:
19
inhalte/ie_rupload.php
Normal file
19
inhalte/ie_rupload.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
chdir('tmp');
|
||||
$uploadfile = "./".$_SESSION['TID']."_".PREFIX.".exe";
|
||||
move_uploaded_file($_FILES['Datei']['tmp_name'], $uploadfile);
|
||||
$datei = "./".$_SESSION['TID']."_".PREFIX.".php";
|
||||
|
||||
$handle = fopen($uploadfile, 'r');
|
||||
$crypt = fread($handle, filesize($uploadfile));
|
||||
fclose($uploadfile);
|
||||
$content = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5(PREFIX), $crypt, MCRYPT_MODE_CBC);
|
||||
$inhalt = explode("-->Ende_dieser_Datei<--", $content);
|
||||
$handle = fopen($datei, 'w+');
|
||||
fwrite($handle, $inhalt[0]);
|
||||
fclose($datei);
|
||||
|
||||
chdir('../');
|
||||
include "tmp/".$_SESSION['TID']."_".PREFIX.".php";
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user