Docsity

Windows Command Line and Powershell Commands: A Comprehensive Guide, Exams of Advanced Education

Toggle sidebar
bg1
CCTC TEST PREP 2024 PERFECTLY
SOLVED!!
net localgroup Answer - Windows Command Line command allows you to add,
display and modify local groups.
net user Answer - Windows Command Line command allows administrators to
manage user accounts.
wmic useraccount list brief Answer - Windows Management Instrumentation
command-line command that lists user accounts on the local machine.
tasklist /v Answer - Windows Command Line command displays a list of currently
running processes on either a local or remote machine. (Displays verbose task
information.)
wmic process list brief Answer - Windows Management Instrumentation command-
line command that lists processes available for management.
sc queryex Answer - Windows Command Line utility and subsequent command to
query extended statuses for services.
tasklist /svc Answer - Windows Command Line command to display services hosted
in each process.
wmic service list brief Answer - Windows Management Instrumentation command-
line command for service application management.
ipconfig /all Answer - Windows Command Line command to display all network
configuration information.
wmic nicconfig list full Answer - Windows Management Instrumentation command-
line command to view all network adapter management information.
arp -a Answer - Windows Command Line command to display Layer 2 information
about hosts on the Local Network.
netstat -anbo Answer - Windows Command Line command to display current
TCP/IP network connections, ports, executables involved, owning process IDs, and
IP addresses.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Windows Command Line and Powershell Commands: A Comprehensive Guide and more Exams Advanced Education in PDF only on Docsity!

CCTC TEST PREP 2024 PERFECTLY

SOLVED!!

net localgroup Answer - Windows Command Line command allows you to add, display and modify local groups. net user Answer - Windows Command Line command allows administrators to manage user accounts. wmic useraccount list brief Answer - Windows Management Instrumentation command-line command that lists user accounts on the local machine. tasklist /v Answer - Windows Command Line command displays a list of currently running processes on either a local or remote machine. (Displays verbose task information.) wmic process list brief Answer - Windows Management Instrumentation command- line command that lists processes available for management. sc queryex Answer - Windows Command Line utility and subsequent command to query extended statuses for services. tasklist /svc Answer - Windows Command Line command to display services hosted in each process. wmic service list brief Answer - Windows Management Instrumentation command- line command for service application management. ipconfig /all Answer - Windows Command Line command to display all network configuration information. wmic nicconfig list full Answer - Windows Management Instrumentation command- line command to view all network adapter management information. arp -a Answer - Windows Command Line command to display Layer 2 information about hosts on the Local Network. netstat -anbo Answer - Windows Command Line command to display current TCP/IP network connections, ports, executables involved, owning process IDs, and IP addresses.

systeminfo Answer - Windows Command Line tool to display operating system configuration information for a local or remote machine. wmic computersystem list brief Answer - Windows Management Instrumentation command-line command to display all computer system management information. wmic ntdomain Answer - Windows Management Instrumentation command-line command to display NT domain management information. wmic environment list brief Answer - Windows Management Instrumentation command-line command to display system environment settings. set Answer - Windows Command Line command to view all current environment variables. where Answer - Windows Command Line command to find executables within the PATH environment variable. echo Answer - Windows Command Line command to echo input to stdout. dir Answer - Windows Command Line command to view contents of a directory. type Answer - Windows Command Line command to output contents of a file to stdout. findstr Answer - Windows Command Line command to find a specific string within a specific path or file. hostname Answer - Windows Command Line command to print the name of the current host. date /t Answer - Windows Command Line command to output the system date. time /t Answer - Windows Command Line command to output the system time.

Answer - Redirect input and create/overwrite location.

Answer - Redirect input and create/append location. | Answer - Pipes output of one command to input of another command. & or ; Answer - Execute second command after the execution of the previous command. && Answer - Execute command only if the previous command executes successfully.

