Скрипт авторизации

    Date: 06/19/06 (Code WTF)    Keywords: no keywords

    $user_input = @$_POST['pass'];

    $filename = "pw.pw";
    $pwfile = fopen ($filename, "r");
    $valpas = fgets($pwfile, 512);
    $password = crypt($valpas);

    if ( !strcmp( crypt($user_input, $password), $password) )
    {
    [skipped]
    }

    Пароль в pw.pw хранится в открытом виде :)

    Source: http://community.livejournal.com/code_wtf/42463.html

« И чёрт меня... || Чуваку платили... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home