⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.50
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-roundcube
/
program
/
lib
/
Roundcube
/
View File Name :
rcube_content_filter.php
| +-----------------------------------------------------------------------+ */ /** * PHP stream filter to detect html/javascript code in attachments * * @package Framework * @subpackage Utils */ class rcube_content_filter extends php_user_filter { private $buffer = ''; private $cutoff = 2048; public function onCreate(): bool { $this->cutoff = rand(2048, 3027); return true; } #[ReturnTypeWillChange] public function filter($in, $out, &$consumed, $closing) { while ($bucket = stream_bucket_make_writeable($in)) { $this->buffer .= $bucket->data; // check for evil content and abort if (preg_match('/<(script|iframe|object)/i', $this->buffer)) { return PSFS_ERR_FATAL; } // keep buffer small enough if (strlen($this->buffer) > 4096) { $this->buffer = substr($this->buffer, $this->cutoff); } $consumed += $bucket->datalen; stream_bucket_append($out, $bucket); } return PSFS_PASS_ON; } }