• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Search

Display Asterisks When Typing Passwords in Bash

September 18, 2023

Here’s how to display asterisks when typing passwords in Bash.

#!/bin/bash
unset password
prompt="Enter Password:"
while IFS= read -p "$prompt" -r -s -n 1 char
do
    if [[ $char == $'\0' ]]
    then
        break
    fi
    prompt='*'
    password+="$char"
done
echo
echo "Done. Password=$password"

#!/bin/bash unset password prompt="Enter Password:" while IFS= read -p "$prompt" -r -s -n 1 char do if [[ $char == $'\0' ]] then break fi prompt='*' password+="$char" done echo echo "Done. Password=$password"

Filed Under: Linux Tagged With: asterisks, bash, display, password, typing

Checking What SSL and TLS Are In Use

September 15, 2023

Here’s another command to check what version of SSL and TLS is being used.

nmap --script ssl-enum-ciphers -p 443 server.domain.com

nmap --script ssl-enum-ciphers -p 443 server.domain.com

Result

PORT    STATE SERVICE
443/tcp open  https
| ssl-enum-ciphers: 
|   TLSv1.2: 
|     ciphers:
...

PORT STATE SERVICE 443/tcp open https | ssl-enum-ciphers: | TLSv1.2: | ciphers: ...

In this example, only TLSv1.2 is in use. For security purposes, use TLSv1.2 or higher.

Filed Under: Linux Tagged With: check, nmap, ssl, tls, version

What Requires OpenSSL

September 15, 2023

Here’s the command to list what app or package requires OpenSSL.

repoquery --whatrequires --installed --recursive openssl

repoquery --whatrequires --installed --recursive openssl

Result

authconfig-0:6.2.8-30.el7.x86_64
falcon-sensor-0:6.38.0-13501.el7.x86_64
python2-cryptography-0:1.7.2-2.el7.x86_64
realmd-0:0.16.1-12.el7_9.1.x86_64
terraform-0:1.3.6-1.x86_64

authconfig-0:6.2.8-30.el7.x86_64 falcon-sensor-0:6.38.0-13501.el7.x86_64 python2-cryptography-0:1.7.2-2.el7.x86_64 realmd-0:0.16.1-12.el7_9.1.x86_64 terraform-0:1.3.6-1.x86_64

Filed Under: Linux Tagged With: openssl, package, requires, ssl, tls

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to page 4
  • Interim pages omitted …
  • Go to page 345
  • Go to Next Page »
  • Home
  • About
  • Search

Copyright © 2023