DW Forums
SearchMember ListHelp Register
Post Reply 
NavLock - Utility to lock workstation
Author
Message
Quote this message in a reply
NavLock - Utility to lock workstation
Basically this is a utility that will "lock" your workstation so other people can't use it.

"But Nav why not just Windows Key + L" you ask

Well, at the polytech they have disabled the lock feature and you cant run the rundll32.exe user32.dll, LockWorkStation command either.

So I decided to make this one just for personal use.. its nothing flash.

When you run it for the first time and try to login with a random password it will create a password file and give you the default password with which you can create your own or keep using the default.

This also means it doesn't use the Windows API so it will not take your windows passwords you have to make your own. I'm not that good of a programmer in VB.

Anyways enough ramblings here it is

Try - NavLock v1.6
Test version -NavLock Test v1.6

Over the past few days have made some changes to NavLock one of them being the addition of the auto logoff feature.
The Normal version is set to log a user out if the station has been inactive for 20 minutes, if you would like to test out this feature i recommend getting the test version which has a 10 second idle timer.

Also NavLock now uses better encryption. Thanx JC

Please report any bugs that you find. Thanx!

-------
Changelog:

v1.6

- Fixed an issue where SHA encryption methods caused an error on Windows XP Service Pack 3 machines.

v1.5

- Added SHA Encryption to passwords.

v1.1

-Fixed a bug where if the Password in the file is in plain text or is missing then the program fails.

NOTES:

After downloading a new version of the application please delete your old password files, especially if there are hashing improvements made. In some cases the old password files will no longer work.

[Image: sig.jpg]
Visit this user's website
Quote this message in a reply
 
Good to see this kind of thing on the forums, we need more of this in my opinion.
The Windows API isn't too much of a pain, although I think you might need to jump a couple of hoops when it comes to permissions for locking etc, but if you like I could take a look and see if I can code up something to lock the machine with the native APIs, assuming it isn't blocked at that level of course.

[Image: sig.png]
Quote this message in a reply
 
Probably isn't a lot of point in me linking a 5kb binary, but if you have Visual C++ (I actually used mingw but it shouldn't matter) installed the code is as simple as

Code:
#define WIN32_LEAN_AND_MEAN
#define _WIN32_WINNT 0x0500
#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
    LockWorkStation();

    return 0;
}

and just make sure it links with user32.lib.

I have no idea if this will help at all, but code is fun so whatever Smile

[Image: sig.png]
Quote this message in a reply
 
The Windows-R key combination should be disabled to prevent the use of taskkill.exe

Code:
Windows + R
taskkill /IM "NavLock.exe"
Return
Quote this message in a reply
 
Yeh im not too sure if that will work hash, if you would like to test it on an xp machine you can replicate the permissions by just disabling lock in local policy

gpedit.msc >> User Configuration >> Administrative Templates >> System >> C+A+D options

Let me know how you go..

[Image: sig.jpg]
Visit this user's website
Quote this message in a reply
 
ozmodeon Wrote:The Windows-R key combination should be disabled to prevent the use of taskkill.exe

Code:
Windows + R
taskkill /IM "NavLock.exe"
Return

Just did some last minute changes, cant use win+r anymore nor can you use any other key combos.. apart from Ctrl+alt+del ... but that almost impossible to block

[Image: sig.jpg]
Visit this user's website
Quote this message in a reply
 
Nav Wrote:
ozmodeon Wrote:The Windows-R key combination should be disabled to prevent the use of taskkill.exe

Code:
Windows + R
taskkill /IM "NavLock.exe"
Return

Just did some last minute changes, cant use win+r anymore nor can you use any other key combos.. apart from Ctrl+alt+del ... but that almost impossible to block

This application seems to crash if I type too many characters into a text field
Quote this message in a reply
 
Nav Wrote:
ozmodeon Wrote:The Windows-R key combination should be disabled to prevent the use of taskkill.exe

Code:
Windows + R
taskkill /IM "NavLock.exe"
Return

Just did some last minute changes, cant use win+r anymore nor can you use any other key combos.. apart from Ctrl+alt+del ... but that almost impossible to block

I know on the old Windows 98 you would get around that problem by making the system think the screensaver was activated, I forget how but it must've been pretty simple if I was able to do it Tongue

And yeah it wouldn't lock after that was activated, oh well.

[Image: sig.png]
Quote this message in a reply
 
Yeh its way easier to disable C+A+D on pre NT machines using that method.. on NT machines thought its tricky but to get around they you can also just disable the task manager with a reg key change on form load or something. I just got around it by sending everything to the back lol. Havent tested it on xp very much though

[Image: sig.jpg]
Visit this user's website
Quote this message in a reply
 
At the moment it looks like this app isnt functioning as its supposed to under XP SP3 still working on a fix..

[Image: sig.jpg]
Visit this user's website
Post Reply