home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. CD ROM (Annual Premium Edition)
/
premium.zip
/
premium
/
IBMOS2_2
/
STRINGS.ZIP
/
ReadMe
next >
Wrap
Text File
|
1993-06-24
|
4KB
|
124 lines
STRINGS.EXE (copyright 1992-93 P. Takis Skagos)
===========
This is an OS/2 32 bit application compiled written in C for OS/2 2.x.
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 internet,
Fido Mail, or Snail-Mail 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.
Fido Net: The Holistic BBS (306)789-9909
1:140/96 (send mail to "Takis Skagos")
USAGE
=====
It's use is fairly straight forward. Here is a useless example:
[e:\]strings -h
STRINGS.EXE v 2.3
(C) 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
====
■ 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
Version 2.2: June 13, 1993
OS/2 program compiled with BC++ 1.0 for OS/2
■ simple re-compile with BC++ for OS/2
■ BC++ doesn't have the problem that GCC did with reading a locked
file ... so you can actually execute 'strings.exe' on itself or
any other file that is locked or otherwise in use
Version 2.2: June 13, 1993
OS/2 program compiled with BC++ 1.0 for OS/2
■ modified to run faster (BC++ produced a slower executible than
GCC did, but the changes make the BC++ version run slightly faster
than V 2.1)