Xref: utzoo comp.os.minix:4464 comp.unix.questions:10905 Path: utzoo!attcan!uunet!mcvax!hp4nl!philmds!leo From: leo@philmds.UUCP (Leo de Wit) Newsgroups: comp.os.minix,comp.unix.questions Subject: Re: Getting an un-encrypted fortunes.dat Message-ID: <906@philmds.UUCP> Date: 4 Jan 89 12:02:12 GMT References: <2673@m2-net.UUCP> Reply-To: leo@philmds.UUCP (Leo de Wit) Organization: Philips I&E DTS Eindhoven Lines: 25 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.