Sometimes when you're working on your PC, attempting to tidy up your files, you'll come across a non-document file whose purpose is unknown to you. Maybe it's a DLL file, or an executable EXE file, or a document created in a program which you don't have a copy of. In a search for clues as to what this file does, and whether it might be either useful or suspicious, you load it into a text editor such as NotePad, only to find that most of the characters in it are unreadable, unpronouncable rubbish. Sensible alphabetical characters do appear, but they're scattered among the rest of the garbage, making it difficult to decipher.
If you were doing such an exercise under Unix or Linux, you'd be in luck. There are commands such as "strings" or "tr" that will allow you to filter out all of the rubbish in a file, leaving only the printable characters. Sadly, no such facility exists in Windows; at least, not as standard. But thankfully, such a program does exist.
It's called Strings, and is written by well-known Windows guru Mark Russinovich. It's a small, free command-line program which is simple to use. From a command prompt, just type strings followed by the name of the file to analyze. The strings from the file will be displayed on the screen. To send the results to a text file instead, use the standard redirection facility. For example, to analyze myfile.dll and send the results to printables.txt, type:
strings myfile.dll > printables.txt
You can download Strings from http://technet.microsoft.com/en-us/sysinternals/bb897439.aspx and it should work on all recent versions of Windows. It's a tiny 0.05 MB download, and is malware-free according to VirusTotal and Web of Trust.
Please rate this article: