PHP Classes

Yahoo! Login

Recommend this page to a friend!

      PHP HTTP protocol client  >  All threads  >  Yahoo! Login  >  (Un) Subscribe thread alerts  
Subject:Yahoo! Login
Summary:How to get through Yahoo's Security
Messages:84
Author:Erick Bajao
Date:2005-10-12 03:50:41
Update:2007-11-17 20:53:27
 
  1 - 10   11 - 20   21 - 30   31 - 40   41 - 50   51 - 60   ...   80 - 84  

  1. Yahoo! Login   Reply   Report abuse  
Picture of Erick Bajao Erick Bajao - 2005-10-12 03:50:41
HI, I'm a little new when it comes to HTTP CLients. I need to get my addressbook in Yahoo but i can't figure it out how to get through Yahoo's security and log-in.. Do you have any idea or suggestions?

Thank you so much

Erick

  2. Re: Yahoo! Login   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2005-10-12 04:37:40 - In reply to message 1 from Erick Bajao
It seems that Yahoo encodes the passwords with MD5 before submitting to the server. I think you need to analyze exactly what its Javascript does to figure what to submit to Yahoo login form.

  3. Re: Yahoo! Login   Reply   Report abuse  
Picture of Erick Bajao Erick Bajao - 2005-10-12 06:19:26 - In reply to message 2 from Manuel Lemos
whew... is there a tool for that? i wonder how friendster.com did that..

  4. Re: Yahoo! Login   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2005-10-12 16:25:52 - In reply to message 3 from Erick Bajao
There is this class that also authenticates on Yahoo like you want, although it is used to access other resources.

Basically it accesses the login page, picks up a challenge value, combines with your password using MD5 and pass it back to the login page.

It is just a bit odd that it calls some Linux programs to compute the MD5 hash, despite PHP already has a MD5 function.

phpclasses.org/yahoolistgrab

  5. Re: Yahoo! Login   Reply   Report abuse  
Picture of Erick Bajao Erick Bajao - 2005-10-13 01:51:29 - In reply to message 4 from Manuel Lemos
Oh, I already tried that one but unfortunately it didn't work.. It was still unable to log-in yahoo mail..

  6. Re: Yahoo! Login   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2005-10-14 17:46:53 - In reply to message 5 from Erick Bajao
Humm... hang-on, I am going to analyze the Yahoo login form and I will try to adjust this HTTP class cookies example to login in Yahoo.

  7. Re: Yahoo! Login   Reply   Report abuse  
Picture of Erick Bajao Erick Bajao - 2005-10-15 13:28:56 - In reply to message 6 from Manuel Lemos
hi, any updates about yahoo login? I think there's something about their javascripts... but im not sure...

  8. Re: Yahoo! Login   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2005-10-18 23:10:50 - In reply to message 7 from Erick Bajao
I tried disabling Javascript in my browser and I could login. Therefore Javascript is not needed.

The way I see it, you need to open a page with a login form, parse the page to extract the fields and values of the login form, and emulate a login request with those values.

This class will keep any cookies that Yahoo sends in response to all requests. That should be all you need.

  9. Re: Yahoo! Login   Reply   Report abuse  
Picture of Erick Bajao Erick Bajao - 2005-10-19 01:53:25 - In reply to message 8 from Manuel Lemos
ok thank you very much! I already extracted the values from the fields. My username and password was authenticated but then after that it redirects me back to the login page. I used curl at first, maybe I'm still missing some cookies or values, I'll try it this time with the HTTP protocol client class.. =)

  10. Re: Yahoo! Login   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2005-10-19 02:13:41 - In reply to message 9 from Erick Bajao
I think you need to extract the values of the fields again every time you try to login and use the collected cookies because it is probably a new session and you may not be able to use the same values used to login and start a new session.

 
  1 - 10   11 - 20   21 - 30   31 - 40   41 - 50   51 - 60   ...   80 - 84