All Projects β†’ fnk0c β†’ laufey

fnk0c / laufey

Licence: GPL-2.0 License
Lock user screen every time the flash drive is unplugged. Creating a two-step authentication on the machine

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to laufey

rci
πŸ”’β€‚better code inputs for react/web
Stars: ✭ 805 (+4635.29%)
Mutual labels:  2fa
duo go
An implementation of the Duo Security Web SDK in Go/Golang.
Stars: ✭ 12 (-29.41%)
Mutual labels:  2fa
2FAtoTray
ο£Ώ Copy 2FA tokens in a click (macOS)
Stars: ✭ 13 (-23.53%)
Mutual labels:  2fa
authy-extractor
Extract 2FA tokens from Authy.
Stars: ✭ 30 (+76.47%)
Mutual labels:  2fa
kagi
WebAuthn security keys and TOTP multi-factor authentication for Django
Stars: ✭ 17 (+0%)
Mutual labels:  2fa
AuthPress
Add 2-factor authentication to your WordPress blog site.
Stars: ✭ 16 (-5.88%)
Mutual labels:  2fa
mobileid
Mobile ID Sample Scripts
Stars: ✭ 13 (-23.53%)
Mutual labels:  2fa
twothy
Two factor authenticator for CLI
Stars: ✭ 39 (+129.41%)
Mutual labels:  2fa
framework
A stylish PHP application framework crafted using Slim, Twig, Eloquent and Sentinel designed to get you from clone to production in a matter of minutes.
Stars: ✭ 56 (+229.41%)
Mutual labels:  2fa
a12n-server
A ready-to-launch User and Authentication system for those that don't want to build it
Stars: ✭ 324 (+1805.88%)
Mutual labels:  2fa
tfa
tfa is a 2fa cli tool that aims to help you to generate 2fa code on CI/CD pipelines.
Stars: ✭ 25 (+47.06%)
Mutual labels:  2fa
shibboleth-mfa-u2f-auth
U2F multifactor authentication plugin for Shibboleth IdPv3
Stars: ✭ 25 (+47.06%)
Mutual labels:  2fa
wagtail-2fa
2 Factor Authentication for Wagtail
Stars: ✭ 63 (+270.59%)
Mutual labels:  2fa
yoti-php-sdk
The PHP SDK for interacting with the Yoti Platform
Stars: ✭ 22 (+29.41%)
Mutual labels:  2fa
yoti-java-sdk
The Java SDK for interacting with the Yoti Platform
Stars: ✭ 13 (-23.53%)
Mutual labels:  2fa
Wristkey
A free and open-source offline authenticator app for Wear OS.
Stars: ✭ 65 (+282.35%)
Mutual labels:  2fa
BoringAuth
Straightforward password, passphrase, TOTP, and HOTP user authentication
Stars: ✭ 49 (+188.24%)
Mutual labels:  2fa
react-native-sms-user-consent
React Native wrapper for Android's SMS User Consent API, ready to use in React Native apps with minimum effort.
Stars: ✭ 45 (+164.71%)
Mutual labels:  2fa
approveapi-go
A Go library for using ApproveAPI
Stars: ✭ 16 (-5.88%)
Mutual labels:  2fa
zauth
2FA (Two-Factor Authentication) application for CLI terminal with support to import/export andOTP files.
Stars: ✭ 74 (+335.29%)
Mutual labels:  2fa

Laufey

Lock user screen every time the flash drive is unplugged, creating a second factor authentication on the machine

How it works?

Every time you start the application, it initiates a process that is constantly verifying if the USB device is connected to the computer.

What if it's not connected?

If the device could not be found, the program sends a message to the system in order to lock the screen. This way, you can only use the computer if you have the password and the flash drive

What are the requirements?

  1. Flash drive
  2. Computer running Windows or Linux (tested on Windows 7 and Arch Linux. Others distributions should work like charm)
  3. Python 2 or 3 interpreter (Windows users can compile the application using py2exe)

How to use?

  • Edit the source in order to change the variables values

Only change the device name from flashDisk = "CHANGE_ME" to whatever is your device serial number

Imgur

Windows users
The following command can be used to determinate the serial number

  1. Verify if flash drive is connected

wmic logicaldisk get volumename

Imgur

  1. Get its serial number

wmic logicaldisk get volumeserialnumber

Imgur

Linux users
The following command can be used

lsusb | cut -d " " -f 6-

Imgur

Below the red thing you will find something like a1b2:3456. That's exactly the information you are looking for.

If not using Xscreensaver, please edit the following lines

49	#Lock screen
50	lock = ["xscreensaver-command", "-lock"]
51	
52	#Check if screen is locked
53	status = ["xscreensaver-command", "-time"]
  • type python laufey.py and it's done

##License This program is distribuited under GPLv2 license. For more informations, read LICENSE

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].