▲ 564 ▼ I use Zip Bombs to Protect my Server (idiallo.com) submitted 1 year ago by some_guy@lemmy.sdf.org to c/technology@lemmy.world 104 comments fedilink hide all child comments The one-liner: dd if=/dev/zero bs=1G count=10 | gzip -c > 10GB.gz This is brilliant.
[–] melroy@kbin.melroy.org 11 points 1 year ago (1 child) let me try.. permalink fedilink source hideshow 2 child comments replies: [–] melroy@kbin.melroy.org 12 points 1 year ago (1 child) Looks fine to me. Only 1 CPU core I think was 100%. 10+0 records in 10+0 records out 10737418240 bytes (11 GB, 10 GiB) copied, 28,0695 s, 383 MB/s permalink fedilink source parent hideshow 2 child comments replies: [–] melroy@kbin.melroy.org 10 points 1 year ago (1 child) ow.. now the idea is to unzip it right? nice idea: if (ipIsBlackListed() || isMalicious()) { header("Content-Encoding: deflate, gzip"); header("Content-Length: "+ filesize(ZIP_BOMB_FILE_10G)); // 10 MB readfile(ZIP_BOMB_FILE_10G); exit; } permalink fedilink source parent hideshow 2 child comments replies: [–] mbirth@lemmy.ml 7 points 1 year ago Might need some if (ob_get_level()) ob_end_clean(); before the readfile. 😉 permalink fedilink source parent
[–] melroy@kbin.melroy.org 12 points 1 year ago (1 child) Looks fine to me. Only 1 CPU core I think was 100%. 10+0 records in 10+0 records out 10737418240 bytes (11 GB, 10 GiB) copied, 28,0695 s, 383 MB/s permalink fedilink source parent hideshow 2 child comments replies: [–] melroy@kbin.melroy.org 10 points 1 year ago (1 child) ow.. now the idea is to unzip it right? nice idea: if (ipIsBlackListed() || isMalicious()) { header("Content-Encoding: deflate, gzip"); header("Content-Length: "+ filesize(ZIP_BOMB_FILE_10G)); // 10 MB readfile(ZIP_BOMB_FILE_10G); exit; } permalink fedilink source parent hideshow 2 child comments replies: [–] mbirth@lemmy.ml 7 points 1 year ago Might need some if (ob_get_level()) ob_end_clean(); before the readfile. 😉 permalink fedilink source parent
[–] melroy@kbin.melroy.org 10 points 1 year ago (1 child) ow.. now the idea is to unzip it right? nice idea: if (ipIsBlackListed() || isMalicious()) { header("Content-Encoding: deflate, gzip"); header("Content-Length: "+ filesize(ZIP_BOMB_FILE_10G)); // 10 MB readfile(ZIP_BOMB_FILE_10G); exit; } permalink fedilink source parent hideshow 2 child comments replies: [–] mbirth@lemmy.ml 7 points 1 year ago Might need some if (ob_get_level()) ob_end_clean(); before the readfile. 😉 permalink fedilink source parent
[–] mbirth@lemmy.ml 7 points 1 year ago Might need some if (ob_get_level()) ob_end_clean(); before the readfile. 😉 permalink fedilink source parent