View previous topic :: View next topic |
Author |
Message |
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sat Oct 19, 2002 1:48 pm Post subject: Password checker like the Windows one... |
|
|
Hi all,
When I was connecting to the Internet I came up with the idea to make a password/login program just like Windows XP has. For the people who doesn't have XP: you can save your password, but nobody can read it, cause there is an other textbox over it which is showing 'Click to change the password'. So even with programs like Password Spy you can not get them...
Code: |
%%username = username
%%password = password
DIALOG CREATE,Password,-1,0,185,82
DIALOG ADD,EDIT,eUsername,8,4,180,19,%%username
DIALOG ADD,EDIT,ePassword1,32,4,180,19,,,PASSWORD
DIALOG ADD,EDIT,ePassword2,32,4,180,19,Click here to change your password
DIALOG ADD,BUTTON,bLogin,54,4,64,24,Login
DIALOG SHOW
:Evloop
wait event,"0,1"
%%event = @event()
goto %%event
:Timer
if @equal(@focus(),ePassword2)
dialog remove,ePassword2
dialog focus,ePassword1
end
goto evloop
:bLoginBUTTON
if @both(@equal(@dlgtext(eUsername),%%username,EXACT),@equal(@dlgtext(ePassword1),%%password,EXACT))@winexists(~ePassword2)
info Hello %%username.@cr()You've been logged in correctly.
else
warn Oops... Try it again...
end
goto evloop
:Close
exit |
|
|
Back to top |
|
|
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Sun Oct 20, 2002 12:37 am Post subject: |
|
|
The password still could easily be retrieved using the Window Spy of VDS.
Also this call is invalid: @winexists(~ePassword2)
Randomly it will throw an access violation because you could only use the ~ "operator" for
valid existing controls, it won't work for non-existing controls. |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Oct 20, 2002 12:31 pm Post subject: |
|
|
Oops... I forgot that I've put the right password in Password1... My fault.
But about that @winexists(ePassword2), what is wrong with that? If there isn't a valid control, it will set @ok() to false, so it will work... |
|
Back to top |
|
|
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Sun Oct 20, 2002 12:45 pm Post subject: |
|
|
After entering some text in the password box and clicking "Login" it will crash with
Exception: Access violation at address 004201AF. Read of address 000000C0
because of the problem that I mentioned. This happens with VDS 4, I'm not sure if
it applies to VDS 3 as well. |
|
Back to top |
|
|
Skit3000 Admin Team
Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Sun Oct 20, 2002 12:56 pm Post subject: |
|
|
The script doesn't work in VDS 3, because it usses the @focus() function. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|