#! /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


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

use My::Web;
use project::winvnc::ListItem;


My::Web->init_project(
		"ListItem"=>\%My::Project::winvnc::ListItem,
		);

print <<'HERE';
<p>Here is the table for bytes to patch in <tt>WinVNC.exe</tt> from <tt>vnc-3.3.3r7_x86_win32.zip</tt>.
You are not interested in this table if you download the <a href="vnc-3.3.3r7_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>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>'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 3.3.3r7</th><th>MD5 sum</th></tr>
<tr><td><tt>WinVNC.exe</tt>, original</td>        <td><tt>d8d9d04901a4896f278d59a1cdc99aef</tt></td></tr>
<tr><td><tt>WinVNC.exe</tt>, 'SECRET' patched</td><td><tt>8423b8f9598893b517a4f5eebbf0749b</tt></td></tr>
</table>
HERE

My::Web->footer();
