UBCD4Win Forums: UltraVNC Server - UBCD4Win Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

UltraVNC Server UltraVNC Server Modifications

#1 User is offline   fwarren Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 08-January 07

Posted 21 May 2008 - 06:33 PM

Hi,

One problem I had, was that you could not connect to the Ultravnc server because it had no default password.

So I modified the reg file to have a password of "ubcd4win" modified .cmd file to display this password

I am not sure which forum to post in. Or if (or where) I should submit a totally redone ultravnc.zip file.

vncsettings.reg
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\ORL\WinVNC3\Default]
"TurboMode"=dword:00000000
"FileTransferEnabled"=dword:00000001
"BlankMonitorEnabled"=dword:00000001
"DefaultScale"=dword:00000001
"UseDSMPlugin"=dword:00000000
"DSMPlugin"=hex:00,4f,41,80,00,c0,fa,7f,00,00,00,00,00,00,00,00,08,60,68,81,a0,\
  2d,6d,81,01,2e,6d,81,00,00,00,00,b0,fe,1f,c0,00,00,00,00,20,00,71,81,ff,ff,\
  b7,00,00,00,04,00,7f,0b,00,00,6c,2e,6d,81,a0,2d,6d,81,20,00,71,81,00,00,00,\
  00,00,00,b8,00,b2,71,00,00,30,fb,b8,00,ff,ff,ff,ff,44,ff,b8,00,2d,39,ea,77,\
  88,a6,e7,77,ff,ff,ff,ff,a8,36,ef,77,14,b2,de,77,58,1d,de,77,1a,54,de,77,18,\
  ff,b8,00,54,ff,b8,00,68,51,39,00,01,00,00,00,00,00,00,00,00,00,00,00,00,50,\
  39,00,88,29,39,00,00,00,00,00,08,60,68,81,00,00,00,00,00,00,00,00,20,ff,b8,\
  00,00,d0,fd,7f,a4,ff,b8,00,55,56,df,77,e8,b1,de,77,ff,ff,ff,ff,e3,b1,de,77,\
  04,39,43,00,90,a9,14,00,00,2b,48,00,68,50,39,00,a4,ff,b8,00,b5,84,45,00,01,\
  00,00,00,22,31,43,00,2c,76,43,00,00,00,00,00,88,29,39,00,03,9e,44,00,68,50,\
  39,00,ce,2b,de,77,44,ff,a8,00
"SocketConnect"=dword:00000001
"HTTPConnect"=dword:00000000
"XDMCPConnect"=dword:00000000
"AutoPortSelect"=dword:00000001
"InputsEnabled"=dword:00000001
"LocalInputsDisabled"=dword:00000000
"IdleTimeout"=dword:00000000
"QuerySetting"=dword:00000002
"QueryTimeout"=dword:0000000a
"LockSetting"=dword:00000000
"RemoveWallpaper"=dword:00000000
"Password"=hex:a4,4a,17,8c,ed,86,c3,26
"PollUnderCursor"=dword:00000000
"PollForeground"=dword:00000001
"PollFullScreen"=dword:00000001
"OnlyPollConsole"=dword:00000000
"OnlyPollOnEvent"=dword:00000001
"EnableDriver"=dword:00000001
"EnableHook"=dword:00000001
"EnableVirtual"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\UltraVnc\mslogon]
"group1"=hex:61,64,6d,69,6e,69,73,74,72,61,74,6f,72,73,00,77,e8,b1,de,77,ff,ff,\
  ff,ff,e3,b1,de,77,04,39,43,00,90,a9,14,00,00,2b,48,00,68,50,39,00,a4,ff,b8,\
  00,b5,84,45,00,01,00,00,00,22,31,43,00,2c,76,43,00,00,00,00,00,88,29,39,00,\
  03,9e,44,00,68,50,39,00,ce,2b,de,77,44,ff,a8,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00
"group2"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00
"group3"=hex:00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,00
"locdom1"=dword:00000001
"locdom2"=dword:00000000
"locdom3"=dword:00000000


ultranvc.cmd
@echo off
setlocal
echo VNC: Check if network client is installed
bartpe.exe -c c -q ms_msclient
if not "%errorlevel%" == "0" (
        echo.
        echo VNC: MS Client is not installed!
        echo VNC: Please load client network support before this script!
        goto _err)
echo VNC: Check if server service is installed
echo VNC: Installing VNC Server Service
%~dp0winvnc.exe -installs
echo VNC: Importing registry settings
regedit /s %~dp0vncsettings.reg
echo VNC: Starting the VNC Server Service,
net start "vnc server"
echo VNC: default VNC password is: ubcd4win
goto _end
:_err
echo.
echo VNC: There was an error, script aborted!!!
rem set errorlevel to 1 by (mis)using color
color 00
:_end
endlocal


Since I am shooting the moon here. Here is the code to add to the plugins/network/penetcfg/penetcfg.ini to get it to autostart the vnc server.
[PostNetAutoRun]
; 2 = run hidden and don't wait (00 00 00 10)
2 = %SystemDrive%\Programs\ultravnc\ultravnc.cmd


And since it may be helpful for someone. It is nice to have a rescue CD that puts a machine on the network at a pre determined address with the VNC server running. I.E. you pop the CD in, you select boot UBCD4Win and walk away and remote in from another system. Since most home networks are 192.168.0.xxx networks, here is the penetcfg.ini file that will put the machine on the network at 192.168.0.200 with DNS provided by the OpenDNS project.
[General]
AutoStartNet=Yes
PromptForProfile=No
ShowGUI=No

[NetProfiles]
Dynamic IP Address (DHCP)= penetcfg-dhcp.ini
Static IP Address (Manual)= penetcfg-static.ini
Custom from A:\= a:\penetcfg.ini
Custom from C:\= c:\penetcfg.ini

[NetAdapter1]
EnableDHCP=No
UseStaticGateway=Yes
UseStaticDNS=Yes
UseStaticWINS=Yes
IPAddress=192.168.0.200
SubnetMask=255.255.255.0
DefaultGateway=192.168.0.1
DNSServer=208.67.222.222

[NetID]
Workgroup=MSHOME
ComputerName=UBCD4WIN

[PostNetAutoRun]
; 2 = run hidden and don't wait (00 00 00 10)
2 = %SystemDrive%\Programs\ultravnc\ultravnc.cmd

0

#2 User is offline   madaros Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 06-May 08

Posted 03 September 2008 - 05:23 AM

thx, Ill try it.. I had the same problem, uVNC started but setting screen was show of.. :( I hope it wil set the password and star in hidden mode..
0

#3 User is offline   therealjmc Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 18
  • Joined: 27-February 08

Posted 21 September 2009 - 12:57 PM

Did somebody manage to get Ultravnc service startup right? I want the machine to startup, use dhcp automaticly and then start uvnc.

DHCP and starting something afterwards works fine. I added the .reg file and i tried adding the reg keys at build time - both "works". The Service is there and started, but you can't connect to it.

I call winvnc.exe after penetcfg and wrote a small autoit script to enter the password as soon as the dialog appears - but thats not as fine as using the real service. I don't understand why it won't work... Service there and runing, restart doesn't work. And calling winvnc.exe don't uses the regkeys so it has a "blank" password if you dont enter one...

Greets

Peter
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users