ヤミRoot VoidGate
User / IP
:
216.73.216.84
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
/
src
/
Entity
/
Viewing: Logs.php
<?php namespace App\Entity; use ApiPlatform\Core\Annotation\ApiResource; use App\Repository\LogsRepository; use Doctrine\ORM\Mapping as ORM; use Symfony\Component\Validator\Constraints as Assert; // Symfony's built-in constraints /** * @ApiResource( * iri="http://schema.org/Logs", * attributes={"security"="is_granted('ROLE_USER')"}, * itemOperations={ * "get", * "put"={"security"="is_granted('ROLE_ADMIN') or object.user == user"}, * "delete"={"security"="is_granted('ROLE_ADMIN') or object.user == user"}, * }) * @ORM\Entity(repositoryClass=LogsRepository::class) */ class Logs { /** * @ORM\Id() * @ORM\GeneratedValue(strategy="AUTO") * @ORM\Column(type="integer" ) */ private $id; /** * @ORM\Column(type="string", length=500, nullable=true) */ private $activity; /** * @Assert\Ip * @ORM\Column(type="string", length=255, nullable=true) */ private $ipAddress; /** * @ORM\Column(type="datetime") */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="logs") */ public $user; public function getId(): ?int { return $this->id; } public function getActivity(): ?string { return $this->activity; } public function setActivity(?string $activity): self { $this->activity = $activity; return $this; } public function getIpAddress(): ?string { return $this->ipAddress; } public function setIpAddress(?string $ipAddress): self { $this->ipAddress = $ipAddress; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getUser(): ?user { return $this->user; } public function setUser(?user $user): self { $this->user = $user; return $this; } public function __construct() { $this->createdAt = new \DateTime( ); } public function __toString() { // TODO: Implement __toString() method. if(!is_null($this->getUser())){ return "(".$this->getUser()->getLastName().")". $this->activity; }else{ return $this->activity; } } }
Coded With 💗 by
0x6ick