ヤミRoot VoidGate
User / IP
:
216.73.216.143
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
logercm
/
dev.loger.cm
/
fixtures
/
assert
/
Viewing: Service.tar
FileUploader.php 0000644 00000000066 15117737006 0007641 0 ustar 00 <?php namespace App\Service; class FileUploader { } MessageGenerator.php 0000644 00000000615 15117737006 0010521 0 ustar 00 <?php namespace App\Service; use Psr\Log\LoggerInterface; class MessageGenerator { private $logger; public function __construct(LoggerInterface $logger) { $this->logger = $logger; } public function getHappyMessage(): string { $this->logger->info('About to find a happy message!'); // ... return "About to find a happy message!"; } } SiteUpdateManager.php 0000644 00000001652 15117737006 0010632 0 ustar 00 <?php namespace App\Service; use App\Service\MessageGenerator; use Swift_Mailer; use Symfony\Component\Mime\Email; class SiteUpdateManager { private $messageGenerator; private $mailer; private $adminEmail; public function __construct(MessageGenerator $messageGenerator, Swift_Mailer $mailer, string $adminEmail) { $this->adminEmail = $adminEmail; $this->messageGenerator = $messageGenerator; $this->mailer = $mailer; } public function notifyOfSiteUpdate($mailer): bool { $happyMessage = $this->messageGenerator->getHappyMessage(); $message = (new \Swift_Message('[JYVEN] Site update')) ->setFrom('info-service@biocarrylife.com') ->setTo($this->adminEmail) ->setBody('Someone just updated the site. We told them: '.$happyMessage) ; $mailer->send($message); // ... return true; } } Notification.php 0000644 00000003303 15117737006 0007711 0 ustar 00 <?php namespace App\Service; class Notification { private $title; private $message; private $image; private $action; private $data; private $action_destination; /** * @return mixed */ public function getTitle() { return $this->title; } /** * @param mixed $title */ public function setTitle($title): void { $this->title = $title; } /** * @return mixed */ public function getMessage() { return $this->message; } /** * @param mixed $message */ public function setMessage($message): void { $this->message = $message; } /** * @return mixed */ public function getImage() { return $this->image; } /** * @param mixed $image */ public function setImage($image): void { $this->image = $image; } /** * @return mixed */ public function getAction() { return $this->action; } /** * @param mixed $action */ public function setAction($action): void { $this->action = $action; } /** * @return mixed */ public function getData() { return $this->data; } /** * @param mixed $data */ public function setData($data): void { $this->data = $data; } /** * @return De */ public function getActionDestination() { return $this->action_destination; } /** * @param mixed $action_destination */ public function setActionDestination($action_destination): void { $this->action_destination = $action_destination; } }
Coded With 💗 by
0x6ick