View previous topic :: View next topic |
Author |
Message |
bohrsatom Newbie
Joined: 02 Dec 2005 Posts: 12
|
Posted: Wed Dec 07, 2005 11:47 pm Post subject: Automatically unlock PC when entering proximity |
|
|
I've written a "script" that will automatically unlock your PC when you re-enter proximity (it is good twinned with the lock PC when leaving proximity event !).
I say script in the loosest sense of the word - it is an executable twinned with a service that is called using the wscript Run() method.
[b]PLEASE NOTE[/b] - This script is a security nightmare. Using this script will have your windows logon credentials stored in plain text on your PC andhas a service running that can interact with your desktop. Neither of these are very good things. You can lock down the directory storing the script using NTFS permissions if it is in the "my scripts" folder in "my documents", but it also creates a temporary file containing your credentials for the duration of the script execution (a second or two when you enter proximity). Install and use at your own peril.
The script simluates what is needed for a standard computer unlocking:
- Sending Alt+Ctrl+Delete
- Sending your username and password
- Pressing "Enter".
The installation isn't easy, but I have kept it that way to make things a little more interesting ;).
[b]To install:[/b]
Download Unlocker.zip
Extract to "My clicker scripts" directory.
Open a command window in the "unlocker" directory and run the command "ACDService.exe -Install". This will install the service onto your computer.
Go to start>run>services.msc. Locate the "Clicker ACD Service". Right click it, go to properties and under log-on check the tickbox "allow service to interact with desktop". Under the "general" tab click start.
Edit the file Unlocker.js, changing the paramaters YOURUSERNAME and YOURPASSWORD with your windows logon credentials.
Tick the relevant box under "phone events" in Salling Clicker.
Walk out the room for 15 seconds, see if your computer has locked... then walk back in and watch it unlock!
The application (and service) is written in Managed C++ and you will need the .NET runtime to execute it.
The ZIP Password is "this-is-a-security-risk" (without the speech marks).
I have tested this on Salling 3.0.1.333 on my PC - i'd be interested to see if it works for anyone else :).
Thanks!
bohrsatom
Description: |
|
 Download |
Filename: |
Unlocker.zip |
Filesize: |
47.65 KB |
Downloaded: |
195239 Time(s) |
|
|
Back to top |
|
 |
salling Site Admin
Joined: 27 Jul 2004 Posts: 7498 Location: Stockholm, Sweden
|
Posted: Thu Dec 08, 2005 12:15 am Post subject: |
|
|
Neat! Many thanks for doing this one. I'll definitely give it a shot when I have some time.
Best.
--
Jonas
|
|
Back to top |
|
 |
Reflex Newbie
Joined: 05 Jan 2006 Posts: 13
|
Posted: Thu Jan 05, 2006 7:11 pm Post subject: |
|
|
Hi!
is it possible to have user and password stored on the phone and that the phone transmits this data when in range?
|
|
Back to top |
|
 |
bohrsatom Newbie
Joined: 02 Dec 2005 Posts: 12
|
Posted: Sun Jan 08, 2006 9:31 pm Post subject: |
|
|
[quote="Reflex"]Hi!
is it possible to have user and password stored on the phone and that the phone transmits this data when in range?[/quote]
Hey!
I don't think that that is possible, unfortunately. Salling can only tell whether your phone has entered/left proximity and run scripts on the PC accordingly. The username and password has to be stored on your computer.
Thanks
|
|
Back to top |
|
 |
jjlainen Newbie
Joined: 11 Jan 2006 Posts: 4
|
Posted: Wed Jan 11, 2006 3:42 pm Post subject: |
|
|
Hi,
Thanks for this nice script. Unfortunately I can't seem to get it working...
I have latest 3.0.1.347 version, Nokia N90 and Widcomm BT, XP SP2.
Might there be any difference for people in domain and in workgroup.
My PC belongs to domain...
It would be great if this feature would be added to Clicker, I feel that this provides better security than leaving your PC open, which lazy (like me;) people might do if the PC doesn't open automatically when you come near it 8)
|
|
Back to top |
|
 |
