Force 8 chars long passwords for VNC

tags/0.0.1
Daniel Berteaud 13 years ago
parent b0c1b75553
commit 62122148fd
  1. 2
      ipasserelle-gp.spec
  2. 5
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/tightvnc/tightvnc_x64.reg/10All
  3. 5
      root/etc/e-smith/templates/home/e-smith/files/shares/wpkg/files/settings/tightvnc/tightvnc_x86.reg/10All

@ -1,5 +1,5 @@
%define version 0.0.1 %define version 0.0.1
%define release 1.beta16 %define release 1.beta17
%define name ipasserelle-gp %define name ipasserelle-gp

@ -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";

@ -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";

Loading…
Cancel
Save