Skip to content

Instantly share code, notes, and snippets.

View 1d0n7kn0w's full-sized avatar
🎯
Focusing

1d0n7kn0w

🎯
Focusing
View GitHub Profile
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]
@axelheer
axelheer / ConvertTo-CentralPackageManagement.ps1
Last active October 21, 2025 09:26
Generates a `Directory.Packages.props` based on all your project files
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) {