Possible virus??? I have gibberish all over the screen. My keystrokes contain gibberish and what is returned after my commands is also gibberish

This is a discussion on Possible virus??? I have gibberish all over the screen. My keystrokes contain gibberish and what is returned after my commands is also gibberish within the Linux Security forums, part of the System Security and Security Related category; MLH wrote: > Thanks. Both you and Tauno set me straight. > > I posted the following to Tauno as ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-22-2005
Your Name
 
Posts: n/a
Default Re: Possible virus??? I have gibberish all over the screen. My keystrokes contain gibberish and what is returned after my commands is also gibberish

MLH wrote:

> Thanks. Both you and Tauno set me straight.
>
> I posted the following to Tauno as a follow-up...
>
> Suppose I was uncertain whether
> /etc/ssh/sshd_config was a binary file.
> Maybe I think its a text file and want to
> look at it to see what's in it. But - now I
> am afraid to run the cat command on it
> or any other file that may be a binary file.
> What do I do to first make sure a file is
> text before running cat on it?

man file

Reply With Quote
  #2 (permalink)  
Old 03-22-2005
MLH
 
Posts: n/a
Default Possible virus??? I have gibberish all over the screen. My keystrokes contain gibberish and what is returned after my commands is also gibberish


----- Original Message -----
Am running Gentoo. Must add that I have very little experience.
Having said that...


I thought what I was doing was harmless. I changed to /usr/bin
then typed cat less & pressed Enter.

Its been gibberish ever since. What did I do wrong. Can I just
type shutdown and make all this go away on subsequent boot?

What was wrong with my invoking cat less. In the DOS world,
I can run the following...

type command.com

from the command prompt without worry of an incident. I think
what I've done here is essentially comparable to "TYPEing" an
executable file in DOS. I have a real world problem to deal with
now. That's for sure. I can't verify it (since my screen is gibberish)
but I do not think I was logged in as the su when I made this
mistake. Comments appreciated.
Reply With Quote
  #3 (permalink)  
Old 03-22-2005
Tauno Voipio
 
Posts: n/a
Default Re: Possible virus??? I have gibberish all over the screen. My keystrokescontain gibberish and what is returned after my commands is also gibberish

MLH wrote:
> ----- Original Message -----
> Am running Gentoo. Must add that I have very little experience.
> Having said that...
>
>
> I thought what I was doing was harmless. I changed to /usr/bin
> then typed cat less & pressed Enter.
>
> Its been gibberish ever since. What did I do wrong. Can I just
> type shutdown and make all this go away on subsequent boot?
>
> What was wrong with my invoking cat less. In the DOS world,
> I can run the following...
>
> type command.com
>
> from the command prompt without worry of an incident. I think
> what I've done here is essentially comparable to "TYPEing" an
> executable file in DOS. I have a real world problem to deal with
> now. That's for sure. I can't verify it (since my screen is gibberish)
> but I do not think I was logged in as the su when I made this
> mistake. Comments appreciated.


Break the gibberish output with a control-C.

Type

stty sane

