Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
574 B

  1. # client.pl - works with nt.cli
  2. if (!defined($ARGV[0]))
  3. {
  4. print "You must specify an input file.\n";
  5. goto end;
  6. }
  7. open(F, $ARGV[0]);
  8. @lines = <F>;
  9. close(F);
  10. foreach $line (@lines)
  11. {
  12. goto p1;
  13. if ($line =~ m/------- SDP.*-*/)
  14. {
  15. print $line;
  16. }
  17. p1:
  18. if ($line =~ /Client root\: (.*)/) {
  19. $root = $1;
  20. }
  21. if ($line =~ /Server address\: (.*)/) {
  22. $server = $1;
  23. print $root . "=" . $server . "\n";
  24. $root = "";
  25. $server = "";
  26. }
  27. }
  28. end:
  29. print "bye";