Make sure you have network connections monitoring enabled:
PS temp> sysmon -c
Sysinternals Sysmon v3.11 - System activity monitor
Copyright (C) 2014-2015 Mark Russinovich and Thomas Garnier
Sysinternals - www.sysinternals.com
| param ( | |
| [Parameter(Mandatory = $true)][string]$Uri, | |
| [Parameter(Mandatory = $true)][string]$TargetFolderPath | |
| ) | |
| $ErrorActionPreference = "Stop" | |
| $FileName = Split-Path -Path $Uri -Leaf | |
| $DownloadFilePath = Join-Path $env:TEMP $FileName |
| param ( | |
| [Parameter(Position = 1, Mandatory = $True)] | |
| [ValidateScript({ Test-Path $_ })] | |
| [String]$Path, | |
| [Int64]$Offset = 0 | |
| ) | |
| $ErrorActionPreference = "Stop" | |
| $Colors = @( |
| $DllImport = '[DllImport("netapi32.dll", CharSet = CharSet.Unicode)] public static extern int NetUserChangePassword(string d, string u, string oldpass, string newpass);' | |
| $NetApi32 = Add-Type -MemberDefinition $DllImport -Name 'NetApi32' -Namespace 'Win32' -PassThru | |
| Write-Host -NoNewLine "Full domain name (for example, example.com): " | |
| $Domain = Read-Host | |
| $Context = [System.DirectoryServices.ActiveDirectory.DirectoryContext]::new([System.DirectoryServices.ActiveDirectory.DirectoryContextType]::Domain, $Domain) | |
| $DomainController = ([System.DirectoryServices.ActiveDirectory.DomainController]::FindOne($Context)).Name | |
| Write-Host -NoNewLine "Old password: " | |
| $OldPass = Read-Host |
| param ([Parameter(Mandatory = $True, ValueFromPipeline = $True, Position = 0)][string]$FilePath) | |
| $algs = "MD5","SHA1","SHA256" | |
| $hashes = $algs | % { Get-FileHash -Algorithm $_ $FilePath } | |
| for ($i = 0; $i -lt $hashes.Length; $i++) { | |
| $hash = $hashes[$i] | |
| "$($hash.Algorithm) = $($hash.Hash)" | |
| } |
| $ErrorActionPreference = "Stop" | |
| function Update-AssemblyInfoVersionFiles ([string]$versionIdentifier) | |
| { | |
| $srcPath = $pwd | |
| $today = [DateTime]::Today | |
| $ghref = [System.IO.Path]::GetFileName("$env:GITHUB_REF") | |
| if ($ghref -match "^(\d+\.\d+)(\-.+)?$") { | |
| $buildNumber = "{0:yy}{1}.{2}" -f $today,$today.DayOfYear,($env:GITHUB_RUN_NUMBER % [int16]::MaxValue) | |
| $version = "$($Matches[1]).$buildNumber" |
| set background=dark | |
| " do not keep a backup file, use versions instead | |
| set nobackup | |
| " keep 50 lines of command line history | |
| set history=50 | |
| " show the cursor position all the time | |
| set ruler | |
| " display incomplete commands | |
| set showcmd |
| //------------------------------------------------ | |
| //--- 010 Editor v7.0.2 Binary Template | |
| // | |
| // File: | |
| // Authors: Sebastian Solnica (@lowleveldesign) | |
| // Version: | |
| // Purpose: .snk files | |
| // Category: | |
| // File Mask: *.snk | |
| // ID Bytes: |
| using Microsoft.Diagnostics.Tracing; | |
| using Microsoft.Diagnostics.Tracing.Session; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Threading; | |
| namespace ClrDacManaged | |
| { | |
| class Program |
| @echo off | |
| powershell -NoProfile -ExecutionPolicy ByPass -File "%~d0%~p0%~n0.ps1" |
Make sure you have network connections monitoring enabled:
PS temp> sysmon -c
Sysinternals Sysmon v3.11 - System activity monitor
Copyright (C) 2014-2015 Mark Russinovich and Thomas Garnier
Sysinternals - www.sysinternals.com