home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
STRINGS2.ZIP
/
ReadMe
next >
Wrap
Text File
|
1992-07-02
|
4KB
|
121 lines
STRINGS.EXE (copyright 1992, P. Takis Skagos)
===========
This is an OS/2 32 bit application compiled with the GNU C (GCC) 2.1
compiler. This program has been tested with OS/2 2.0 and is generally
bug free. If any problems or questions arise, I can be contacted through
the net as outlined below.
This program will search through specified files and print out
the strings contained in those files. Specifically, this program is
useful for finding the printable strings in binary files, although
there's nothing stopping you if you want to use it on any sort of
text files (for whatever reasons you might have to do that).
Oh yeah, this program is HPFS aware. Nifty stuff.
This program is made available for use by anyone who wants to use it.
There is no guarantee or anything that comes along with it. Use it at
your own risk, in other words.
There is no charge for this program at all. If you'd like to, you
can send me a postcard or something (with an interesting stamp on it)
or if it you want to, you can send however much money makes you
happy. You can freely copy and distribute this program as long as
you keep this file with it and don't modify either this file
or the executible.
If you've got any problems with this program or anything, just drop
me a note of somekind. Here is how I can be reached:
Mailing Address: P. Takis Skagos
3438 Keohan Cr.
Regina, SK
S4V 1J5
Canada
Internet: skagos@hercules.cs.uregina.ca.
USAGE
=====
It's use is fairly straight forward. Here is a useless example:
[e:\]strings -h
STRINGS.EXE v 2.1
Copyright (1992) by P. Takis Skagos
Usage: strings [-hop[0]] [-n] file1 file2 ... filen
h - show help (this message)
o - show the offset of the string in the file
p - pad the offset with spaces
p0 - pad the offset with zeroes
n - is the minimum string width
--
maximum string length is 1024 bytes
The '-h' option simply prints out the above help message. The help
message will also be displayed if you execute the program without any
options or filename at all.
The '-o' option will display the offset of the string in the file.
The offset is displayed in hexadecimal.
The '-p' option is only useful when used with the '-o' option. This
option pads the offset with either zeroes (0's) or spaces. To pad the
offset with 0's, use '-p0' but to pad with spaces just use '-p'.
The '-n' option specifies the minimum length of the string to search
for, where 'n' is a number. The default value for 'n' is 3. The
maximum string length is 1024 bytes. This option should be specified as
the last option or a separate option all together. For example, if n = 4
you should do something like:
strings -op4 filename
or as a separate option
strings -4 -op filename
BUGS
====
■ When trying to do 'strings strings.exe' you are greeted with the
following message:
strings: file `strings.exe' not found
Actually, when you execute 'strings' on any file that is otherwise in
use, then you get a similar error message. This, as far as I can tell,
is a problem with GCC's implementation of the fopen() function -- when
a file is marked as being in use (or locked????), fopen() will report
that it cannot find it.
■ This isn't really a bug, but some people have complained that the
maximum length of the search string should be > than 1024 bytes. Well,
this is long enough for now. If it gets to be a roadblock, I'll change
it in a revision.
NOTES
=====
Written by: Panagiotis Takis Skagos
Version 1.0: Jan 20, 1990
DOS program written with Turbo C.
Version 1.1: Jan 13, 1992
DOS program written with Turbo C.
■ added '-n' option
Version 2.0: May 20, 1992
OS/2 program written with GCC 2.1.
■ complete rewrite of strings
Version 2.1: July 1, 1992
OS/2 program written with GCC 2.1.
■ complete rewrite of strings 2.0 to provide for better
portability (got rid of the low-level read/open/close and
used the nicer stream functions)
■ added '-h' '-o' and '-p[0]' command line parameters
■ added capability to work on multiple files