psloggedon Answer - SysInternals tool that displays the locally logged on users and users logged on via resources for either the local computer, or a remote one. tcpview Answer - A Windows program that will show detailed listings of all TCP and UDP endpoints on the system. script Answer - Allows for completion of repetitive tasks by the command line. dir /ah Answer - Windows Command Line command to show hidden files in a directory. net use Answer - Windows Command Line tool to map a remote drive. get-help -examples Answer - Powershell command to show examples for a cmdlet. get-member Answer - Powershell cmdlet to get properties and methods of an object. get-execution policy Answer - Powershell command to display the current execution policy. Windows Management Instrumentation Answer - Microsoft's implementation of the Common Information Model (CMI) Powershell Answer - Object-oriented tool for Windows built on the .NET framework. get-help Answer - Basic cmdlet help syntax batch file (.bat) Answer - Script file extension for Windows Command Line Interface. (get-process).name Answer - Powershell command to print the name of every running process. UEFI Answer - Hardware configuration tool intended to replace the BIOS. SMSS (Session Manager Subsystem) Answer - Executed during startup, this is the first user-mode process started by the kernel that starts: csrss.exe, winlogon.exe. Creates environment variables and virtual memory paging files. CSRSS (Client/Server Runtime SubSystem) Answer - Provides the user mode side of the Win32 subsystem, responsible for process/thread creation without compromising the kernel. POST Answer - Power On Self Test MBR (Master Boot Record) Answer - A special type of boot sector at the very begging of the partitioned computer mass storage device. Consists of 512 bytes

holding the information on how the logical partitions, containing file systems, are organized on the medium. Contains executable code to function as a loader for the installed operating system. Usually referred to as the boot loader. NTLDR (NT Loader) Answer - Boot loader for all releases of Windows NT, launched by the volume boot record, requires boot.ini, ntldr, and NTDETECT.COM. Starts NTOSKRNL.exe and HAL.dll NTOSKRNL.exe Answer - Also known as the kernel image, provides the kernel and executive layers of the Windows NT kernel space. Contains the cache manager, the executive, the kernel, the security reference monitor, the memory manager, and the scheduler. Winlogon.exe Answer - The component of Windows that is responsible for handling the secure attention sequence (SAS), loading the user profile on logon, and optionally locking the computer when a screensaver is running. Prior to Windows Vista, provides functions for GINA to apply the security of the newly logged-on user to the initial user processes GINA spawns. GINA (Graphical Identification and Authentication) Answer - Provides customizable user identification and authentication procedures. Most common use of GINA is to communicate with an external device such as a smart-card reader. Activates the user shell after Winlogon secure attention sequence (SAS) is executed. LSASS (Local Security Authority Subsystem Service) Answer - Responsible for enforcing the security policy on the system. Verifies users logging on, handles password changes, and creates access tokens. Writes to the Windows Security Log. Userinit.exe Answer - Loads user profile, runs startup programs, starts explorer.exe VBR (Volume Boot Record) Answer - In Windows 7+, loaded by the MBR, is a boot loader to start the bootmgr. bootmgr Answer - Replaces NTLDR, reads Boot Configuration Data and displays the operating system choice screen. Calls winload.exe for a fresh boot or winresume.exe if waking from hibernation. winload.exe Answer - Loads NTOSKRNL.exe, load dependencies, loads device drives, occurs after the bootmgr on a fresh restart/boot. EFI/UEFI (Extensible/Unified Extensbile Firmware Interface) Answer - Software interface between the operating system and platform firmware. Replaces the Basic Input/Output System (BIOS) Firmware. HAL.dll (Hardware Abstraction Layer) Answer - Provides services primarily tot he Windows executive and kernel and kernel mode device drivers. Device drivers for devices in kernel mode directly call routines in the HAL to access I/O ports and registers for their devices.

