Skip to content

Instantly share code, notes, and snippets.

@xybytes
xybytes / Get-SmbFiles.ps1
Last active September 18, 2023 17:45
The PowerShell script is designed to retrieve files from a list of SMB shares.
<#
For a single share:
Get-SmbFiles -SmbShare "\\server\share"
For shares from a file:
Get-SmbFiles -SharesFile "path_to_file_with_shares.txt"
#>
function Get-SmbFiles {
[CmdletBinding()]
param (
@xybytes
xybytes / windows_commands_pentesting.md
Last active August 27, 2023 16:10
Basic Windows CMD and PowerShell Commands for Pentester