some_guy@lemmy.sdf.org to Technology@lemmy.world · 3 days agoI use Zip Bombs to Protect my Serveridiallo.comexternal-linkmessage-square103fedilinkarrow-up1572arrow-down115file-text
arrow-up1557arrow-down1external-linkI use Zip Bombs to Protect my Serveridiallo.comsome_guy@lemmy.sdf.org to Technology@lemmy.world · 3 days agomessage-square103fedilinkfile-text
minus-squaremelroy@kbin.melroy.orglinkfedilinkarrow-up12arrow-down2·2 days 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@lemmy.mllinkfedilinkEnglisharrow-up8arrow-down1·2 days agoMight need some if (ob_get_level()) ob_end_clean(); before the readfile. 😉
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; }
Might need some
if (ob_get_level()) ob_end_clean();
before the
readfile
. 😉