PHP code example of mleczakm / zip-bomb-honeypot
1. Go to this page and download the library: Download mleczakm/zip-bomb-honeypot library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mleczakm / zip-bomb-honeypot example snippets
use Mleczakm\ZipBombHoneypot\ZipBombGenerator;
$zip = new ZipBombGenerator()->generate(
numFiles: 10, // overlapping local file header entries
kernelSize: 100_000, // uncompressed kernel size in bytes, before overlap multiplication
);