Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I'm writting an application that would save user and password logins on the net.

I would like to do like Firefox Mozilla when detects a login and shows the possibility to save the user and password, and when the website is visited again, it restores user and password saved.

Anyone knows how Mozilla does that?

For the moment I've written a sniffer program that creates a socket in SOCK_RCVALL so I can view all the traffic and detect when a connection is done with SYN flag.

After a deep searching, I can't find anything similar..

Any idea on how to do this?
Is winsock the right way or do I have to change completely the way?
Posted

I'd try this search[^] - as the http protocol is built on top of tcp/ip. tcp/ip is what you get from winsock ...

I'd also look at RFC 2616 - Hypertext Transfer Protocol[^] for a better understanding of your task.

Regards
Espen Harlinn
 
Share this answer
 
Comments
Dalek Dave 16-Mar-11 4:40am    
Good Links.
Espen Harlinn 16-Mar-11 7:17am    
Thanks Dalek!
miqmago 18-Mar-11 3:38am    
Thanks, very good links!
Espen Harlinn 18-Mar-11 4:55am    
Thank you, miqmago!
Firefox (and all the other popular browsers out there) use cookies (or a similar method) to remember your user name and password on certain sites,

now if you want to store this information on some server on the net you need to establish connection with that server and then send the data, you should also encrypt your data, since win sock will send it in plain text.
 
Share this answer
 
Comments
Dalek Dave 16-Mar-11 4:40am    
Sage Advice.
miqmago 18-Mar-11 3:42am    
Do you know if it is possible to send the info of a connection from a c++ app and then show in the browser the connection?
The idea is to do the same like Firefox and others that stores user name & password but outside the browser, and then come back the session to the browser.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900