some_guy@lemmy.sdf.org to Technology@lemmy.world · 1 day agoI use Zip Bombs to Protect my Serveridiallo.comexternal-linkmessage-square79fedilinkarrow-up1459arrow-down112file-text
arrow-up1447arrow-down1external-linkI use Zip Bombs to Protect my Serveridiallo.comsome_guy@lemmy.sdf.org to Technology@lemmy.world · 1 day agomessage-square79fedilinkfile-text
minus-squaremelroy@kbin.melroy.orglinkfedilinkarrow-up12arrow-down2·1 day 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·1 day 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
. 😉