logging in to squirrelmail email account

  • poiu

    poiu - 2014-06-14


    I'm testing my login script below by trying to access my squirrelmail account. But it is failing and from the error message I get (i.e. "please log in" as opposed to "your username/password are incorrect") I don't think the POST variables are being recognised.

    Please could someone point me in the right direction?



    / load the snoopy class and initialize the object /
    $snoopy = new Snoopy();

    / set some values /
    $login_form['login_username'] = 'username';
    $login_form['secretkey'] = 'password';

    $snoopy->cookies['vegetable'] = 'carrot';
    $snoopy->cookies['something'] = 'value';

    / submit the data and get the result /
    $snoopy->submit('http://webmail.mywebsitename.com/src/redirect.php', $p_data);

    / output the results /
    echo '

    ' . htmlspecialchars($snoopy->results) . '

  • Nuno Couto

    Nuno Couto - 2014-10-01

    I used fidler to read the cookies parameters a normal browser sends to the server, to access my account;

    Then I set Snoopy cookies vars with the same parameters, and I could access my account via Snoopy.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks