In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly shows you the "Windows and linux intranet information collection commands commonly used", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "what are the common intranet information collection commands in Windows and linux" this article.
Windows system related # View system information systeminfo / all# view system architecture echo% PROCESSOR_ARCHITECTURE%# machine name hostname# view operating system version versysteminfo | findstr / B / C: "OS Name" / C: "OS Version" systeminfo | findstr / B / C: "OS name" / C: "OS version" # Chinese operating system # check the list of patches wmic qfe get Caption,Description,HotFixID InstalledOn# View Host boot time net statistics workstation# View scheduled tasks schtasks / query / fo LIST / v # query shows all scheduled tasks # Open remote Desktop REG ADD HKLM\ SYSTEM\ CurrentControlSet\ Control\ Terminal "Server / v fDenyTSConnections / t REG_DWORD / d 00000000 / f close remote Desktop REG ADD HKLM\ SYSTEM\ CurrentControlSet\ Control\ Terminal" Server / v fDenyTSConnections / t REG_DWORD / d 11111111 / f user related # check current user Permission whoami / user & & whoami / privwhoami / all # View current domain and get domain SID# view online user information quserquery user | | qwinstanet user # View native user net user XXX # View user details net user username password / add # add users Change password net user username / deletenet localgroup # View administrators group member net localgroup administrators # View local administrator net localgroup administrators / domain # Domain administrator net localgroup workgroup\ user001 / add # Domain users add to local programs related # View antivirus software wmic / Node:localhost / Namespace:\\ root\ SecurityCenter2 Path AntivirusProduct Get displayName / Format:List# View installed programs and version wmic product get name,version# query process tasklistwmic process list briefwmic process get processid Executablepath,name # displays the path and name of the process, pidwmic service list brief # View Native Services # remote Desktop connection History cmdkey / l # View the list of self-starting programs wmic startuo get command Caption#### wall related operations netsh firewall show state # Firewall status netsh firewall show config # View firewall configuration netsh firewall set opmode disable # turn off firewall (windows server 2003 and before) netsh advfirewall set allprofiles state off # turn off firewall (after windows server 2003) # modify firewall configuration netsh firewall add allowedprogram c:\ \ xxx\\ xx.exe "allow xx" enable # allows all connections to the specified program (windows server 2003 and before) # windows server 2003: netsh advfirewall firewall add rule name= "pass xx" dir=in action=allow program= "C:\ xxx\ xx.exe" # allow a program to connect to netsh advfirewall firewall add rule name= "pass xx" dir=out action=allow program= "C:\ xxx\ xx.exe" # allow a program to connect to netsh advfirewall firewall Add rule name= "Remote Desktop" protocol=TCP dir=in localport=3389 action=allow # opens port 3389 Allow changing port to release network connection related # tcp/udp network connection status, port information netstat-anoipconfig / all # query native IP segment, domain, etc. Route print # print routing information arp-a # View arp cache You can find the intranet host # View LAN information net view # View the list of machines in the same domain net view\\ ip # View an ip share net view\\ GHQ # View the list of shared resources of the GHQ computer net view / domain # see how many domains net view / domin:XYZ # View the list of machines in the XYZ domain net accounts / domain # query the domain user password Wait for information # View the local shared net sharewmic share get name Path, status domain correlation # determine whether there is a domain net config workstation # View the current computer name Full name, user name, system version, workstation domain, login domain, etc. Net view / domain # View domain # View primary domain server net time / domain # Primary domain server will also act as time server nltest / DCLIST:god # view domain controller hostname God for domain # View information about domain users net user / domain # display users in the domain net user domain users / domain # get domain user details net user / domain XXX 123456 # modify user password Requires domain administrator permission net group / domain # View domain user group list net group "domain admins" / domain # get domain administrator list net group "domain controllers" / domain # View domain controller group net group "domain computers" / domain # View domain machine # list domain trust relationship nltest / domain_trusts # list trust relationship between domain and domain # get domain user details Wmic useraccount get / all # can get the user name of the domain user, Describe information, SID, domain name, status, etc. Linux system Information cat / etc/issue # View system name cat / etc/Lsb-release # View system name Version number cat / etc/*release # View linux release information uname-an # View kernel version cat / proc/version # View kernel information cat / proc/cpuinfo # View cpu information # View file system df-a # View system log sudo cat / var/log/syslog# View Command record cat / root/.bash_historycat ~ / .kernel # check Look at the hostname env # print system environment information cat / etc/shells # display available shell user related whoami # View current shell permissions id # View current user permissions and administrative group # View login information wwholast # logged in user information lastlog # display the last login information of all users in the system # View account Number information cat / etc/sudoerscat / etc/groupcat / etc/passwd# lists current user executable instructions sudo-l network related # query native IP information ifconfigip a # View port information netstat-anpt# View Nic configuration cat / etc/network/interfaces program related # View process information ps-ef # Standard format display ps aux # BSD format display # Resource occupancy top-ccat / etc/inetd .conf # list of services managed by inetd cat / etc/xinetd.conf # list of services managed by xinetd # View the installed program rpm-qa-- last # Redhatyum list | grep installed # CentOSls-l / etc/yum.repos.d/dpkg-l # Debiancat / etc/apt/sources.list # Debian APTpkg_info # xBSDpkginfo # Solarispacman-Q # Arch Linuxemerge # Gentoo# View scheduled task crontab-lls-al / etc/cron*cat / etc/cron.allowcat / etc/cron.denycat / etc/crontab# View boot item / etc/rc.d/init.d/ configuration information iptables-L # View firewall configuration (note root permission is required) cat / etc/resolv.conf # View dns configuration file cat / etc/network/interfaces # View network card configuration file cat / etc/apache2/apache2.conf # View apache configuration file cat / etc/my.conf # mysql configuration # View suid file find /-perm-utiliss-type f 2 > / dev/null# File find /-ctime + 1-ctime-5 Virtual Environment Detection lsmod for the last five days | grep-I "vboxsf\ | vboxguest" lsmod | grep -I "vmw_baloon\ | vmxnet" lsmod | grep-I "xen-vbd\ | xen-vnif" lsmod | grep-I "virtio_pci\ | virtio_net" lsmod | grep-I "hv_vmbus\ | hv_blkvsc\ | hv_netvsc\ | hv_utils\ | hv_storvsc" are all the contents of the article "what are the common commands for collecting intranet information in Windows and linux" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 237
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.