This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import requests | |
| if len(sys.argv) < 3: | |
| print("Usage : python3 zapcrawl.py urls.txt ZAP_API_KEY") | |
| exit(0) | |
| urlsfile = open(sys.argv[1], 'r') | |
| urls = urlsfile.readlines() | |
| api_key = sys.argv[2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function ConvertTo-CentralPackageManagement() { | |
| Write-Host 'Searching for package references' | |
| $packages = @{} | |
| $conditionalPackages = @{} | |
| foreach ($csproj in (Get-ChildItem -Include *.csproj, *.props -Recurse)) { | |
| $root = [xml]($csproj | Get-Content -Raw) | |
| foreach ($itemGroup in $root.Project.ItemGroup) { | |
| foreach ($packageReference in $itemGroup.PackageReference) { | |
| if ($packageReference.Include -and $packageReference.Version) { |
OlderNewer