some_guy@lemmy.sdf.org to Technology@lemmy.world · 13 hours agoI use Zip Bombs to Protect my Serveridiallo.comexternal-linkmessage-square66fedilinkarrow-up1360arrow-down19file-text
arrow-up1351arrow-down1external-linkI use Zip Bombs to Protect my Serveridiallo.comsome_guy@lemmy.sdf.org to Technology@lemmy.world · 13 hours agomessage-square66fedilinkfile-text
minus-squaremelroy@kbin.melroy.orglinkfedilinkarrow-up12arrow-down2·13 hours 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-up7arrow-down1·12 hours 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
. 😉