#! /usr/bin/perl
# 
# $Id$
# Main page of 'My::Project::winvnc'
# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; exactly version 2 of June 1991 is required
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


package project::winvnc::Index;
require 5.6.0;	# at least 'use warnings;' but we need some 5.6.0+ modules anyway
our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
our $CVS_ID=q$Id$;
use strict;
use warnings;

BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
use My::Web;
Wuse 'My::Project';
Wuse 'project::winvnc::ListItem';


My::Project->init_project(
		"__PACKAGE__"=>__PACKAGE__,
		"ListItem"=>\@project::winvnc::ListItem::ListItem,
		);

print <<'HERE';
<p>Here is the table for bytes to patch in <tt>WinVNC.exe</tt> from <tt>vnc-3.3.3r9_x86_win32.zip</tt>.
You are not interested in this table if you download the <a href="vnc-3.3.3r9_x86_win32-exe-SECRET.zip">already patched
.EXE file</a> referenced in the heading.</p>
<table border="1" align="center">
<tr><th></th><th>File offset</th><th>Hex bytes</th></tr>
<tr><td>3.3.3r9 original</td>        <td><tt>0000CD10</tt></td><td align="right">   53 55 56     8B  F1 57 8B 46   68 C7 46 70  58 00 00 00</td></tr>
<tr><td>3.3.3r9 'SECRET' patched</td><td><tt>0000CD10</tt></td><td align="right"><b>C2 08 00</b> 8B  F1 57 8B 46   68 C7 46 70  58 00 00 00</td></tr>
<tr><td>3.3.3r7 original</td>        <td><tt>0000C9F0</tt></td><td align="right">   53 55 56     8B  F1 57 8B 46   60 C7 46 68  58 00 00 00</td></tr>
<tr><td>3.3.3r7 'SECRET' patched</td><td><tt>0000C9F0</tt></td><td align="right"><b>C2 08 00</b> 8B  F1 57 8B 46   60 C7 46 68  58 00 00 00</td></tr>
</table>
<p>Here you can check whether your patch was successful:</p>
<table border="1" align="center">
<tr><th>File from package</th><th>MD5 sum</th></tr>
<tr><td><tt>WinVNC.exe-3.3.3r9</tt>, original</td>        <td><tt>f4910e28a285a13e642cdfe302e4ad91</tt></td></tr>
<tr><td><tt>WinVNC.exe-3.3.3r9</tt>, 'SECRET' patched</td><td><tt>6669d652357a56737b36e2cde0acd473</tt></td></tr>
<tr><td><tt>WinVNC.exe-3.3.3r7</tt>, original</td>        <td><tt>d8d9d04901a4896f278d59a1cdc99aef</tt></td></tr>
<tr><td><tt>WinVNC.exe-3.3.3r7</tt>, 'SECRET' patched</td><td><tt>8423b8f9598893b517a4f5eebbf0749b</tt></td></tr>
</table>
HERE

My::Web->footer();
