Article View: comp.os.linux.misc
Article #333Re: Hack to play Quake 2 with no CD
From: Douglas Winslow
Date: Fri, 09 Jan 1998 00:00
Date: Fri, 09 Jan 1998 00:00
43 lines
2212 bytes
2212 bytes
root wrote: > > #!/bin/sh > #q2nocd - > #Hack to get around the cd requirements in Quake2. > #Quake simply looks for a mounted iso9660 filesystem > #with a file called quake.exe in it's root. Yes, quite pathetic. Wouldn't it be easier just to make the filesystem image once and leave it standing by for mounting instead of having a shell script remake the image every time you run Quake 2? Kind of like what I did 3 days ago.. --> http://www.min.net/~douglas/quake2cd.html Plus, since the echo redirection happily follows symbolic links, you've just given any non-root user on the system the means to overwrite any file on your machine. lamer@xyzzy$ ls -l /etc/passwd -rw-r--r-- 1 root root 48173 Jan 6 00:39 /etc/passwd lamer@xyzzy$ cd /tmp lamer@xyzzy$ mkdir q2nocd lamer@xyzzy$ cd q2nocd lamer@xyzzy$ ln -s /etc/passwd quake2.exe [Meanwhile, in root-land...] bash# ./q2nocd.sh [Game bombs out, no CD mounted] lamer@xyzzy$ ls -l /etc/passwd -rw-r--r-- 1 root root 1 Jan 9 13:54 /etc/passwd If someone made the symbolic link to /dev/hda, you'd end up overwriting the first byte of your bootstrap. Maybe 'touch $TMP/q2nocd/quake2.exe' would work better. Either that or change $TMP's path to something more sensible. -- ###:::###:::###:::###:::# Douglas Winslow - douglas@min.net ##:::###:::###:::###:::## http://www.min.net/~douglas/ #:::###:::###:::###:::### Linux: First to patch Pentium 0F C7!
Technical Details
Message-ID:
<34B6744A.FC87437C@douglas.min.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<691fma$ltl$1@ha2.rdc1.nj.home.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 104a42,2a4d18005fb5696a X-Google-Attributes: gid104a42,public X-Google-Thread: 1103af,2a4d18005fb5696a X-Google-Attributes: gid1103af,public X-Google-Thread: 104191,2a4d18005fb5696a X-Google-Attributes: gid104191,public From: Douglas Winslow <djw@douglas.min.net> Subject: Re: Hack to play Quake 2 with no CD Date: 1998/01/09 Message-ID: <34B6744A.FC87437C@douglas.min.net> X-Deja-AN: 314392138 Content-Transfer-Encoding: 7bit References: <691fma$ltl$1@ha2.rdc1.nj.home.com> Content-Type: text/plain; charset=us-ascii Organization: Metronet Internet Services Mime-Version: 1.0 Newsgroups: comp.os.linux.misc,3dfx.glide.linux,alt.binaries.games.quake