Skip to content

Commit

Permalink
Add script to generate metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
drighetto committed Dec 11, 2024
1 parent bc2c9bf commit afb4086
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Build-Toolkit.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function Add-Sysinternals {

function Add-Wireshark {
Write-Host ">> Add Wireshark..." -ForegroundColor Yellow
$WSUrl=(Invoke-WebRequest "https://www.wireshark.org/").Content | Select-String -CaseSensitive -Pattern '(https:\/\/[a-z0-9\./]+WiresharkPortable[0-9\._]+\.paf\.exe)'
$WSUrl = (Invoke-WebRequest "https://www.wireshark.org/").Content | Select-String -CaseSensitive -Pattern '(https:\/\/[a-z0-9\./]+WiresharkPortable[0-9\._]+\.paf\.exe)'
Get-RemoteFile -Uri $WSUrl.Matches.Value -OutFile "$WorkFolder\wireshark-portable.exe"
Get-RemoteFile -Uri "https://nmap.org/npcap/dist/npcap-1.75.exe" -OutFile "$WorkFolder\npcap.exe"
Write-Host "<< Added!" -ForegroundColor Yellow
Expand Down Expand Up @@ -328,6 +328,7 @@ Remove-Item $WorkFolder\Python\Lib\venv -Recurse -ErrorAction Ignore -Force
Write-Host "[+] Add utility content and information note..." -ForegroundColor Yellow
Copy-Item -Path .\patch_python_binaries.py -Destination $WorkFolder
"Open a PowerShell shell with CMDER and execute the script 'patch_python_binaries.py' from this shell." | Out-File -FilePath $WorkFolder\FirstUsageNote.txt -Encoding "utf8"
.\Update-ToolkitMetadata.ps1
Write-Host "[+] Create the archive..." -ForegroundColor Yellow
Compress-Archive -Path $WorkFolder -DestinationPath $TKArchiveName -CompressionLevel Optimal
Write-Host "[+] Cleanup..." -ForegroundColor Yellow
Expand Down

0 comments on commit afb4086

Please sign in to comment.