/[rdesktop]/sourceforge.net/trunk/rdpproxy/extractkey.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /sourceforge.net/trunk/rdpproxy/extractkey.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 430 - (show annotations)
Mon Jun 30 08:59:07 2003 UTC (20 years, 10 months ago) by forsberg
File MIME type: text/plain
File size: 306 byte(s)
This commit was generated by cvs2svn to compensate for changes in r428,
which included commits to RCS files with non-trunk default branches.

1 #!/usr/bin/perl
2 #
3 # Extract the Terminal Services encryption key from lsadump2 output
4 #
5
6 while (<>) {
7 last if (/^L\$HYDRAENCKEY_/);
8 }
9
10 while (<>) {
11 last if (!/^ /);
12 @bytes = split(/ /);
13 for ($i = 1; $i <= 16; $i++) {
14 $byte = $bytes[$i];
15 last if (length($byte) != 2);
16 print chr(hex($byte));
17 }
18 }
19

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26