I you like to see printable text in an executable (or other
binary file, use strings, see man strings.

HTH

--

Tauno Voipio
tauno voipio (at) iki fi

Reply With Quote
  #4 (permalink)  
Old 03-22-2005
Rincewind
 
Posts: n/a
Default Re: Possible virus??? I have gibberish all over the screen. My keystrokes contain gibberish and what is returned after my commands is also gibberish

On Tue, 22 Mar 2005 14:26:32 -0500, MLH mumbled something like this:

> I thought what I was doing was harmless. I changed to /usr/bin then typed
> cat less & pressed Enter.
>
> Its been gibberish ever since. What did I do wrong. Can I just type
> shutdown and make all this go away on subsequent boot?


You have, as you indicated, tried to 'cat' an executable binary. THis has
caused control characters to be sent to the display, thus corrupting it.

You /can/ if you wish reboot, but you can also simply log out and back in
again, or if you can manage to type blind:

setterm -reset

you should get back a readable display
--
Rinso
/\
/ \
/wizz\
~~~~~~~~~~~~

Reply With Quote
  #5 (permalink)  
Old 03-22-2005
Rick Moen
 
Posts: n/a
Default Re: Possible virus??? I have gibberish all over the screen. My keystrokes contain gibberish and what is returned after my commands is also gibberish

Rincewind <rinso@unseen.edu> wrote:

> You have, as you indicated, tried to 'cat' an executable binary. THis has
> caused control characters to be sent to the display, thus corrupting it.
>
> You /can/ if you wish reboot, but you can also simply log out and back in
> again, or if you can manage to type blind:
>
> setterm -reset
>
> you should get back a readable display


"reset" will also do the trick, on most systems.

--
Cheers,
Rick Moen Frater Magnus vos spectat.
rick@linuxmafia.com
Reply With Quote
  #6 (permalink)  
Old 03-22-2005
MLH
 
Posts: n/a
Default Re: Possible virus??? I have gibberish all over the screen. My keystrokes contain gibberish and what is returned after my commands is also gibberish

Thank-you. I was able to recover.
Not as serious as I though.

My problem arose from not knowing
the file was a binary file. My first instinct
was to cat it and see for myself. Well,
you can imagine my surprise.

Suppose I was uncertain whether
/etc/ssh/sshd_config was a binary file.
Maybe I think its a text file and want to
look at it to see what's in it. But - now I
am afraid to run the cat command on it
or any other file that may be a binary file.
What do I do to first make sure a file is
text before running cat on it?
Reply With Quote
  #7 (permalink)  
Old 03-22-2005
MLH
 
Posts: n/a
Default Re: Possible virus??? I have gibberish all over the screen. My keystrokes contain gibberish and what is returned after my commands is also gibberish

Thanks. Both you and Tauno set me straight.

I posted the following to Tauno as a follow-up...

Suppose I was uncertain whether
/etc/ssh/sshd_config was a binary file.
Maybe I think its a text file and want to
look at it to see what's in it. But - now I
am afraid to run the cat command on it
or any other file that may be a binary file.
What do I do to first make sure a file is
text before running cat on it?
Reply With Quote
  #8 (permalink)  
Old 03-22-2005
Bit Twister
 
Posts: n/a
Default Re: Possible virus??? I have gibberish all over the screen. My keystrokes contain gibberish and what is returned after my commands is also gibberish

On Tue, 22 Mar 2005 15:22:18 -0500, MLH wrote:
>
> Suppose I was uncertain whether
> /etc/ssh/sshd_config was a binary file.
> Maybe I think its a text file and want to
> look at it to see what's in it. But - now I
> am afraid to run the cat command on it


Use less instead of cat. Then there is the commnad _file_, Examples:

file /sbin/hdparm
file /usr/bin/less
Reply With Quote
  #9 (permalink)  
Old 03-22-2005
Rincewind
 
Posts: n/a
Default Re: Possible virus??? I have gibberish all over the screen. My keystrokes contain gibberish and what is returned after my commands is also gibberish

On Tue, 22 Mar 2005 15:24:14 -0500, MLH mumbled something like this:

> Thanks. Both you and Tauno set me straight.
>
> I posted the following to Tauno as a follow-up...
>
> Suppose I was uncertain whether
> /etc/ssh/sshd_config was a binary file. Maybe I think its a text file and
> want to look at it to see what's in it. But - now I am afraid to run the
> cat command on it or any other file that may be a binary file. What do I
> do to first make sure a file is text before running cat on it?


Glad you're sorted! Bit Twister gave you the answer to your follow-up
question:

file /etc/ssh/sshd_config

--
Rinso
/\
/ \
/wizz\
~~~~~~~~~~~~

Reply With Quote
  #10 (permalink)  
Old 03-23-2005
Colin McKinnon
 
Posts: n/a
Default Re: Possible virus??? I have gibberish all over the screen. My keystrokes contain gibberish and what is returned after my commands is also gibberish

Your Name wrote:

> MLH wrote:
>
>> Thanks. Both you and Tauno set me straight.
>>
>> I posted the following to Tauno as a follow-up...
>>
>> Suppose I was uncertain whether
>> /etc/ssh/sshd_config was a binary file.
>> Maybe I think its a text file and want to
>> look at it to see what's in it. But - now I
>> am afraid to run the cat command on it
>> or any other file that may be a binary file.
>> What do I do to first make sure a file is
>> text before running cat on it?

> man file


or...
cat -v filename
....or...
strings filename

C.
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:20 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0