[TOOL] mdmchk - detect modem drivers installed on NT systems

From: support@securiteam.com
Date: 03/11/02


From: support@securiteam.com
To: list@securiteam.com
Date: Mon, 11 Mar 2002 09:41:41 +0100 (CET)

The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion

When was the last time you checked your server's security?
How about a monthly report?
http://www.AutomatedScanning.com - Know that you're safe.
- - - - - - - - -

  mdmchk - detect modem drivers installed on NT systems
------------------------------------------------------------------------

DETAILS

mdmchk is a perl script that connects to Windows NT's registry and
determines whether a modem is installed.
This is useful for detecting modem installations, even if the modem is not
currently active.

Tool Source:
#! c:\perl\bin\perl.exe
# mdmchk.pl
# Script to detect modem drivers installed on NT systems
#
# usage: perl mdmchk.pl [name]
#
# copyright 2000 H.Carvey
# for assistance, email keydet89@yahoo.com
use strict;
use Win32::TieRegistry(Delimiter=>"/");

my $server = shift || Win32::NodeName;

\&mdmchk($server);

sub mdmchk {
  my($server) = @_;
  my($remote);
  my ($mdm);
  my($modem) = 'SYSTEM/CurrentControlSet/Control/Class/'.
               '{4D36E96D-E325-11CE-BFC1-08002BE10318}';
  if ($remote = $Registry->{"//$server/LMachine"}) {
    if ($mdm = $remote->{$modem}) {
      my @vals = $mdm->SubKeyNames;
      if ($#vals != -1) {
        print "Modem detected on $server...\n";
        foreach my $subkey (@vals) {
          my $val = $mdm->{$subkey};
          my $port = $val->GetValue("AttachedTo");
          my $man = $val->GetValue("Manufacturer");
          my $friend = $val->GetValue("FriendlyName");
          print "\tPort:\t\t$port\n";
          print "\tManufact:\t$man\n";
          print "\tName:\t\t$friend\n";
        }
      }
      else {
         print "No modem driver entries.\n";
       }
    }
    else {
      my $err = Win32::FormatMessage Win32::GetLastError;
      print "Could not connect to modem Registry key: $err\n";
    }
  }
  else {
    my $err = Win32::FormatMessage Win32::GetLastError;
    print "Could not connect to $server Registry: $err\n";
  }
}

  

ADDITIONAL INFORMATION

The information has been provided by <mailto:JSawyer@mail.ifas.ufl.edu>
Sawyer, John H.
The tool was written by <mailto:keydet89@yahoo.com> H.Carvey.

========================================

This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com

====================
====================

DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.



Relevant Pages

  • More on the LT WinModem installation attempt from a few days ago:
    ... >> which are usually needed to support the modem communications protocol ... >> Some modem installations replace these Defaults ... 00:07.4 USB Controller: Advanced Micro Devices AMD-766 ... alias char-major-62 lt_serial ...
    (comp.os.linux.hardware)
  • Re: Supported Hardware Fax for SBS 2003?
    ... > It's one of the few things that I've found to complain about with SBS ... > you do a lot of installations and are looking for something that just ... > experience with another product (particularly a USB modem option) I'd love ... >> devices that support fax seem to have less connection compatibility ...
    (microsoft.public.windows.server.sbs)
  • Re: Supported Hardware Fax for SBS 2003?
    ... It's one of the few things that I've found to complain about with SBS 2003, ... after 30+ installations of the Fax service and a ton of headaches ... Brooktrout boards(fabulous boards, with great support. ... Hopefully Microsoft will improve the SBS modem compatibility resources on ...
    (microsoft.public.windows.server.sbs)
  • Re: Supported Hardware Fax for SBS 2003?
    ... >> you do a lot of installations and are looking for something that just ... >> Hopefully Microsoft will improve the SBS modem compatibility resources on ... >> experience with another product (particularly a USB modem option) I'd ... Anything not on the HCL will probably work fine as ...
    (microsoft.public.windows.server.sbs)
  • Re: Which modem?
    ... USR Courier - Very heavy fax traffic (>200 inbound/day) X 6 installations, ... > I'm having trouble finding a compatible fax modem that will work with SBS ...
    (microsoft.public.windows.server.sbs)