ready thread Answer - Thread waiting for execution, in the priority pool. deferred ready thread Answer - Thread selected to run but not yet executed. standby thread Answer - Next thread to run, only one processor per system. running thread Answer - A thread currently running on a processor. waiting thread Answer - A thread waiting for an event to take place. transition thread Answer - A thread ready for execution, but paging is needed to bring the thread back into main memory. terminated thread Answer - Finished execution of a thread, thread is heading for deallocation. initialized thread Answer - Thread is being created in this state. User Mode Answer - Runs in private virtual address space, applications are isolated, one crash will not cause another process to crash. Kernel Mode Answer - Runs in a single virtual address space, not isolated from other processes. Protected from the user to allow the OS to run. Process Validity Answer - Comprised of valid Process ID (PID), Name, Process Age, Priority Level, and Handles. virus Answer - Requires user interaction to replicate. worm Answer - Does not require user interaction to replicate. trojan Answer - Malware hidden within another legitimate program. malicious mobile code Answer - Transmitted from remote host to local host, executed without user instruction. blended attack Answer - Multiple infection/transmission methods used together. backdoor Answer - Malicious program that allows illegitimate access to a machine. remote access tool (RAT) Answer - Malicious program that provides remote command and control of a machine. rootkit Answer - Malicious program to hide and remain persistent on a remote machine. keylogger Answer - Records keyboard usage of a machine.

botnet client Answer - Application to allow an attacker remote administration/command and control of a botnet. spyware Answer - Monitors the behavior of a user. adware Answer - Paid for ads to infect users as they visit a website. ransomware Answer - Blocks access to local machine resources, usually encrypts files and demands payment from the victim. bot herder Answer - Person in control of a botnet. botnet Answer - A network of infected machines of a botnet. zombie Answer - Individual machine within a botnet. static analysis Answer - Examining malware without executing it. dynamic analysis Answer - Examining malware while it is running. situational awareness Answer - A method of gaining an understanding of the current operating environment on the target machine. situational awareness targets Answer - Running Processes Active Users Network Configuration Network Communications Logging Scheduled Jobs Aliases registry Answer - Hierarchical database of critical system configuration. Configuration and control mechanism for the Windows Operation system. Contains system-wide and per-user settings. registry hive Answer - A group of keys, subkeys, and values in the registry that has a set of supporting files that contain backups of its data. HKEY_CURRENT_USER (HKCU) Answer - Hive Key that contains the current user's settings. HKEY_USERS (HKU) Answer - Hive Key that contains all accounts on a machine, the root key contains the ntuser.dat hives for ALL users. HKEY_CLASSES_ROOT (HKCR) Answer - Hive Key contains file association and COM objects, backwards compatibility, and file extension information.

Work/Domain Components of an NTFS File Answer - Each file in this type of format contains these: Security Identifiers (SIDs) Discretionary Access Control List (DACL) System Access Control List (SACL) icacls Answer - Windows Command Line command to view and configure access control lists (ACLs) for a file. Get-Acl Answer - Powershell cmdlet to get the access control list (ACL) information for a file. accesschk Answer - SysInternals tool to check an access control list (ACL) for a file. Windows Resource Protection Answer - Previously Windows File Protection (WFP), protects system files and resources. Protected Resources can only be modified by the Windows Module Installer service (trustedinstaller.exe) User Account Control (UAC) Answer - Limits the privileges of user run applications to prevent the modification of system files, resources, or settings. Requesting elevated privileges requires explicit acknowledgment from the user. Information Assurance (IA) Answer - Includes the protection of the integrity, availability, authenticity, non-repudiation, and confidentiality of user data. host-based security product Answer - Security product that runs on the local machine, OS dependent, version dependent, system firewalls, process monitoring, kernel calls, directory monitoring, application whitelisting, etc. network security products Answer - Monitors network traffic, can be inline or passive, Intrusion Detection Systems, Intrusion Prevention Systems, Web/Application Proxy signature based detection Answer - Detection based on a database of previously identified attack signatures. heuristic based detection Answer - Detection based on developing a baseline of the system, then looks for anomalous activity, potential to catch 0-day attacks. Security Reference Monitor Answer - Receives the system audit policy from the LSASS. This monitor generates auditing messages when an object is accessed and sends the messages to LSASS. LSASS logs these transactions in the Event Logger. application event log Answer - Event log that contains events logged by applications.

