Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

perl and nbtscan 2

Status
Not open for further replies.

martinasv

Technical User
Joined
Feb 12, 2006
Messages
24
Location
HR
Hi.

I'm supposed to scan the network, find out NETbios computer names and store them in a database.
I know there are tools like nmap and nbtscan. I tried nmap from command line and it shows everything BUT computer names.
Nbtscan works perfectly from command line, but I don't know how to start it from perl and get data in a variable I can parse and store to a database. :-(

Thanks in advance!
 
Code:
@results=`nbtscan parameters`;
foreach (@results) {
   if (/match/) {
      #do something
   }
}

Lookup perl backticks

HTH
--Paul

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top