Skip to content

Commit

Permalink
fixed a bug in PSRemoting
Browse files Browse the repository at this point in the history
  • Loading branch information
last-byte committed Dec 3, 2024
1 parent 561ac96 commit ba06edc
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 19 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog
## 1.16.1
## 1.16.3
Fixes:
- Fixed a bug in the remote computer execution which, under certain circumstances, prevented the proper execution of the module

## 1.16.2
Fixes:
- Fixed a bug in the remote computer execution which, under certain circumstances, prevented the proper execution of the module
- Fixed a bug in the handling of the LSA Notification Package detection (see PR #27)
Expand Down
Binary file modified PersistenceSniper/PersistenceSniper.psd1
Binary file not shown.
39 changes: 21 additions & 18 deletions PersistenceSniper/PersistenceSniper.psm1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<#PSScriptInfo
.VERSION 1.16.2
.VERSION 1.16.3
.GUID 3ce01128-01f1-4503-8f7f-2e50deb56ebc
Expand Down Expand Up @@ -188,11 +188,14 @@ function Find-AllPersistence {

$ScriptBlock =
{
if ($ComputerName) {



if ($PSSenderInfo) {
$PersistenceMethod = $Using:PersistenceMethod
$VerbosePreference = $Using:VerbosePreference
}

$ErrorActionPreference = 'SilentlyContinue'
$hostname = ([Net.Dns]::GetHostByName($env:computerName)).HostName
$psProperties = @('PSChildName', 'PSDrive', 'PSParentPath', 'PSPath', 'PSProvider')
Expand Down Expand Up @@ -2446,8 +2449,8 @@ function Find-AllPersistence {
# SIG # Begin signature block
# MIIVlQYJKoZIhvcNAQcCoIIVhjCCFYICAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB
# gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR
# AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUqyLvdXcEKTdX9FIg2NUX11XX
# wTmgghH1MIIFbzCCBFegAwIBAgIQSPyTtGBVlI02p8m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DpCxiPdAf5KFSc++f65tQsKNT/KVvtkkWkdf
# jeKdpk6zlHzG
# SIG # End signature block

0 comments on commit ba06edc

Please sign in to comment.