Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sat Nov 18, 2017 4:13 pm


Tutorials applicable on more than one Unix/Linux OS and shell scripts: ssh / openssl / protocols.

Author Message
admin
Post  Post subject: Fix shell terminal after cat-ing a binary or echoing some encrypted content  |  Posted: Thu Mar 03, 2011 5:58 am
Site Admin

Joined: Mon Aug 03, 2009 8:43 am
Posts: 104

Offline
 

Fix shell terminal after cat-ing a binary or echoing some encrypted content

Ever had the putty/securecrt/terminal looking like this after cat-ing a binary or echoing encrypted content ?

Code:
[⎼⎺⎺├@├␤⎺⎼ ·]#
[⎼⎺⎺├@├␤⎺⎼ ·]#
[⎼⎺⎺├@├␤⎺⎼ ·]#
[⎼⎺⎺├@├␤⎺⎼ ·]# ␊␌␤⎺ '\17'
\17
[⎼⎺⎺├@├␤⎺⎼ ·]# ␊␌␤⎺ -␊ '\␊(0'


There are many solutions on the web, but not all work all the time. Here's one that worked everytime for me:
Code:
echo -e '\017'

_________________
VPSie - SSD VPS servers in AMS-IX, LINX, DE-CIX
https://vpsie.com





Top
Display posts from previous:  Sort by  
E-mail friendPrint view

Topics related to - "Fix shell terminal after cat-ing a binary or echoing some encrypted content"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Normalizing terminal prompt (or putty prompt) after catting a binary file

debuser

2

650

Mon Jul 29, 2013 1:02 am

jonnblaze View the latest post

There are no new unread posts for this topic. How to change user login shell to bash in Linux

mandrei99

0

831

Thu Jan 22, 2015 11:37 am

mandrei99 View the latest post

There are no new unread posts for this topic. bash: Redirecting standard error to a shell variable and standard output to a file

debuser

0

2323

Mon Oct 31, 2011 6:54 am

debuser View the latest post

 

Who is online
Users browsing this forum: No registered users and 1 guest
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
News News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO