Generating VNC passwords
jwebster "at" pvpsc.com
Tue Jul 13 21:24:00 2004
We would like to help automate access to our computers using VNC. Right
now we have many computers and I would like to use different passwords on
each. My idea was to build a script that makes the .VNC files and saves the
password (encrypted and in hex) in the files so that we don't need to lookup
the password, key it in, etc.
From what I can tell the passwords in the VNC file, as well as the
registry, are encrypted using a static key (chars 23 82 107 6 35 78 88 7),
then each character in that string is saved in a hex value, and put into
either the registry or a VNC file.
I've tried using the mcrypt library to:
a) encrypt my password 'test' using 3DES with the static key, saving
it to the VNC file and connecting using that VNC file. It didn't accept the
b) Then I took the hex values from my registry, converted those to
decimal, and then those into their ASCII values. I took that string and
decrypted that using the static key -- and still couldn't get it to work.
Am I on the wrong path? Any help would be appreciated.