minor syntax update

Just updating the syntax on the $filtertoconsumerargs
This commit is contained in:
Jimmy Astle
2018-05-07 15:43:40 -04:00
parent a38ad6a815
commit b2ccaa911b
@@ -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