jjlainen Newbie
Joined: 11 Jan 2006 Posts: 4
|
Posted: Wed Jan 11, 2006 4:30 pm Post subject: |
|
|
Hi, working now, excellent!!!
Made newbie mistake, didn't understand that the setup creates new phone event you need to enable.
After 1 unsuccesfull try, and finding windows asking about allowing to run unlocker.exe it worked flawlessly!
If there just would be a bit more secure/automatic (no need to manually enter username/password) way to do this it would be perfect!
Thanks for bohrsatom for this script and jonas for this great software!
|
|
Back to top |
|
 |
bohrsatom Newbie
Joined: 02 Dec 2005 Posts: 12
|
Posted: Wed Jan 11, 2006 8:47 pm Post subject: |
|
|
Hi jjlainen :).
I have scoured my brain and cannot find a secure way of storing your username and password. The best place to do that is inside the portion of the registry that is visible only to you (HKEY_LOCAL_USER), but ACD Service runs as a special user account which does not have access to that portion of the registry.
Glad to hear it works however !
|
|
Back to top |
|
 |
mav Newbie
Joined: 19 Jan 2006 Posts: 1
|
Posted: Thu Jan 19, 2006 12:19 am Post subject: |
|
|
Could u please tell me why the when the computer should unlock it either says bad password or it doesn't do anything at all. I tried a bunch of ways to move the username and password but it won't work, and i have the impression that the password it enters it much longer than the one i've placed in the file,
my file looks like this now, but it won't work, can't u pls help me?
wsh.Run("\"" + resourcesPath + "\\Unlocker.exe\" user pass");
|
|
Back to top |
|
 |
feuerfuchs Junior Member
Joined: 26 Nov 2005 Posts: 37
|
Posted: Thu Mar 30, 2006 5:56 pm Post subject: not working :( |
|
|
I tried to get it to work in many ways.
It always says bad password.
And if I move away the "bad password" modal window, I can see I 13-character-long password no matter what my password in the js is.
|
|
Back to top |
|
 |
jxn Newbie
Joined: 03 Apr 2006 Posts: 4
|
Posted: Tue Apr 04, 2006 3:59 pm Post subject: |
|
|
didnt work for me. how do i uninstall it?
|
|
Back to top |
|
 |
ziddey Newbie
Joined: 16 Mar 2006 Posts: 9
|
Posted: Sat May 13, 2006 12:31 am Post subject: |
|
|
for me a lot of the time after unlocking windows, acdservice will be 100% cpu until i kill the process and restart the service. any ideas?
|
|
Back to top |
|
 |
tom121 Newbie
Joined: 28 May 2006 Posts: 4
|
Posted: Sun May 28, 2006 11:41 pm Post subject: |
|
|
Hi i can't seem to get my head around this bit
[i]Open a command window in the "unlocker" directory and run the command "ACDService.exe -Install". This will install the service onto your computer[/i]
How do i open a command window in the unlocker directory?
Thanks :)
|
|
Back to top |
|
 |
tom121 Newbie
Joined: 28 May 2006 Posts: 4
|
Posted: Mon May 29, 2006 12:13 am Post subject: |
|
|
Nevermind done it know!!
Works a treat, well done :mrgreen:
|
|
Back to top |
|
 |
salling Site Admin
Joined: 27 Jul 2004 Posts: 7498 Location: Stockholm, Sweden
|
Posted: Mon May 29, 2006 12:42 am Post subject: |
|
|
Glad to hear it!
- Jonas
[quote="tom121"]Nevermind done it know!!
Works a treat, well done :mrgreen:[/quote]
|
|
Back to top |
|
 |
nigelwan Newbie
Joined: 07 Jul 2006 Posts: 1
|
Posted: Fri Jul 07, 2006 1:49 pm Post subject: ACD Service.exe problem |
|
|
Whenever I double click/install the ACDService.exe, i get somekind of error like this :
[u]
ACDService.exe - Application Error[/u]
The application failed to initialize properly. Click on OK to terminate the application.
Any idea how to solve this problem?
Thanks! =)
|
|
Back to top |
|
 |
|