xceed Posted January 6, 2009 Share Posted January 6, 2009 I have found this PHP script that changes MD5 Hash of a file by adding 1 byte to the file (Zip or RAR File), but i dont know how to use it. Can some one please tell me steps of how to use this script? ??? <? // Here the downloads $path = "files"; if (isset($_GET['file'])) { $handle = fopen("$path/".$_GET['file']."", 'a+'); if ($handle) { fwrite($handle, '0'); } else { echo "<br />Error!<br />"; } fclose($handle); } echo "Just click to change the md5 hash<br /<br />"; $handle = opendir ($path); while (false !== ($file = readdir ($handle))){ if ($file != "."){ if ($file != ".."){ if ($file != "index.html") { $byte = filesize($path."/".$file); if (! is_dir($path."/".$file)) { echo "<a href='uploads.php?file=$file'>uploads/$file</a> ($byte Bytes)<br />"; } } } } } closedir($handle); ?> Thankyou Link to comment https://forums.phpfreaks.com/topic/139638-how-to-use-this-md5-changer-php-script/ Share on other sites More sharing options...
Altec Posted January 6, 2009 Share Posted January 6, 2009 Why would you want to do that? And just change the $path var. Link to comment https://forums.phpfreaks.com/topic/139638-how-to-use-this-md5-changer-php-script/#findComment-730701 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.