Title: Message
    Are you running with warnings and/or strict to insure that all is happening as you expect it to?
 
Wags ;)
-----Original Message-----
From: Matthew Wagenknecht [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 12:37
To: 'Weir, Jason - Contractor'; [EMAIL PROTECTED]; Perl-Win32-Admin (E-mail)
Subject: RE: Win32::LanMan question

still exits the loop...  It doesn't die after the command is called.. it actually finishes the loop and then the script like there are not more hosts in the array, but I have verified there are mor to be scanned.  It's weird..
 
 

...::: Matt :::...

Not everything that is counted
counts, and not everything that
counts can be counted. - A. Einstein

-----Original Message-----
From: Weir, Jason - Contractor [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 1:27 PM
To: 'Matthew Wagenknecht'; [EMAIL PROTECTED]; Perl-Win32-Admin (E-mail)
Subject: RE: Win32::LanMan question


How I get around that is to put the function inside a subroutine like this
 
sub NetUseAdd{
     Win32::Lanman::NetUseAdd(\%Hash) || return;
}
 
Should the function fail it returns out of the subroutine and continues..
 
Jason Weir
ASOCNet Exchange\Automation Administrator
 
 -----Original Message-----
From: Matthew Wagenknecht [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 3:15 PM
To: [EMAIL PROTECTED]; Perl-Win32-Admin (E-mail)
Subject: Win32::LanMan question

I'm using Win32::LanMan to enum shares on a range of IPs: Sometimes authenticated to the domain, sometimes through null session.

Here's my issue:
        Sometimes the machine will pass back LanMan error messages. 1240, etc. I know what these errors are, but I'd like to just skip them and continue to the next IP. When I get the error, my foreach() loop exits and it ends the script..  Help me see the light!! :c)

Please refrain from criticing my coding practices... I'm a security guy, not a coder..(yet)...   It's not pretty but it works..  :c)

Reply via email to