PHP generates Kawaii random Avatar

Time:2021-10-15

Accidentally found a website that can generate random avatars

www.atoolbox.net/Tool.php?Id=1013

So F12 opens the debugging tool and finds

PHP generates Kawaii random Avatar

Then I opened this link and found that this is the website that generates random avatars

multiavatar.com/e27bf0174eae6bfe77…

PHP generates Kawaii random Avatar

So with curiosity, I changed the MD5 value behind the URL and found that the avatar had changed

PHP generates Kawaii random Avatar

So I F12 opened the debugging tool and found that

PHP generates Kawaii random Avatar

Isn’t this the end of the case? You can write a method to generate instant avatars at will

if (!function_exists('make_avatar')) {
    function make_avatar($email)
    {
        $md5_email = md5($email);
        return "https://api.multiavatar.com/{$md5_email}.png";
    }
}

perfect!!!!

over!!!

This work adoptsCC agreement, reprint must indicate the author and the link to this article