ABILIT_DAILY_NOTES_1202
Class notes on second half of the courseware
history
- IBM PC ™️
- PC clones
- DOS = dirty operating system - from Q(uick)(and)DOS
- XEROX made the first GUI OS
- Windows 95 = first GUI OS by Microsoft, no longer just an app for DOS
- Windows 3.11 = first windows with networking - NetBIOS workgroup
- Windows NT (New Technology) = server or workstation - only for work - not very GUI
- Windows 2000 = for enterprise - MuH sHArEhoLderS
- Windows ME = worst OS by Microsoft ever
- Windows XP = the first good one
- Direct X = direct access to hardware
- All windows since NT are still NT based
- Windows Vista = introduction of UAC user access control on absolutely everything
- Windows 8 = Microsoft really thought touchscreens would replace mice and keyboards
official troubleshooting method
- Identify the problem:
- Gather information from the user, identify user changes, and, if applicable, perform backups before making changes.
- Begin documentation of the problem. Update as necessary throughout the full process.
- Inquire regarding environmental or infrastructure changes.
- Gather information from the user, identify user changes, and, if applicable, perform backups before making changes.
- Establish a theory of probable cause (question the obvious):
- If necessary, conduct external or internal research based on symptoms.
- Test the theory to determine the cause:
- Once the theory is confirmed, determine the next steps to resolve the problem.
- If the theory is not confirmed, reestablish a new theory or escalate.
- Establish a plan of action to resolve the problem and implement the solution:
- Refer to the vendor’s instructions for guidance.
- Verify full-system functionality and, if applicable, implement preventive measures.
- Document the findings, lessons learned, actions, and outcomes.
terms
- SOP = standard operating procedure
- SLA = service level agreements = what amount of service to be provided
- ONT = optical network terminal
- RMA = return merchandise authorization
uptime nines
| Nines | Availability % | Downtime per year | Downtime per month | Downtime per week | Downtime per day |
|---|---|---|---|---|---|
| 1 | 90% | 37 days | 73 hours | 17 hours | 2.4 hours |
| 2 | 99% | 3.7 days | 7.3 hours | 1.7 hours | 14 minutes |
| 3 | 99.9% | 9 hours | 44 minutes | 10 minutes | 1.4 minutes |
| 4 | 99.99% | 53 minutes | 4.4 minutes | 1 minute | 8.6 s |
| 5 | 99.999% | 5.3 minutes | 26 s | 6 s | 860 ms |
| 6 | 99.9999% | 32 s | 2.6 s | 600 ms | 86 ms |
| 7 | 99.99999% | 3.2 s | 260 ms | 60 ms | 8.6 ms |
| 8 | 99.999999% | 320 ms | 26 ms | 6 ms | 860 μs |
| 9 | 99.9999999% | 32 ms | 2.6 ms | 600 μs | 86 μs |
| 10 | 99.99999999% | 3.2 ms | 260 μs | 60 μs | 8.6 μs |
documentation and ticketing
- After action report = when major incident
- If your company doesn't have a knowledge base, make one
- Acceptable use policy = AUP = what you can and can not do on a company device
professional communication and perception
- Set expectations = under promise and over perform
- Take ownership = here's what I'm going to do about it
- Ask permission to access their machine
- Don't use jargon with users = speak on their level
- Work on their side of the table = support, don't accuse
- They can hear your posture over the phone
- They don't want to have to call you = they are already upset
- Do not take it personally
- Do not answer like for like
- Do not prove your correctness
- Were on it! Your problem is related to what we are fixing already!
- Were on it! Your problem is just as important as the server on fire!
- There are no flukes = IT aura fixed it - happens again? Call me! (even if its actually nothing or intermittent)
appearance
- 1up the dress code = dress like you run things
questioning
- Closed question = yes or no
- Open question = needs formed response
- Start open ended and then move towards closed
- "what steps have you taken before you called me?" = invite them to conversate
- "what has recently changed since it last worked?"
mobile OSes
- IOS based on macOS based on UNIX
hard drives and filesystems
- Low level formatting = defining the sectors on the drive - done by the factory
- Sector = chunk of space on the drive
- Addressing = mapping the sectors
- Formatting = addressing the sectors - applies a file allocation system
- Partition = collection of sectors into a volume
- Volume = portion of the drive to be formatted and mounted
A cleaner version of the chain:
- Low-level format (factory): lays down the physical sector structure.
- Sector: smallest addressable unit (512 B or 4 KiB).
- Addressing (LBA): numbering sectors so the OS can request them by number.
- Partitioning: dividing the drive into regions recorded in a partition table.
- High-level format: writing a filesystem into a partition.
- Volume: a partition (or group of them) with a filesystem, presented to the OS as usable storage.
filesystems
- file allocation table = FAT (FAT16 retcon)
- 16 bit addresses
- FAT32
- 2tb volumes and filesize up to 4gb
- No security, redundancy or fault tolerance
- So old that everything can use It
- exFAT = extended FAT
- 64bit - file size up to 512tb
- NTFS = windows filesystem "new technology filesystem"
- Filesize up to 16 exabytes theoretical
- File level security
- Journaling = logs data flow
- Snapshotting = backups of files currently in use
- EFS = encrypted filesystem
- ReFS = windows Resilient Filesyem
- For massive datacenters
- Replacesment for NTFS
- Realtime maintenance of drives automatically
- ext4 = Linux filesystem
- XFS = linux filesystem for Red Hat
- NFS = network filesystem - for external data
- APFS = Apple Filesystem - for current macs
windows admin tools (management consoles)
- Device manager
- Manage drivers here
- Computer management = collection of other consoles
- Disk cleanup = Garbage collection
- Task scheduler
- Microsoft Management Console = MMC
- Opens blank console you can add your own snap-ins
- memory tester
HDD fragmentation
- Filling an HDD past 80% can increase fragmentation and errors
- Do not defrag an SSD
Registry editor
- Everything about your computer is stored here
- NO UNDO - EASY TO BRICK
root keys
- HKCR = HKEY_CLASSES_ROOT
- File associations (which program opens .txt)
- HKU = HKEY_USERS
- All user profiles on the machine, by SID
- HKCU = HKEY_CURRENT_USER
- Shortcut to the current user's folder in HKU
- HKLM = HKEY_LOCAL_MACHINE
- Hardware and OS settings for everyone
- HKCC = HKEY_CURRENT_CONFIG
- Current hardware profile, shortcut into HKLM
- Only HKLM and HKU are real, the rest are shortcuts
run keys
- Programs that start automatically at logon (not boot)
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run = all users
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run = just you
- RunOnce = runs once, then deletes itself
- Boot-time stuff = services and scheduled tasks
cmd windows
- Backslash = location change
- Forwardslash = switches
- Robocopy = robust copy
- /xf : Excludes files that match the specified names or paths.
- /xd : Excludes directories that match the specified names or paths.
- /S : Copies subdirectories, excluding empty ones.
- /E : Copies all subdirectories, including empty ones.
- /L : Lists the files and directories that would be copied, without actually copying them.
- Diskpart = disk management
- Active partition = the OS partition
- Format
- Leaves old data as free space
- Chkdsk
- Drive has bad sectors? Replace it
- Shutdown
- Sfc = system file checker - validates OS files
- Winver = about windows
windows defender firewall
- Layer 7 application aware
- Uses ACL = access control list
- Uses port values
- Per port and per application and per port and application
- Host firewall, not network firewall
- Processes rules top down in order
group policies
- Least restrictive wins
- Local policy wins over network
remote desktop tools
- Remote desktop = RDP
- Needs login - uses active login
- Remote assistance
- Requester has control
- Over the shoulder = viewing and not necessarily controlling
msconfig
- Boot cfg
- Services.msc
- Restart print spooler here
eventvwr.msc
- Windows logs
- Application
- Security
- System
541 boot process
- GPT = GUID Partition Table - goes with UEFI
- Supports disks over 2 TB; Windows allows up to 128 partitions
- Protective MBR at LBA 0 (so legacy tools don’t see the disk as empty); primary GPT header at LBA 1; backup header at the end of the disk
- After POST
- UEFI firmware reads boot entries from NVRAM and follows the boot order
- Finds EFI System Partition (ESP, FAT32) with boot manager
- Secure Boot (if enabled) verifies the signature on the bootloader
- Runs bootmgfw.efi (Windows Boot Manager)
- Reads BCD (Boot Configuration Data) and shows the boot menu if there are multiple entries
- Winload.efi
- Loads ntoskrnl.exe, HAL, SYSTEM registry hive, and boot-start drivers
- Kernel takes over, starts smss.exe, then wininit/winlogon, services, and the logon screen
- MBR = master boot record - legacy (BIOS)
- Sector 0 of the disk: 446 bytes boot code, 64 bytes partition table, 2-byte signature (0x55AA)
- 4 primary partitions
- Each primary can be extended (split) into logical drives
- Only one extended partition per disk
- Each primary can be extended (split) into logical drives
- 2 TB limit (32-bit LBA with 512-byte sectors)
- After POST
- BIOS finds MBR on the first boot device in the boot order
- Defines where is my boot partition (the active partition)
- MBR code loads the boot sector (VBR) of the active partition
- Bootmgr
- Reads BCD
- Winload.exe
- Loads ntoskrnl.exe, HAL, SYSTEM hive, and boot-start drivers
- Kernel takes over, same path as above (smss.exe, wininit/winlogon, services, logon screen)
- BIOS finds MBR on the first boot device in the boot order
windows recovery
- shift + restart
- Troubleshoot
- Advanced options
- Startup settings
- Safe mode = starts without unnecessary drivers and apps
- Startup repair = automatically runs SFC and others
- With command prompt
- Creates X drive in RAM with repair tools
- Bootrec /?
- System restore = for user broken system, not malware
- Enable with settings > system > about > system protection
- Check for 100 percent max usage
- When remediating a malware issue = delete all restore points
- Startup settings
- Reset this pc = needs recovery partition with snapshot
- Advanced options
- Can't boot? Use recovery media
windows user profiles
- They can break
- Can load you into temporary profile if yours can't be found
- Have to recreate on break, back it up
- DONT COPY: NTUSER.DAT, NTUSER.DAT.LOG, and NTUSER.INI.
troubleshoot sudden slowness
- Check task manager
- Check registry
- Check for malware
3rd party tools
- Revo uninstaller
- Cleaner
- Malwarebytes
troubleshoot BSOD
- Use memory checker tool
USB ports not working?
- Probably bad drivers
securing windows
- CIA triad model = confidentiality, Integrity, availability
- ACL = access control list
- Implicit deny = allowlist
- Implicit allow = denylist
- Principal of least privilege = only give as much access as needed
vulnerability, threat, risk
- Vulnerability = any weak point in the system
- Threat = active potential of exploitation
- Risk = likelihood of threat and cost of damage
windows security groups
- Least restrictive wins
- Don't use the guest account
user a count control - just in time access
- Malware usually uses current user permissions - don't main an admin account
- Net user command - manipulate user accounts
Authentication
- Zero trust = log in again asshole
- Multifactor = something you have, are, know
windows login types
- Windows network sign-in = domain account
- Remote sign in = VPNs, web portal, wireless - needs RADIUS
- Windows hello is controlled by TPM
- Single sign on = signing into one thing gives you access to multiple things
windows domains and active directory
- Domain controllers = servers with Kerberos
- Active directory = shows security groups and users
- Azure = online version of this
- Organizational units = OU = security groups group
group policy
- gpupdate = apply changed policy
- gpresult = shows current policy - RSoP = resultant set of policies
active directory = controls connected network
- Active directory users and computers = reset peoples passwords and create accounts here
- Deleting users kills access to their stuff, disable instead
- Join workgroup = advanced system settings > change name or workgroup
shared folders
- Share permissions do not work locally
- Cannot share or permission individual files
- ADMIN$ share = root of C:\
- Mapped drive = giving a shared folder a drive letter
- Net use command = "drive-letter location /persistent:yes"
printer sharing
- Local print sharing means everyone needs the right driver
NTFS permissions - locked to profile
- Read = read it, cannot save to the file
- Write = can make changes and overwrite
- Read and execute = read only but you can run programs
- Modify = can delete and overwrite
- Full control = can change permissions
- Permissions given by security group
- MOST restrictive wins when conflict between NTFS and Share permissions
- Implicit deny on one group per folder can overrule any other group
- Permissions inheritance = when parent changes child
- By default = yes
- Advanced security settings > disable inheritance = changes from parent won't propagate
- Copying files = copy is new file and will inherit placed permissions
- Moving files
- In same volume = considers as same file and will retain original permissions
- To other volume = same as copy
- Can only take ownership of a file, cannot give
joining a domain in windows
- Settings > accounts > access work or school > connect > local
- System properties > name/domain changes
- Creates local account which can then be logged into without the network
important IT stuff
- Most important thing when working at an office space = attendance
- Customer service skills are important
- Cisco switches and meraki dashboard
- Types of jobs
- Help desk
- Installers
- Field tech
- It specialist
- Contracting agency > imaging laptops for 4 months > better job
- What do I want to do next and in five years?
- Contract = ease of entry
- Just do it
- Connect with people
home folder = mapped network drive
- net use P: \\CorpFiles\Personnel
roaming profile = whole profile is stored on server
folder redirection = certain folders in profile redirect to server folder
- Transparent to user
- Applies as login script on any computer
windows versions
- Windows 10 + 11
- Home, pro, Enterprise, pro for workstations, education, pro education
- Home cannot connect to a domain or use bitlocker, use group policy editor or make outbound RDP connections
- N versions are for Europe
- Pro for workstations can use NVDIMMs
Windows installation and upgrading
- Clean install = from freshly formatted hard drive - least fraught way to upgrade
- In-place upgrade = new install media detects existing windows
- Repair install = same version install media install over the top of existing windows
- Do not daisy chain upgrades
- Make backups first
windows 11 hardware requirements
- Needs TPM v2
- Requires 64bit
installing windows on a RAID volume
- Windows does not know its inside RAID without drivers
- Click here to install 3rd party drivers = asking for RAID drivers
windows drivers
- Most win10 drivers should work on win11
LPL (HCL) = logo'd product list
- List of Microsoft tested hardware for compatibility
- Submitted by manufacturer
unattended installations
- Old way: answer files
- Pre-configured install using an answer file
- Answer file = script containing installer questions
- New way: imaging (one image per different harware sets)
- Do the whole install once then run sysprep
- Sysprep = reverts install back to before first login for recipients
- Make image of completed install drive
- Copy image to rest of devices with PXE
- Preboot executable environment = PXE (pixie) = connect to network from firmware to find an image to install
- Can make PXE environment with usb drive
- Zero-touch deployment = installs network requrements per domain - user gets online then this gives you everything you need
- Internet booting = PXE over the internet
volunteer positions look good on your resume
virtual machines
- Each copy needs its own licence of windows when in use
multiboot
- Only one active volume per machine
- Boot list marks selected volume as active
- Both windows and linux = install windows first
- Windows and windows = install oldest version first so newest discovers it
disk configuration
- MBR = outmoded = master boot record
- first sector on drive
- up to 4 primary partitions / OS's
- Only works with BIOS
- Maximum 2tb partition size
- Primary partitions = can be set as active
- Active partition = the one to boot from
- GPT = GUID partition table
- All partitions are bootable
- windows limits to 128 partitions
social engineering
- Twisting the social contracts for personal gain
- Phishing, phone call, guilt
- Vishing = voice phishing
- spearphishing = sending something you're more likely to respond to based on collected information
- Whaling = high level phish only - elaborate, expensive, long term
- Dumpster diving = divulging info from your trash
- Shoulder surfing = reading typed passwords
- Tailgating and piggybacking = go through the door someone else opened
- Quishing = QR code redirect
- Evil twin = cloning a public wifi
threat types
- external threat = no existing access to your stuff
- Internal threat = has access already, youre supposeed to be there, get hired
- Footprinting = information gathering - see what sorts of data comes from your network
- Active = you can be detected = probing, what can I get easily
- Passive = just listening
- Spoofing = digital attack pretending something you're not - clone your MAC address
- On Path (MITM) = sit between valid conversation
- DOS = denial of service = anything that takes down a service
- Reverse DDOS = spoof the target - use regular machines that normally respond and tell them to send me everything possible
- SQL injection attack = dump the whole table instead of the one thing its supposed to return
- Cross-site scripting attacks = compromise the sites they trust
wifi protection
- WEP = don't
- WPA = wifi protected access = fixed WEP for same hardware - still easy to break
- PSK = pre shared key = your wifi password
- AES = replaced RC4
- CCMP = replaced TKIP - key agreement protocol - attackable
- AES = advanced encryption standard
- SAE = Simultaneous Authentication of Equals - Diffie Hellman - Perfect Forward Secrecy
- WPA2 = almost good enough - CCMP
- WPA3 = perfect dragonfly handshake / Diffie Hellman - no key ever transmits - AES GCMP
- Better at protecting management frames
- Enhanced open WIFI = even no password networks are still encrypted
wifi types
- Open = free and open
- Personal = your password
- Enterprise = full username and password
extensible authentication protocol (EAP)
- 802.1x
- PKI paired certificates for TLS
- Keys stored in TPM
- Checks username and password AND the certificate (MFA)
kerberos - AAA protocol - only works wired
- Radius and tacacs extend this to remote users (Windows)
- Service in windows server used as Domain Controller (AAA server)
- Serves user permissions at login - permission file sent to me
- TGT = ticket granting ticket = encrypted with server's public key
- Send back TGT and request to DC and I get back a service ticket
- Service ticket = encrypted with other servers public key
- Send other server the service ticket obtained through the DC
secure your network with user education
UPnP = Universal plug-and-play
- For IoT devices
- Automatic port forwarding
- Very vulnerable, anyone can start opening ports (but low risk)
- Do not enable for incoming connections
screened subnet (dmz)
- Subnet seperated from your own network that is more open to the internet
- Area between public firewall and private firewall
- Bastion host = servers in the screened subnet
physical security
- Deterrence = cameras, spotlight
- Prevention = gates, doors, bollards
- Access control vestibule = two doors that don't open at once
backups
- archive bit = new files have it enabled = windows only?
- full = everything = disables archive bit
- incremental = archive bit on = backs up what changed then disables archive bit
- differential = archive bit on = does not disable archive bit = backs up since last full backup = less efficient
- synthetic full backup = for big storage = done at storage location = adds incremental to last full backup
- GFS = grandfather - father - son = yearly, monthly, daily
- 3-2-1- rule = 3 copies of your data, 2 media types, 1 offsite
- dont recover to production - data may be corrupt
- in-place restore = recover to production
- alternate restore = to new location
volume shadow copy service = vfs (windows)
- open files are locked - can't even be backed up
- takes snapshot of open files for backup
regulated data handling
- PII = personally identifying information
- PGI = personal government-issued information - federal PII
- healthcare data - HIPPA
- credit card transactions - PCI DSS, GDPR