Jump to content

How to Use this MD5 Changer PHP Script?


xceed

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.