Need help for changing MD5 Hash of a remote Zip file.
Posted: Mon Jan 05, 2009 10:35 pm
Hey guys,
I want to change the MD5 Hash of a zip file on my server.
Is there anyway by which i can add 1kb text file to that file using some script or any way?
Or Is there any other way by which i can change the MD5 Hash of that file?
-------------------------------
I have found a script that changes the MD5 hash of a rar or zip file by adding 1byte to it but i dont know how to use it. Can someone please help
Please Help.
Thankyou.
I want to change the MD5 Hash of a zip file on my server.
Is there anyway by which i can add 1kb text file to that file using some script or any way?
Or Is there any other way by which i can change the MD5 Hash of that file?
-------------------------------
I have found a script that changes the MD5 hash of a rar or zip file by adding 1byte to it but i dont know how to use it. Can someone please help
Code: Select all
<?
// 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.