mju@m-net.UUCP (Marc Unangst) (01/02/89)
Well, I just got the Minix version of fortune yesterday, and it looks good. However, I'm looking for a replacement for the tiny fortunes.dat file (4k) that was included with it. I've tried just downloading the /usr/games/lib/fortunes.dat file on Unix systems, but this appears to be encrypted (to keep people from peeking?). Anyway, I would like a way to convert it to Minix fortune's straight-ASCII format: Fortune #1 %% Fortune #2 %% (etc.) Anybody know how the fortunes.dat file is encrypted? I'd look in the fortune source, but we don't have it here... -- Marc Unangst UUCP: mju@m-net.ann-arbor.mi.us UUCP path: ...!uunet!mailrus!clip!m-net!mju Internet: mju%m-net@cardiology.ummc.umich.edu
leo@philmds.UUCP (Leo de Wit) (01/04/89)
In article <2673@m2-net.UUCP> mju@m-net.UUCP (Marc Unangst) writes: [some lines deleted...] |Anybody know how the fortunes.dat file is encrypted? I'd look in the fortune |source, but we don't have it here... Some years ago I wanted to decrypt /usr/games/lib/fortunes.dat so that I could run fortune in a non-Unix environment. This proved to be easy. I did the following (on Ultrix): Remove the header (this is probably an index for the data that comes after). Use od -c to find out where the data starts. What is left are '\0'-terminated fortune messages. No encryption whatsoever. Alternatively, you can do something like od -s10 /usr/games/lib/fortunes.dat and process the output through sed. The od command gives every message on one line, and you'll have to replace \t and \n by tab and newline respectively, and remove the leading octal offset number. There is one problem: you are probably not allowed to do this (that is, bringing the information thus acquired to your own system). Any lawyers out there? Leo.
billr@tekred.TEK.COM (Bill Randle) (01/05/89)
In article <2673@m2-net.UUCP> mju@m-net.UUCP (Marc Unangst) writes: >Well, I just got the Minix version of fortune yesterday, >and it looks good. However, I'm looking for a replacement for the >tiny fortunes.dat file (4k) that was included with it. I've tried The original fortune source (by Ken Arnold) with lareg unencrypted fortune database is available from your nearby comp.sources.games archive. It was posted as volume 1 issues 25-42, 64 &91 (source + patches). [It also has the code to encrypt and decrypt the data base.] -Bill Randle Moderator, comp.sources.games Tektronix, Inc. games@saab.CNA.TEK.COM
kirkenda@psu-cs.UUCP (Steve Kirkendall) (01/06/89)
In article <906@philmds.UUCP> leo@philmds.UUCP (Leo de Wit) writes: >In article <2673@m2-net.UUCP> mju@m-net.UUCP (Marc Unangst) writes: > [some lines deleted...] >|Anybody know how the fortunes.dat file is encrypted? I'd look in the fortune >|source, but we don't have it here... > >There is one problem: you are probably not allowed to do this (that is, >bringing the information thus acquired to your own system). Any lawyers >out there? I'm no lawyer, but I can't see how Berkely could object. As I recall, there is a comment somewhere in the source, that said something like: A lot of these fortunes come from copyrighted sources, and we haven't obtained permission to reproduce them here, but since we are only copying *parts* of the copyrighted works, and we aren't going to make any money from them, this should be O.K. right? Any lawyers out there? (That's not an exact quote, but you get the idea.) -- "If I seem insensitive to what you're going through, keep in mind that's the way I am." -- Mr. Spock
hyc@math.lsa.umich.edu (Howard Chu) (01/13/89)
In article <2673@m2-net.UUCP> mju@m-net.UUCP (Marc Unangst) writes: >Well, I just got the Minix version of fortune yesterday, >and it looks good. However, I'm looking for a replacement for the >tiny fortunes.dat file (4k) that was included with it. I've tried >just downloading the /usr/games/lib/fortunes.dat file on Unix >systems, but this appears to be encrypted (to keep people from peeking?). On a BSD machine, it's not encrypted, but it *is* stored in dbm format. Not to prevent peeking, but to speed up accesses. I've got a plain text version of the file around here somewhere... (Needed it for a port to MTS...) -- / /_ , ,_. Howard Chu / /(_/(__ University of Michigan / Computing Center College of LS&A ' Unix Project Information Systems