How to login automatically in online accounts using java?

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2009
Posts: 5
Reputation: trickx0729 is an unknown quantity at this point 
Solved Threads: 0
trickx0729 trickx0729 is offline Offline
Newbie Poster

How to login automatically in online accounts using java?

 
0
  #1
Jun 5th, 2009
Hey guys,
I just want to know if its possible to code a java program that will automatically logs you on your online accounts (e.g. such as yahoo mail, facebook, gmail, multiply, or even in this site) using your own username and password you use to register on such accounts. If its possible, what codes or technique should I use?
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 1,968
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 214
tux4life's Avatar
tux4life tux4life is offline Offline
Posting Virtuoso

Re: How to login automatically in online accounts using java?

 
0
  #2
Jun 5th, 2009
Originally Posted by trickx0729 View Post
Hey guys,
I just want to know if its possible to code a java program that will automatically logs you on your online accounts (e.g. such as yahoo mail, facebook, gmail, multiply, or even in this site) using your own username and password you use to register on such accounts. If its possible, what codes or technique should I use?
And why would you ever want to do this?
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 5
Reputation: trickx0729 is an unknown quantity at this point 
Solved Threads: 0
trickx0729 trickx0729 is offline Offline
Newbie Poster

Re: How to login automatically in online accounts using java?

 
0
  #3
Jun 6th, 2009
Originally Posted by tux4life View Post
And why would you ever want to do this?
I just need a little help in doing a project which will automatically logs a user in his online accounts.. even in his emails only. Also, it keeps a users online usernames and passwords just in case he forgot his account information.
Reply With Quote Quick reply to this message  
Join Date: Mar 2009
Posts: 54
Reputation: Intrade is an unknown quantity at this point 
Solved Threads: 5
Intrade Intrade is offline Offline
Junior Poster in Training

Re: How to login automatically in online accounts using java?

 
0
  #4
Jun 6th, 2009
Hmm, to do something like this in Java I'd assume that you would have to create code to handle these kind of problems--


Potential Pseudocode
-At startup, run program and have a thread that constantly checks if you have a web browser running such as FireFox or Internet Explorer, and in addition constantly check which website the user is currently browsing.
-IF user accesses <insert website here>
    -Parse remote file (the web page) for the link to sign into
    -push data into the link to sign in as last user to sign in (of course
     you would have a data file with this information stored somewhere on your computer)

-Else do nothing

of course you dont have to run the program at start-up, but it would be nice if it was an automatic thing you didn't have to run on your own.

And of course the problem might be more complicated than this. Suppose you're already logged into yahoo.com and you access the site again. You don't want to waste time parsing the file for information if you already have a session ID associated with your personal info. It might cause problems.

I'm just rambling though, so forgive me.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 1,968
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 214
tux4life's Avatar
tux4life tux4life is offline Offline
Posting Virtuoso

Re: How to login automatically in online accounts using java?

 
0
  #5
Jun 6th, 2009
Originally Posted by trickx0729 View Post
Also, it keeps a users online usernames and passwords just in case he forgot his account information.
All modern browsers (= all today's browsers) have something like a password manager which will safely guard that information for you and fill it in automatically for you when you visit that particular web page again, the only thing left is that you have to click the logon button
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 5
Reputation: trickx0729 is an unknown quantity at this point 
Solved Threads: 0
trickx0729 trickx0729 is offline Offline
Newbie Poster

Re: How to login automatically in online accounts using java?

 
0
  #6
Jun 6th, 2009
Originally Posted by Intrade View Post
Hmm, to do something like this in Java I'd assume that you would have to create code to handle these kind of problems--


Potential Pseudocode
-At startup, run program and have a thread that constantly checks if you have a web browser running such as FireFox or Internet Explorer, and in addition constantly check which website the user is currently browsing.
-IF user accesses <insert website here>
    -Parse remote file (the web page) for the link to sign into
    -push data into the link to sign in as last user to sign in (of course
     you would have a data file with this information stored somewhere on your computer)

-Else do nothing

of course you dont have to run the program at start-up, but it would be nice if it was an automatic thing you didn't have to run on your own.

And of course the problem might be more complicated than this. Suppose you're already logged into yahoo.com and you access the site again. You don't want to waste time parsing the file for information if you already have a session ID associated with your personal info. It might cause problems.

I'm just rambling though, so forgive me.
Its okay,, any idea would be appreciated, so thank you

what i have in mind is to have a normal program with buttons, menus, etc. which can add, edit, and delete user's online accounts and the automatic login feature. it has other features too but i'll do it part by part
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 128
Reputation: PhiberOptik is an unknown quantity at this point 
Solved Threads: 4
PhiberOptik's Avatar
PhiberOptik PhiberOptik is offline Offline
Junior Poster

Re: How to login automatically in online accounts using java?

 
0
  #7
Jun 6th, 2009
you could pre program the info into a class using the robot api. Though your computer would be unusable while it's running. That'd be easy to do...as long as resolutions are not changing.
History will be kind to me for I intend to write it.
---------------------------------- Sir Winston Churchill
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC