Skip to content

Securing Terminal (Mac, Linux, windows not tested yet), python 2.7.xxxx

License

Notifications You must be signed in to change notification settings

slohani-ai/Set_password_at_Terminal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Set_password_at_Terminal

Want to secure the terminal (Mac, Linux, windows not tested yet), give it a try at your own risk.

Req. Libraries: Anaconda, opencv, termcolor

Caution: It uses the computer camera and takes a snap after three consecutive faliure while providing an user name and password. The snaps are stored in your home directory and desktop as Uknown_Host.png, which keep tracks of who was trying to unlock your terminal. You can delete them later, if you like.

  1. First, place all the scripts to the home directory.

  2. Create a data-base. Run 'python acc_control.py open'. It creates p.db file in your home dir. Dont remove this file ever. IF you some how delete this then you need to create a new one.

  3. Insert User Information. Run 'python acc_control.py insert' and follow the instructions.

  4. If you want to add another user account then repeat step (3).

  5. Test run, Run 'python acc_control.py passcode' and give it user name and password that you have just created.

  6. Update: If you think you need to update any information (name, user account etc) then run 'python acc_control.py update' and follow the instructions. you might need a personal "key", default is 00000, you can change it any time (line 37 and 65 of user_pass.py).

  7. Delete: run 'python acc_control.py delete', and follow the instructions.

  8. Display: If you want to read the data-base of your accounts, run 'python acc_control display' and follow the instructions.

  9. After creating and inserting the user account to data base file (p.db, after completing steps 1-3), edit your '.bashrc or .bash_profile' file at home dir and add a line 'python acc_control passcode' at the end.

  10. Close the terminal and open again, you are supposed to see the password window. Type your password and enjoy.

  11. Note: There is also a "Back Door", in case, when you lost the password (line 36 at passcode.py).

Caution: It uses the computer camera and takes a snap after three consecutive faliure while providing an user name and password. The taken snaps are stored in your home directory and desktop as Uknown_Host.png, which keep tracks who was trying to unlock your terminal. You can delete them later, if you like.

Please let me know if you need binary version i.e. setup files in order to directly install these scripts into your pre-built library.

About

Securing Terminal (Mac, Linux, windows not tested yet), python 2.7.xxxx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages