Solved

nbtstat tool (netbios?)

Posted on 2002-06-25
7
517 Views
Last Modified: 2010-04-04
If in win NT or win 2k you type "nbtstat -a hostname" in cmdline, it tells you who is currently logged on to that particular machine.

Is there a way to do this programatically using some API calls? Bearing in mind that it has to work on User level privalages on Win 2K.


thanks
0
Comment
Question by:barbourwill
7 Comments
 
LVL 12

Accepted Solution

by:
Lee_Nover earned 500 total points
ID: 7108269
check out: http://www.xploiter.com/tambu/
there are a few utilities and source code about your problem

you could also call "nbtstat -a hostname > tempfile" with ShellExecute
then load the contents of the file in a memo or sumtin like that
then delete the tempfile :)

also check out JEDI JCL library
it has GetMacAddresses and some other usefull functions
0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 7108452
maybe some additional info from MSDN:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/ntlmapi2_6msv.asp
check out the other Net* functions
0
 
LVL 7

Expert Comment

by:Cynna
ID: 7116472
barbourwill,

You could also find this usefull (free & source):

http://www.sysinternals.com/ntw2k/freeware/psloggedon.shtml
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 21

Expert Comment

by:ziolko
ID: 8731658
begin with: NetGroupEnum, NetLocalGroupEnum, NetLocalGroupGetMembers, NetGroupGetUsers, NetWkstaUserEnum, NetQueryDisplayInformation
ziolko.
0
 
LVL 21

Expert Comment

by:ziolko
ID: 8731671
ooops sorry wrong question.
ziolko.
0
 

Expert Comment

by:CleanupPing
ID: 9343163
barbourwill:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 5

Expert Comment

by:Lukasz Lach
ID: 9453633
barbourwill,
No comment has been added lately (17 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to Lee_Nover http:#7108269

Please leave any comments here within 7 days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

anAKiN
EE Cleanup Volunteer
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now