File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -125,19 +125,19 @@ Describe 'Invoke-Shellcode' {
125
125
}
126
126
127
127
Describe ' Invoke-DllInjection' {
128
- $Accessibilitycpl = ' accessibilitycpl .dll'
129
- $AccessibilitycplPath = " $ ( $Env: SystemRoot ) \System32\$Accessibilitycpl "
128
+ $Advpack = ' advpack .dll'
129
+ $AdvpackPath = " $ ( $Env: SystemRoot ) \System32\$Advpack "
130
130
131
131
It ' should inject a known system DLL' {
132
- if (-not (Test-Path $AccessibilitycplPath )) {
133
- throw " $AccessibilitycplPath does not exist on disk."
132
+ if (-not (Test-Path $AdvpackPath )) {
133
+ throw " $AdvpackPath does not exist on disk."
134
134
}
135
135
136
- $LoadedModule = Invoke-DllInjection - ProcessID $PID - Dll $AccessibilitycplPath
136
+ $LoadedModule = Invoke-DllInjection - ProcessID $PID - Dll $AdvpackPath
137
137
$LoadedModule | Should Not BeNullOrEmpty
138
138
139
139
$LoadedModule -is [System.Diagnostics.ProcessModule ] | Should Be $True
140
- $LoadedModule.ModuleName | Should Be $Accessibilitycpl
140
+ $LoadedModule.ModuleName | Should Be $Advpack
141
141
}
142
142
143
143
It ' should not inject a non-existent DLL' {
@@ -149,7 +149,7 @@ Describe 'Invoke-DllInjection' {
149
149
}
150
150
151
151
It ' should not inject to a non-existent process' {
152
- { Invoke-DllInjection - ProcessID 0 - Dll $AccessibilitycplPath } | Should Throw
152
+ { Invoke-DllInjection - ProcessID 0 - Dll $AdvpackPath } | Should Throw
153
153
}
154
154
}
155
155
You can’t perform that action at this time.
0 commit comments