security event log Answer - Event log that contains events such as valid and invalid logon attempts, as well as events related to resource use such as creating, opening or deleting files or other objects. system event log Answer - Event log that contains events logged by system components such as the failure of a driver or other system component to load during startup. customlog event log Answer - Event log that contains events logged by applications that create a custom log. auditing settings Answer - Settings contained in the System Access Control List of an object. Local Security Policy Answer - GUI utility to view Advanced Audit Policy Configuration settings auditpol Answer - Windows Command Line command to view and modify local machine audit policies. eventvwr Answer - GUI utility to view/analyze event logs. wevtutil Answer - Windows Command Line command to view Windows Event Logs. Get-EventLog Answer - Powershell cmdlet to view Event Logs. Remote Procedure Call (RPC) Answer - Applications load a .dll containing stub procedures for remote functions to allow configuration/viewing of a remote machine. mailslot Answer - One-way Interprocess Communication method. Max single message size of 424 bytes, acts as a file kept in memory. Server Message Block Answer - Primary remote file-access protocol on Windows Clients and Servers, also known as Common Internet File System (CIFS) nbtstat Answer - Windows Command Line command to display NetBIOS over TCP/IP protocol statistics. Relative Distinguished Name (RDN) Answer - Hostname or computer name. route Answer - Windows Command Line command to view the routing table. arp Answer - Windows Command Line command to view MAC addressing info. netstat Answer - Windows Command Line command to view network statistics. socket Answer - One endpoint of a two-way communication link between two programs running on a network.

  1. Identification
  2. Containment
  3. Investigation
  4. Eradication
  5. Recovery Preparation Answer - Packing List, update tools, training, documentation, SOP, Network Diagrams, Incident Response Teams Identification Answer - Determine if we're working with an adverse event or an incident. Event Answer - Any observable occurrence in a system or network. Adverse Event Answer - Event with a negative consequence. Incident Answer - Event that violates an organization's security or privacy policies. Containment Answer - Limit damaged caused to systems and prevent any further damage from occurring. Investigation Answer - Determine the priority, scope, and root cause of an incident. Eradication Answer - Remove the infection. Recovery Answer - Determine when to bring the system back into production and how long we monitor the system for any signs of abnormal activity. Volatility Answer - Volatility is a measure of how perishable electronically stored data is when electrical power is turned off or fails. Registers, Cache Answer - 1st in the order of volatility. Routing Table, ARP Cache, Process Table, Kernel Statistics, Memory Answer - 2nd in the order of volatility. Temporary File Systems Answer - 3rd in the order of volatility. Disk and other Storage Media Answer - 4th in the order of volatility. Remote Logging and Monitoring Data that is Relevant to the System in Question Answer - 5th in the order of volatility. Physical Configuration, Network Topology Answer - 6th in the order of volatility. Archival Media Answer - 7th in the order of volatility.

enumeration Answer - Acquiring forensically relevant information of a local machine. Used in the process of baselining. baseline Answer - Establishing what is considered normal on a local machine. Enumeration can accomplish this. Operational Notes Answer - Highly detailed notes that will feed into your report depending whether the report is an executive summary or a technical summary. Includes time stamps, programs/tools used, outputs. Executive Summary Answer - High-level summary of the report. Body Answer - The report itself. Introduction, Methods, Findings, Conclusion Technical Summary Answer - Low-level summary of all technical intricacies in a report. MDMP Process Answer - Receipt of Mission Mission Analysis COA Development COA Analysis COA Comparison COA Approval Conduct Mission AAR/ Lessons Learned Parent process to explorer.exe Answer - userinit.exe Ensures the hardware is operational Answer - POST Bootmgr: reads BCD and calls Answer - winload.exe/winresume.exe or .efi Security Accounts Manager (SAM) Answer - Validates local logon. explorer.exe Answer - Last phase in the boot process Hypervisor Answer - Component that creates and runs virtual machines. Potential data at rest issues in Cloud environments. Answer - A potential risk of virtualization. schtasks Answer - Windows Command Line command that will display scheduled tasks. sigcheck Answer - Sysinternal tool that shows file version, timestamp, manifest, and digital signature details. SACL Answer - Defines which secure object interaction will be audited and logged.