[comp.unix.questions] Fudging binaries

weemba@garnet.berkeley.edu (Obnoxious Math Grad Student) (10/14/88)

In article <2965@ci.sei.cmu.edu>, pdb@sei (Patrick Barron) writes:
>[...] change it in the binary.  Just as long as the string you're
>changing is of equal or greater length than what you're changing it to,
>you'll be fine.  Be careful not to change the total size of the file.
>Sort of grody, but it works.

Long ago I wrote a fudge.c that takes octal addresses (gleaned from
`od -s') and then does the above interactively and safely.  I still
have it around somwhere, in case anyone is interested.  I wrote it
to change the rogue monsters to faculty names, and to cheat on the
die rolls.  It was kind of fun to watch people surprised by killer
hobgoblins.

ucbvax!garnet!weemba	Matthew P Wiener/Brahms Gang/Berkeley CA 94720

fyl@ssc.UUCP (Phil Hughes) (10/18/88)

In article <15469@agate.BERKELEY.EDU>, weemba@garnet.berkeley.edu (Obnoxious Math Grad Student) writes:
> In article <2965@ci.sei.cmu.edu>, pdb@sei (Patrick Barron) writes:
> >[...] change it in the binary.  Just as long as the string you're
> >changing is of equal or greater length than what you're changing it to,
> >you'll be fine.  Be careful not to change the total size of the file.
> >Sort of grody, but it works.
> 
> Long ago I wrote a fudge.c that takes octal addresses (gleaned from
 ...

Or, you can buy hexpose from us.  It is a file editor that allows you
to search and edit any file in both ASCII and hex.
Yes, we originally wrote it to do some file patching.
For details, contact:
	Sandy Webb
	SSC, Inc.
	P.O. Box 55549
	Seattle, WA 98155
	(206) FOR-UNIX
	{uunet!pilchuck,attmail}!ssc!san
-- 
Phil Hughes, SSC, Inc. P.O. Box 55549, Seattle, WA 98155  (206)FOR-UNIX
    uw-beaver!tikal!ssc!fyl or uunet!pilchuck!ssc!fyl or attmail!ssc!fyl

bes@holin.ATT.COM (Bradley Smith) (10/19/88)

There are 2 programs in PD that have been posted to the net.
One being bpatch and the other bpe.  Both do the same thing, which
is allowing you to edit binary files.


-- 
Bradley Smith				att!holin!bes
AT&T Bell Labs, Holmdel, NJ			bes@holin.att.com
OIL
201-949-0090 / Cornet 233-0090

chad@anasaz.UUCP (Chad R. Larson) (10/23/88)

In article <187@holin.ATT.COM> bes@holin.ATT.COM (Bradley Smith) writes:
>
>There are 2 programs in PD that have been posted to the net.
>One being bpatch and the other bpe.  Both do the same thing, which
>is allowing you to edit binary files.

The one we use here is called bed.  It is a pre/post-process filter
for your favorite editor.  It allows you to use ASCII representation
if desired (the file is primarily text, for example) and to specify
record length and word size if using hex.  It was posted to the net a
couple of years ago; I made some local clean-ups.  I could post/e-mail
if there is demand.
---------------
"I read the news today, oh boy!"  --John Lennon
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| DCF, Inc.               | UUCP: ...ncar!noao!nud!anasaz!dcfinc!chad   |
| 14623 North 49th Place  | Ma Bell: (602) 953-1392                     |
| Scottsdale, AZ 85254    | Loran: N-33deg37min20sec W-111deg58min26sec |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
|         Disclaimer: These ARE the opinions of my employer!            |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=