FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Automatically unlock PC when entering proximity
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
bohrsatom
Newbie


Joined: 02 Dec 2005
Posts: 12

PostPosted: Wed Dec 07, 2005 11:47 pm    Post subject: Automatically unlock PC when entering proximity Reply with quote

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



Unlocker.zip
 Description:

Download
 Filename:  Unlocker.zip
 Filesize:  47.65 KB
 Downloaded:  195127 Time(s)

Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Thu Dec 08, 2005 12:15 am    Post subject: Reply with quote

Neat! Many thanks for doing this one. I'll definitely give it a shot when I have some time.

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Reflex
Newbie


Joined: 05 Jan 2006
Posts: 13

PostPosted: Thu Jan 05, 2006 7:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
bohrsatom
Newbie


Joined: 02 Dec 2005
Posts: 12

PostPosted: Sun Jan 08, 2006 9:31 pm    Post subject: Reply with quote

[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
View user's profile Send private message
jjlainen
Newbie


Joined: 11 Jan 2006
Posts: 4

PostPosted: Wed Jan 11, 2006 3:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
jjlainen
Newbie


Joined: 11 Jan 2006
Posts: 4

PostPosted: Wed Jan 11, 2006 4:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
bohrsatom
Newbie


Joined: 02 Dec 2005
Posts: 12

PostPosted: Wed Jan 11, 2006 8:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
mav
Newbie


Joined: 19 Jan 2006
Posts: 1

PostPosted: Thu Jan 19, 2006 12:19 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
feuerfuchs
Junior Member


Joined: 26 Nov 2005
Posts: 37

PostPosted: Thu Mar 30, 2006 5:56 pm    Post subject: not working :( Reply with quote

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
View user's profile Send private message
jxn
Newbie


Joined: 03 Apr 2006
Posts: 4

PostPosted: Tue Apr 04, 2006 3:59 pm    Post subject: Reply with quote

didnt work for me. how do i uninstall it?
Back to top
View user's profile Send private message Send e-mail
ziddey
Newbie


Joined: 16 Mar 2006
Posts: 9

PostPosted: Sat May 13, 2006 12:31 am    Post subject: Reply with quote

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
View user's profile Send private message
tom121
Newbie


Joined: 28 May 2006
Posts: 4

PostPosted: Sun May 28, 2006 11:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
tom121
Newbie


Joined: 28 May 2006
Posts: 4

PostPosted: Mon May 29, 2006 12:13 am    Post subject: Reply with quote

Nevermind done it know!!

Works a treat, well done :mrgreen:
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Mon May 29, 2006 12:42 am    Post subject: Reply with quote

Glad to hear it!

- Jonas

[quote="tom121"]Nevermind done it know!!

Works a treat, well done :mrgreen:[/quote]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nigelwan
Newbie


Joined: 07 Jul 2006
Posts: 1

PostPosted: Fri Jul 07, 2006 1:49 pm    Post subject: ACD Service.exe problem Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows All times are GMT + 2 Hours
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
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 cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group