Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My email virus software quarantined several virus files. Is it safe to view them with 'cat' or other similar commands? Also can I safely open them with editors like nano?

Thanks

share|improve this question
    
Don't use cat, use strings, xxd, hexdump etc. If you really want to know what is going on use a disassembler. –  Thor Sep 16 '12 at 20:16
    
I haven't thought about this, but thanks for the suggestion –  tonytz Sep 19 '12 at 19:15

2 Answers 2

up vote 4 down vote accepted

cating any binary files can screw up your terminal, but you can still return it back to normal by running reset command (or just closing it and starting new one)

Otherwise it should be safe.

Probably, there is a way to create some virus that targets vulnerability in e.g. nano's syntax highlighting module, but I haven't heard of such things.

share|improve this answer

Yes, you can safely view the virus with those tools, though I'm not sure why you would want to do it. There may be a virus to specifically target a leak in nano or cat or vim or whichever, but the odds of that are so small I'd almost not mention it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.