/[rdesktop]/jpeg/rdpproxy/trunk/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

Annotation of /jpeg/rdpproxy/trunk/extractkey.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 429 - (hide annotations)
Mon Jun 30 08:59:07 2003 UTC (20 years, 10 months ago) by forsberg
Original Path: sourceforge.net/branches/CHAPMAN_AND_FORSBERG/rdpproxy/extractkey.pl
File MIME type: text/plain
File size: 306 byte(s)
Initial import to SF.net

1 forsberg 429 #!/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