Notes
  • Welcome!
  • Windows Shells
    • Introduction
    • Command Prompt
      • Basics
      • Host Enumeration
      • Files & Directories
      • Environment Variables
      • Managing Services
      • Scheduled Tasks
      • Help
    • PowerShell
      • PowerShell vs. CMD
      • Basics
      • CmdLets & Modules
      • User & Group Management
      • Files & Dirs
      • Finding & Filtering
      • Services
      • Registry
      • Windows Event Log
      • Networking Management
      • Web Interaction
      • Scripting
      • Help
  • Windows
    • Commands
    • NTFS
  • APISEC
    • API Testing
      • Recon
      • Endpoint Analysis
      • Finding Security Misconfigurations
      • Authentication Attacks
      • Exploiting API Authorization
        • BOLA
        • BFLA
      • Improper Assets Management
      • Mass Assignment Attacks
      • SSRF
      • Injection Attacks
      • Evasion & Chaining
    • API Authentication
      • Authentication Types
      • OAuth Actors
      • OAuth Interaction Patterns
      • JSON Web Tokens
      • Claims
      • APIs & Gateways
  • PostSwigger
    • Web LLM Attacks
      • Overview
      • Exploiting LLM APIs, function, & Plugins
      • Indirect Prompt Injection
      • Leaking Sensitive Data
      • Defending Against LLM Attacks
    • JWT Attacks
      • JWTs
      • Attacks
        • Flawed Signature Verfication
        • Brute-forcing Secret Keys
        • JWT Header Parameter Injections
        • Algorithm Confusion
      • Prevention
    • OAuth
      • General Information
      • Exploiting OAuth Authentication Flaws
        • Flaws in Client Application
        • Flaws in the OAuth Service
      • OpenID
  • Red Teaming LLM Applications
    • LLM Vulnerabilities
    • Red Teaming LLMs
    • Red Teaming at Scale
    • Red Teaming LLMs with LLMs
    • Red Teaming Assessment
  • Fin
    • Course 1: Basics
      • Stocks
        • General Information
        • Shares
        • Stock Basics
      • Bonds
        • General Information
        • Components
        • Valuation
      • Markets
        • What is the Stock Market
        • What is the FED
    • Course 2: Stock Investing
  • Other
    • Learning Resources
Powered by GitBook
On this page
  1. Windows Shells
  2. PowerShell

Files & Dirs

Basics

Command
Alias
Description

Get-Item

gi

Retrieve, i.e., list, an object.

Get-ChildItem

ls / dir / gci

Lists out the content of a folder or registry hive.

New-Item

md / mkdir / ni

Create new objects. ( can be files, folders, symlinks, registry entries, and more)

Set-Item

si

Modify the property values of an object.

Copy-Item

copy / cp / ci

Make a duplicate of the item.

Rename-Item

ren / rni

Changes the object name.

Remove-Item

rm / del / rmdir

Deletes the object.

Get-Content

cat / type

Displays the content within a file or object.

Add-Content

ac

Append content to a file.

Set-Content

sc

overwrite any content in a file with new data.

Clear-Content

clc

Clear the content of the files without deleting the file itself.

Compare-Object

diff / compare

Compare two or more objects against each other. This includes the object itself and the content within.

PreviousUser & Group ManagementNextFinding & Filtering

Last updated 1 year ago