How can I tell if a user is logged into a domain?

Thu Ha

New member
How can I tell if a user is logged into a domain?
Answer
To check:
  • Open the Start menu, then type cmd in the Search box and press Enter.
  • In the command line window that appears, type set user and press Enter.
  • Look at the USERDOMAIN: entry. If the user domain contains your computer’s name, you’re logged in to the computer.
Photo in the article by “Wikimedia Commons”
Code:
https://commons.wikimedia.org/wiki/File:IFME_Linux_version_display_progression_log_via_terminal.png
How to check the listening ports and applications on Linux:
  • Open a terminal application i.e. shell prompt.
  • Run any one of the following command: sudo lsof -i -P -n | grep LISTEN. sudo netstat -tulpn | grep LISTEN. sudo nmap -sTU -O IP-address-Here.
Determining if a port is in use
  • Open a command prompt. For more information, see Opening a command or shell prompt (1003892).
  • Run this command: netstat -bano. You see output similar to:
  • If you see Can not obtain ownership information instead of the [process.exe] entry, you can find more information in the Windows Task Manager using the process ID:
3 Answers. 4) Otherwise, usually either the port is open or something is blocking ICMP. “nc -uvz ip port” isn’t somehow accurate, you probably should use “nmap -sU -p port ip” , if the result shows “open” then the udp port probably is open, if it shows “open. filtered” then probably it is closed or filtered.
If you want to use the graphical user interface you need to:
  • Windows 7, 8.
  • Open Windows Start menu > Type “Control Panel” > Press Enter > “Programs” > “Programs and Features” > Turn Windows features on or off > Select “Telnet Client” > Press “OK”
  • Windows Server 2008:
Efficiently test if a port is open on Linux (without nmap or netcat)
  • Is netcat available?
  • netstat -lnt (with -t and without -a ) will limit output to listening TCP connections only.
  • lsof -i is a personal favorite. –
  • netstat -an | grep PORTNUMBER | grep -i listen If the output is empty, the port is not in use. –
Here are some easy ways to check if it is blocked on their side:
  • On Windows OS. go to the Start Menu on the bottom left corner; click Run and type cmd;
  • On MAC OS. go to Applications directory; choose Utilities and this will open you a command line;
  • On Linux. open your terminal emulator; type telnet.mydomain.com 21.
 

Tìm kiếm

Back
Top