Skip to content

Commit dcd9ea2

Browse files
committed
Check for PowerShell version
1 parent 1991bbc commit dcd9ea2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

MS-RPC-Fuzzer.psm1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
$WarningPreference = 'SilentlyContinue'
16+
1517
# Import NtObjectManager
1618
Import-Module "$PSScriptRoot\NtObjectManager\NtObjectManager.psm1"
1719

@@ -27,4 +29,8 @@ Import-Module "$PSScriptRoot\NtObjectManager\NtObjectManager.psm1"
2729
. "$PSScriptRoot\source\PML-Importer.ps1"
2830
. "$PSScriptRoot\source\SortProcedureFunction.ps1"
2931
. "$PSScriptRoot\source\DefaultFuzzer.ps1"
30-
. "$PSScriptRoot\source\SortedFuzzer.ps1"
32+
. "$PSScriptRoot\source\SortedFuzzer.ps1"
33+
34+
if ($PSVersionTable.PSVersion.Major -lt 7) {
35+
Write-Host "[!] PowerShell version 7 is required for MS-RPC Fuzzer" -ForegroundColor Red
36+
}

0 commit comments

Comments
 (0)