Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Manage the VNC / screen sharing password remotely' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Manage the VNC / screen sharing password remotely
Authored by: a¿ex on Nov 16, '07 10:41:55AM

the code to create a new password doesn't work, as it seems that something got lost on the way. perl doesn't have an input.
try:

echo "hello" | perl -we 'BEGIN { @k = unpack "C*", pack "H*", "1734516E8BA8C5E2FF1C39567390ADCA"}; $_ = <>; chomp; s/^(.{8}).*/$1/; @p = unpack "C*", $_; foreach (@k) { printf "%02X", $_ ^ (shift @p || 0) }; print "\n"' | sudo tee /Library/Preferences/com.apple.VNCSettings.txt



[ Reply to This | # ]