-#! /usr/bin/perl
-#
# $Id$
# Main page of 'My::Project::winvnc'
-# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# Copyright (C) 2003-2005 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
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';
+Wuse 'project::Lib';
-My::Project->init_project(
- "__PACKAGE__"=>__PACKAGE__,
- "ListItem"=>\@project::winvnc::ListItem::ListItem,
+our @ListItem=(
+ "name"=>"WinVNC hide",
+ "platform"=>"w32",
+ "priority"=>560,
+ "icon"=>"nowinvnc",
+ "download-already patched version 4.0"=>"vnc-4.0-x86_win32-exe-SECRET.zip",
+ "download-original version 4.0"=>"http://www.realvnc.com/dist/vnc-4.0-x86_win32.exe",
+ "download-already patched version 3.3.3r9"=>"vnc-3.3.3r9_x86_win32-exe-SECRET.zip",
+ "download-original version 3.3.3r9"=>"http://www.uk.research.att.com/archive/vnc/dist/vnc-3.3.3r9_x86_win32.zip",
+ "download-already patched version 3.3.3r7"=>"vnc-3.3.3r7_x86_win32-exe-SECRET.zip",
+ "download-original version 3.3.3r7"=>"http://www.uk.research.att.com/archive/vnc/dist/vnc-3.3.3r7_x86_win32.zip",
+ "link-VNC Homepage"=>"http://www.realvnc.com/",
+ "summary"=>"Hide running WinVNC server",
+ "license"=>"PD",
+ "maintenance"=>"ready",
+ "language"=>"i386 asm patch",
+ "description"=>sub { return <<"HERE"; },
+<p>If you install <i>WinVNC</i> in
+@{[ a_href 'http://www.microsoft.com/','MS' ]} @{[ a_href 'http://www.microsoft.com/windows/','Windows' ]}
+environment, you will notice that it creates its own small icon in <i>System Tray</i>.
+Sometimes you want to get rid of this visible icon and you cannot remove it by any configuration
+settings.</p>
+HERE
);
+sub handler
+{
+project::Lib->init();
+
+
print <<'HERE';
<p>You need to download the original distribution archive, install it and later
just replace its file <tt>C:\Program Files\ORL\VNC\WinVNC.exe</tt>.
<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="http://www.realvnc.com/dist/vnc-4.0-x86_win32.exe">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>
+<table border="0" width="100%"><tr><td align="center">
+ <table border="1">
+ <tr><th></th><th>File offset</th><th>Hex bytes</th></tr>
<tr><td>4.0 original</td> <td><tt>00003390</tt></td><td align="right">00 6A 66 6A 69 6A 65 56 8D 8D F8 FE FF FF E8 2D </td></tr>
<tr><td>4.0 'SECRET' patched</td><td><tt>00003390</tt></td><td align="right">00 6A 66 6A 69 6A 65 56 8D 8D F8 FE FF FF <b>EB 03</b> </td></tr>
<tr><td>4.0 original</td> <td><tt>000035E0</tt></td><td align="right">F8 FE FF FF E8 97 F2 FF FF 53 E8 69 4D 02 00 8B </td></tr>
<tr><td colspan="3" style="border: none;"><hr /></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>
+ </table>
+</td></tr></table>
<p>Here you can check whether your patch was successful:</p>
-<table border="1" align="center">
+<table border="0" width="100%"><tr><td align="center">
+ <table border="1">
<tr><th>File from package</th><th>MD5 sum</th></tr>
<tr><td><tt>WinVNC.exe-4.0 </tt>, original</td> <td><tt>7043ddf51d7135c1d1b83b4213dfed61</tt></td></tr>
<tr><td><tt>WinVNC.exe-4.0 </tt>, 'SECRET' patched</td><td><tt>916c82e99e1dc17bebdc31aebc895b52</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>
+ </table>
+</td></tr></table>
HERE
+
My::Web->footer();
+}
+1;