破解foxmail密码

  今天老妈把邮箱密码忘了。想到foxmail里应该有记录,就找出账号设置文件,打开看看,果然有密码,不过被加密了。google到解决办法后,用php写程序解决了。然后修改了一下,变成通用的。其实可以用看星星的程序解决。不过手边没有,再说,咱程序员自有自己的办法^_^

<?php
function hexDecode($s) {
    return preg_replace(‘/(w{2})/e’,”chr(hexdec(‘\1’))”,$s);
}

function foxmailCrack($src) {
    $s1 = substr(hexDecode($src), 1) ^ “~draGon~”;
    $s2 = chr(ord(‘Z’) ^ hexdec(substr($src, 0, 2)));
    $s2 .= substr(hexDecode($src), 1, -1);
    $out = ”;
    for($i = 0; $i < strlen($s1); $i++){
        $tmp = ord($s1[$i]) – ord($s2[$i]);
        $tmp = $tmp < 0 ? $tmp + 255 : $tmp;
        $out .= chr($tmp);
    }
    return $out;
}
?>

2 thoughts on “破解foxmail密码

  1. 笑雅喧 February 3, 2006 / 11:11 pm

    什么时候帮我写段程序打入瑞士银行,弄点钱用用:)

  2. 星星的愿望 February 3, 2006 / 4:06 pm

    晕…竟然搬家了~~知道我一开BLOG就会死机,还逼着我改超连接…55555555~~~神仙哥哥很坏的诺~~西西

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s