microsoft/hve-core
Publicmirrored from https://github.com/microsoft/hve-coreAvailable
scripts/tests/Fixtures/Security/insecure-download.sh
10lines · modecode
| 1 | #!/usr/bin/env bash |
| 2 | # Test fixture: Shell script with insecure download (no checksum) |
| 3 | |
| 4 | echo "Downloading tool without verification..." |
| 5 | curl -o /tmp/tool.tar.gz https://example.com/tool.tar.gz |
| 6 | |
| 7 | # This download lacks checksum verification |
| 8 | wget https://example.com/other-tool.zip -O /tmp/other-tool.zip |
| 9 | |
| 10 | echo "Done" |
| 11 | |