mirror of
https://github.com/evilele/EDR-Introspection
synced 2026-06-09 08:11:09 +00:00
add path check and pip install
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
# py -m pip install requests pefile
|
||||
|
||||
$r = $PsScriptRoot
|
||||
if ((Get-Location).Path -ne $r) {
|
||||
Write-Host "This script must be executed from within $r"
|
||||
Exit
|
||||
}
|
||||
|
||||
py -m pip install requests pefile
|
||||
|
||||
$edrs = "$r\..\helpers\EDRSandblast"
|
||||
$eoffs = "$edrs\ExtractOffsets.py"
|
||||
$offsets = "$edrs\offsets\"
|
||||
@@ -14,4 +19,4 @@ py $eoffs ntoskrnl -i $offsets
|
||||
py $eoffs fltmgr -i $offsets
|
||||
|
||||
mv "$r\NtoskrnlOffsets.csv" $offsets -Force
|
||||
mv "$r\FltmgrOffsets.csv" $offsets -Force
|
||||
mv "$r\FltmgrOffsets.csv" $offsets -Force
|
||||
|
||||
Reference in New Issue
Block a user