How do I secure my windows login with google authenticator?
I want to secure my windows login with google authenticator. Preferably by using an open source solution, I want a login mechanism where I just don't enter a username and password, I also have to enter a code to enter. It should be compatible with Windows 7 and later.
Please refer to a place where installation instructions are also present.
P.S. I'm not a fan of hardware tokens so please don't refer that.
See also questions close to this topic
Can an application started by a windows service connect to internet
I have a script in python whose purpose is to make sure that a particular application that continuously download data from internet stays up all the time. If the application crashes, the script brings it back up.
Since the system is in Windows, I modified the script into a service, so that even if windows restarts itself, the service will ensure that the application is up even if the user is not logged in.
The service was installed using an account that has admin permissions. The system seems to work fine except that the application that is successfully brought up is not connecting to internet (The application writes log file, so we can be sure that it started fine). Faces the same issue if the user is changed to Network Service or Local System
So I was wondering if there are any permissions required to help it connect to internet (or is this not possible at all).
pywin32 SendMessage return 0 and don't work
I am new to python and want to write an script to click an program. So pywin32 is good choice and i successfully use it's method like mouse_event
def mouseClickReally(width,high): win32api.SetCursorPos([int(width),int(high)]) time.sleep(0.5) # 执行左单键击，若需要双击则延时几毫秒再点击一次即可 win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0) time.sleep(0.05) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
but mouse_event need my program stay in front of desktop,and i want to hidden it in background,so i want to change to SendMessage method
def left_click(hwd, x_position, y_position): long_position = win32api.MAKELONG(x_position, y_position) win32gui.PostMessage(hwd, win32con.WM_LBUTTONDOWN, win32con.MK_LBUTTON, long_position) win32api.PostMessage(hwd, win32con.WM_LBUTTONUP, win32con.MK_LBUTTON, long_position)
but it doesn't work. i changed it to SendMessage or use RBUTTON. SendMessage just return 0, and nothing happend i wrote in windows10 ,python 3.6. if anyone can give me an help ,thanks verymuch.
How to find the event ID whenever my Cellular disconnects
How do I find the exact event ID whenever my Cellular is disconnected? I want to create a schedule task to enable my Wi-Fi adapter once my Cellular is disconnected from the APN session.
Adding an extra password field in window vista sample wrap credential provider
I have been recently working with window vista sample credential provider. As the samples are many, I have been following the WrapCredentailProvider sample code. I am wrapping the password credential provider and adding an extra password field. I have it set up so I can do my own password validation logic and work with the extra field. This is where the problem arises as I am unable to understand where this logic needs to be implemented in the sample code as i need to use the text from that password and apply checks on it.
Tile not appearing at logon screen when using win7 sample wrap existing credential provider
I have just built credential providers in win7 samples using Visual Studio 2017 in Windows10 for x86 and deploy it in Windows7.The tile not displayed in login screen for Wrap Existing Credential Provider. But other samples in win7 credential provider works in the same environment.
Credential Provider V2 Combobox unexpected behavior
I've been developing our company's credential provider for windows 10 for almost a year now.
Now, I encountered a problem. I don't usually ask questions on forums, blogs, because in most cases I find the solution, but this time I've been struggling with an issue for a month now and I found the root of the problem.
Brief description of the problem itself: The credential provider uses a combobox, which worked before without a problem. Now, I rewrote the whole code to manage a big update, but a strange bug got into the system. The bug only occurs at a specific scenario. I'm developing and testing the code on my personal laptop.
1) The laptop is plugged in to my monitor / power, etc.
2) I make it go sleep.
3) I unplug all cables (including power).
4) I wake it up from sleep.
Than, the combobox doesn't show a default selected item, it's empty. When I drop it down, it shows all the necessary items. Than the credprov crashes and restarts, than everything is fine.
I know, that in similar "strange" scenarios, in most of the cases, a memory leak or something related causes the problem. When I check the event viewer it shows me c0000005, which is access violation. I started to debug where the violation is. Than I found out that the program refers the combobox item list array (actually vector in my case) at a very very high index (out of range could be the reason for the violation). The actual index is obviously stored in the "selectedComboItemIndex" variable (DWORD).
I was curious when did it change to this strange number, than I found an unexpected behavior. The SetComboBoxSelectedValue method randomly gets called once (when the bug happens) with an insanely high index value. I don't even call this method in my code, so I have no idea, why does it get called. The call happens even when I don't drop down the combobox.
I give it a chance that it could be a bug in the credprov itself. What do you think? Have you seen this problem before?
Thank you in advance!