ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - How to extract Customers Passwords
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to extract Customers Passwords

 Post Reply Post Reply
Author
Message
RobertZ View Drop Down
Groupie
Groupie


Joined: 21-January-2007
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote RobertZ Quote  Post ReplyReply Direct Link To This Post Topic: How to extract Customers Passwords
    Posted: 23-January-2008 at 7:52pm

Howdy

Does anybody know how to extract a customers password from their account? We're finding a few situations where we need this info but because its encryted in the DB cannt extract it.

We have a work around, but it would be nice if admin could see this info, if needed.

Rob

 

Back to Top
RobertZ View Drop Down
Groupie
Groupie


Joined: 21-January-2007
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote RobertZ Quote  Post ReplyReply Direct Link To This Post Posted: 29-January-2008 at 10:25pm
Anybody??

Edited by RobertZ - 29-January-2008 at 10:26pm
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 29-January-2008 at 10:52pm
Sounds like custom code time Robert.  There is likely a routine in the code which is used by the login scripts to decrypt the stored password and compare it to the entry keyed in the login form.  The approach I would take is to identify that, clone whatever part of the logic is needed, and cause the decrypted password to appear on the customer listing.  But I've not looked at the specific code, thus I'm speaking in generalities instead of specifics.
Back to Top
p00pstar View Drop Down
Newbie
Newbie
Avatar

Joined: 17-March-2007
Location: Romania
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote p00pstar Quote  Post ReplyReply Direct Link To This Post Posted: 26-February-2008 at 3:47pm
First of all, include settings.asp, storeconstants.asp and rc4.asp


Response.Charset = "UTF-8"

Set dbConn = Server.CreateObject("ADODB.Connection")
dbConn.Open scDSN

SQLString = "SELECT idcustomer,email,[password] FROM customers ORDER BY idcustomer ASC"

Set rsPasswords = dbConn.Execute(SQLString)

Response.Write "<table>"

Do While Not rsPasswords.Eof
    Response.Write "<tr><td>" & rsPasswords("idcustomer") & "</td><td>" & rsPasswords("email") & "</td><td>" & enDeCrypt(rsPasswords("password"), scCrypPass) & "</td></tr>"
    rsPasswords.MoveNext
Loop

Response.Write "</table>"

Set rsPasswords = Nothing
dbConn.Close
Set dbConn = Nothing
Back to Top
fly_scuba View Drop Down
Newbie
Newbie
Avatar

Joined: 21-July-2006
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote fly_scuba Quote  Post ReplyReply Direct Link To This Post Posted: 15-May-2013 at 6:08pm
I performing the steps in this post I believe that there are significant changes that version 4.7 now uses. With the option explicit option turned on we see 2 variables that are now not being initialized just by the listed include files. I have been able to review the admin login page and determined that the process is still basically the same but the password is not being displayed in normal text after the enDecrypt function. 

Just for my own knowledge I posted out my password from the db before the function call and after ward. I also list out my key which is passed to the function as well.

The value that comes back from the function is the same as the parameter sent to the function before it went in.

I could use some updated info on this process.Smile
Back to Top
fly_scuba View Drop Down
Newbie
Newbie
Avatar

Joined: 21-July-2006
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote fly_scuba Quote  Post ReplyReply Direct Link To This Post Posted: 15-May-2013 at 6:23pm
I found the answer.  

You must include the following response object:

dim AdminPassword , intLength
Response.Charset = "UTF-8"


Hope this helps someone.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.570 seconds.