How can you remotely get the IP of a user on just that users username on a windows network, without that user knowing? This is easy if you use net send then look at you connection table (netstat), but then the user knows. Their is no admin access to domain controlers either, you must be a normal user.
Windows Networking
Last Comment
juliancrawford
8/22/2022 - Mon
cyanic
ASKER
I just figured it out
net send <username> ""
this establishes the connection, but does not popup anything on their screen. If anyone else can find another solution, I will give them the whopping 75 points.
daletian
try the finger command as well
Les Moore
That is next to impossible. A user can be logged in almost anywhere on the network. If you know their computer name it is much easier. What exactly is it that you are tying to accomplish? Wanting to be a little sneaky?
Sneaky, yes. I do IT security on a 13,000+ computer network. Our naming convention should have the user's name as part of the NetBIOS name, but this is not always the case. We also don’t want to ask, or wait for the domain admins to get it for us. We also don't want the user to know we just need their IP so we can thumb through their URL logs when someone tells us the user has been surfing porn.
The net send / netstat hack works great for getting the computer name and then IP.
Les Moore
If you have that large of a network you might want to look at something like Websense to monitor web traffic.
Or network scanners- GFI Languard: http://www.gfi.com/lannetscan/
That is a little reverse of what your asking, it obtains the ip 1st, then the username. Another good util, among his many: http://ntsecurity.nu/toolbox/winfo/
Firewall log's, and some grep'ing can narrow porn finding down.
(actually I use a small Auto-It script which also records the use by date, PC, OS, and User).
but of course you can't do that if not an admin but as a one off change it gets you the info you need maybe you could get it implemented?
Auto-It script below.
regards
Steve
;This script logs the usage of PC's as they login. Data is recorded by date, user, PC, and OS. Works for NT/2K for username, if win9x aswell need to get from registry and/or aswell and/or use PUTINENV.EXE
Supply it a username and it will give out an IP address querying the WINS database (assuming you are using WINS on the network still, this is where NET SEND gets it from).
>>Q: What happens if the user is logged into more than one machine?
That will be the same with a WINS query aswell of course since you can only register the name once ...
I don't run WINS on my home network so it is a little difficult to test here (which is why I didn't before I posted). Did you try the finduser batch file or just the command line tool directly?
Steve
cyanic
ASKER
Yes I used the command line tool, I looked at the batch file to see what options to use. All the other commands within the tool yielded the same result "FAILURE - 5" I guess I should research what a failure 5 means, I guessing its access denied.
net send <username> ""
this establishes the connection, but does not popup anything on their screen. If anyone else can find another solution, I will give them the whopping 75 points.