@[email protected] to [email protected] • 8 months agoI use Zip Bombs to Protect my Serveridiallo.comexternal-linkmessage-square104fedilinkarrow-up1577arrow-down116file-text
arrow-up1561arrow-down1external-linkI use Zip Bombs to Protect my Serveridiallo.com@[email protected] to [email protected] • 8 months agomessage-square104fedilinkfile-text
minus-squaremelroylinkfedilink12•8 months agoLooks 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
minus-squaremelroylinkfedilink10•8 months agoow… 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; }
minus-squarembirth 🇬🇧linkfedilinkEnglish7•8 months agoMight need some if (ob_get_level()) ob_end_clean(); before the readfile. 😉
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/sow… 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; }Might need some
if (ob_get_level()) ob_end_clean();before the
readfile. 😉