Jump to content

Recommended Posts

Posted (edited)

myLogin 🛡️ myLogin?style=for-the-badge total?style=for-the-badge total?style=for-the-badge

Hey guys, I've been working lately on a project developed directly from my GitHub repo. I'm optimizing it as much as possible, minimizing false positives. Feel free to try it out with complete confidence 🤖

200743de-9e8c-4b00-a04c-674af96f4ee7

 

Simple open-source program to lock the Windows Desktop screen with advanced options:

  • Disables the desktop while the lock window is active
  • Prevents normal system use
  • Only unlocks with a password set by the administrator
Edited by mlibre2
added tags and screenshot

myLogin 🛡️

Posted
Func _getHash($sInput)
   $sHash = _Crypt_HashData($sInput, $CALG_SHA_512)
   $sInput = "" ; clear
   Return _Crypt_HashData($sHash, $CALG_MD5) ; 128-bit
EndFunc

Good 1st post, cool :)

So..., why hash the hash, with a grater possibility of collision hash ? The 512 is good as is. What's the idea behind it ? 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

Thanks, yes, good observation, I'm aware of that, the purpose of why md5 is to make it shorter in case a parameter is used it tends to be very long if it wasn't.

myLogin 🛡️

Posted

...then use crc32, is even shorter :P

I'd go with the 512. No one would ( haven't run the code, just looked at it in the browser ) brute force the login screen, quite unlikely.
There is no reason to have to type a hash. You enter the password and if that's not it, ..that is not it.

Anyway, if you press ctrl+alt+delete you can override the password, right ?

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

Ok, I'll keep that in mind, as for the key combination, I implemented a method that temporarily suspends the explorer without killing it, preventing you from opening the start menu, running commands from the task manager.

myLogin 🛡️

Posted
2 minutes ago, argumentum said:

...reboot ? :lol:

I mean GitHub says to have to run on startup with starts it auto-locked :whistle:

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11, MSEdgeRedirect
Cisco FinesseGithubIRC UDFWindowEx UDF

 

Posted
6 minutes ago, rcmaehl said:

What if I forget my password?

In that scenario, when setting up autorun, you can enter safe mode without an interface until you reach the console, navigate to where the script is and modify the parameter in the config.ini file, leaving the PassHash key blank and then you can generate another one.

 

15 minutes ago, argumentum said:

...reboot ? :lol:

It's not so easy to avoid it

myLogin 🛡️

Posted (edited)

... a friend once told me to kill myself and stop complaining. ...I never did kill myself... :D 
This is a nice looking toy. I'd use it if I had to but I don't see a scenario where I can't just lock the PC with "Win + L".

At times I make a "service VM" where it logs in by itself to run stuff as user from the desktop, then lock the desktop ( or not, is a VM )
Again, is a nice looking script and does what it claims.

I did wonder why the convoluted "PassHash" setup but if you got that far, you know what you're doing, so is a good deterrent, to avoid the "click-click-ers" and shoot themselves in the foot.

Edited by argumentum
English

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

This method would be a deterrent alternative for those who know and are aware of the vulnerability of being able to bypass the user's password, with the typical command

net users nameUser *

This script adds an additional layer of security :whisper:

myLogin 🛡️

Posted (edited)

I wonder if @guinness remembers a similar program from their pre-MVPdeveloper PortableFreeware days. o:)

Granted that was... nearly 16 years ago.

Edit: Oh yeah, they're a dev now

Edited by rcmaehl

My UDFs are generally for me. If they aren't updated for a while, it means I'm not using them myself. As soon as I start using them again, they'll get updated.

My Projects

WhyNotWin11, MSEdgeRedirect
Cisco FinesseGithubIRC UDFWindowEx UDF

 

Posted
8 hours ago, argumentum said:
#pragma compile(Icon, C:\Program Files\AutoIt3\Icons\au3.ico)

the portable exe does not show an icon

If I tell you a curious fact... since I started testing the script on builds >= 22000 "windows 11", I get this problem: "unable to add resources", so I decided to remove that directive and insert the icon using the /icon parameter directly when compiling, but I made a typo in the workflow and the icon was not included. :shocked: It should be corrected for future versions.

myLogin 🛡️

Posted
10 hours ago, spudw2k said:

What drove you to change the LockWorkStation API function from a DllCall to using rundll32.exe? 

Since the explorer is suspended, it usually takes a few milliseconds to unlock, so if the session is blocked before then, the screen goes black and unresponsive. I assume this is because the API is running too quickly; therefore, I changed the methodology, giving me more time to execute the action.

myLogin 🛡️

  • mlibre2 changed the title to myLogin - 🛡️ Secure lock screen Windows 🖥️

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...