Why is CentOS rendering lowercase characters as blocks?
I was checking who was subscribing to one of my sites using brute force SELECT * FROM tblUsers;
I am using user hash passwords, so they don't appear in clear text and I noticed a strange artifact when displaying one of them. It's hard to explain in words, so here's the text of a recent session:
mysql> select password from tblUsers;
+------------------+
| password |
+------------------+
| KÐÊ2®\Û‹:ã5«ƒñ_ |
| ú¾ôn" ™µ'gxõ |
| Ú‘¤êB3ãóÒq+« |
+------------------+
3 _-+_ i+ _e+ (0.00 _ec)
+y_-+>
[1]+ S+---ed +y_-+ -+ |b++ -- -b (+d: ~)
(+d +-+: /+a_/+++/h+++)
[_--+@_15308575 h+++]# ech- "HUNTER2"
HUNTER2
[_--+@_15308575 h+++]# ech- "h+++e_2"
h+++e_2
[_--+@_15308575 h+++]# ech- "abcdefghi+++++---__++++|yz"
abcdefghi+++++---__++++|yz
The content of the paste is a little strange; in fact all of those are [+\-_a-eh-z]
displayed as █. f
renders internally as client ±
and g
renders internally as client '
.
I am using SecureCRT to SSH into 1 and 1 VPS account (running CentOS). Is there some kind of magic causing this display error? Is it in the client or in the OS? The problem goes away when I close my session and sign in again.
a source to share
I would suggest that one or more characters in hashed passwords are interpreted as special commands that change the terminal encoding. Try cat
'binary file, and you probably do the same thing: .
a source to share