Secretly enter a password within console

Last update on August 7, 2009 02:35 PM by jak58
Published by netty5

Secretly enter a password within console







Here is a simple method on how to limit the use of a specific command (as to prevent the display screen by disabling the echo command), using stty.

Just launch the command (to disable) using stty beforehand:

stty -<the_command>


To revert changes enter the following command:

stty <the_command>



Example:

#!/bin/bash
# script.sh

echo "Enter your password :"
stty -echo
read pass
stty echo
echo "Your password is : $pass"
exit
Best answers for « Secretly enter a password within console » in :
How remove regional lock on a Philips player This method w ShowHow remove regional lock on a Philips player? This method works for the following DVD players models: DVP 3260 DVP 3350 DVP 3360 DVP 5980 DVP 5990 Please follow the below procedure to set the regional settings of your...
Using the [su] command ShowUsing the ‘‘su’’ command The ''su'' Sign in as a different user ID with "su" Start a new shell connection with "su -" Back to previous shell Notes The ''su'' The "su" is defined as the "Super User" which has the ability to...
XP Recovery Console – Admin password forgotten ShowXP Recovery Console – Admin password forgotten Issue Solution Note Issue A while back I bought a Dell Optiplex 210L on Ebay. It's been great till recently when the system crashed and it will not boot. I tried to use the XP recovery...
Download Password Cracker ShowEach time you must create a count on Websites, he asks you for an identifying or "Login" and for a password. Then when you have a good time giving different names and different passwords for every count, it is rather easy to forget it. Password...
Download Password Generator Professional 2009 ShowSave time when you need to generate a large number of passwords or license keys by using Password Generator Professional, a powerful application capable of creating strong passwords from random numbers. Advantage The program offers a truly...
Passwords ShowPasswords When connecting to a computer system, you usually have to enter a log in or username and a password to access it. This login/password pair thus forms the key for obtaining access to the system. While the login is in general...
Private-key (or secret-key) cryptography ShowSymmetric encryption Symmetric encryption (also called private-key encryption or secret-key encryption) involves using the same key for encryption and decryption. Encryption involves applying an operation (an algorithm) to the data to be...