This
is example 3.1 from my second book (http://www.roth.net/books/handbook/).
It is also known as the DumpShares.pl script. It will dump shares on any machine
you are allowed to enumerate. It demonstrates using Win32::Lanman for
this.
dave
-----Original Message-----
From: Timothy Johnson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 2:16 PM
To: 'Eric Logeson'; [EMAIL PROTECTED]
Subject: RE: enumerating sharesCheck out Win32::Lanman. There's a huge amount of documentation with it, but it does just about everything.Win32::Lanman::NetShareEnum(
$client,\@shares);-----Original Message-----
From: Eric Logeson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 2:04 PM
To: [EMAIL PROTECTED]
Subject: enumerating shares
Hello
Is there a way to enumerate all shares on a windows 2000/NT machine much
like the command "net share"?I looked at Win32::AdminMisc but didn't see anything about enumerating
shares.I have perl, v5.6.1
Thanks
Eric
_________________
Eric Logeson
919-680-5679
www.dukece.com--------------------------------------------------------------------------------
This email may contain confidential and privileged
material for the sole use of the intended recipient.
If you are not the intended recipient, please contact
the sender and delete all copies.
Example_3_1.pl
Description: Binary data
