Skip to content
Snippets Groups Projects
Commit a283f796 authored by gpotter2's avatar gpotter2 Committed by gpotter2
Browse files

Fix paths

parent df4cf276
No related branches found
No related tags found
No related merge requests found
wget https://github.com/hsluoyz/WinDump/releases/download/v0.1/WinDump-for-Npcap-0.1.zip -UseBasicParsing -OutFile .\npcap.zip
wget https://github.com/hsluoyz/WinDump/releases/download/v0.2/WinDump-for-Npcap-0.2.zip -UseBasicParsing -OutFile $PSScriptRoot"\npcap.zip"
Add-Type -AssemblyName System.IO.Compression.FileSystem
function Unzip
{
......@@ -7,6 +7,6 @@ function Unzip
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath)
}
Unzip $PSScriptRoot"\npcap.zip" $PSScriptRoot"\npcap"
Remove-Item ".\npcap.zip"
Move-Item -Force ".\npcap\x64\WinDump.exe" "C:\Windows\System32\windump.exe"
Remove-Item ".\npcap" -recurse
\ No newline at end of file
Remove-Item $PSScriptRoot"\npcap.zip"
Move-Item -Force $PSScriptRoot"\npcap\x64\WinDump.exe" "C:\Windows\System32\windump.exe"
Remove-Item $PSScriptRoot"\npcap" -recurse
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment