|
|
@ -3,11 +3,12 @@ Windows Registry Editor Version 5.00 |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
use Crypt::DES; |
|
|
|
use Crypt::DES; |
|
|
|
my $clear = $wpkg{'VNCPassword'} || 'secret'; |
|
|
|
my $clear = $wpkg{'VNCPassword'} || 'secretpassword'; |
|
|
|
|
|
|
|
$clear = substr $clear, 0, 8; |
|
|
|
my $key = pack ('H16', "E84AD660C4721AE0"); |
|
|
|
my $key = pack ('H16', "E84AD660C4721AE0"); |
|
|
|
my $des = Crypt::DES->new($key); |
|
|
|
my $des = Crypt::DES->new($key); |
|
|
|
my $crypt = $des->encrypt($clear); |
|
|
|
my $crypt = $des->encrypt($clear); |
|
|
|
my $pass = join(',', map {unpack('H2', $_)} split //, $cryptpass); |
|
|
|
my $pass = join(',', map {unpack('H2', $_)} split //, $crypt); |
|
|
|
|
|
|
|
|
|
|
|
my $out =<<"EOF"; |
|
|
|
my $out =<<"EOF"; |
|
|
|
|
|
|
|
|
|
|
|