Exploit database

GH-7feacea856188eafd49a6762828c436f

chocapikk/cve-2023-35885

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2023-35885

4 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files45
chocapikk/cve-2023-35885Revision 78ece7c3f53e

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

src/System/Command/SedCommand.php

PHP · 1,117 bytes
<?php
 namespace App\System\Command; use App\System\Command; class SedCommand extends Command { private ?string $file = null; private ?string $pattern = null; public function getCommand() : string { goto E498d; F8dab: $this->command = sprintf("\57\165\163\162\x2f\142\x69\x6e\57\x73\x75\144\157\x20\57\142\151\156\57\163\x65\x64\40\x2d\151\40\x25\163\40\45\163", escapeshellarg($pattern), $file); goto cd764; cd764: Cc258: goto Bb550; B3d5f: $pattern = $this->getPattern(); goto F8dab; A487b: $file = $this->getFile(); goto B3d5f; Bb550: return $this->command; goto C9c6b; E498d: if ($this->command) { goto Cc258; } goto A487b; C9c6b: } public function isSuccessful() : bool { goto b8c3f; b8c3f: $output = $this->getOutput(); goto C0de5; C0de5: $isSuccessful = empty($output); goto Db500; Db500: return $isSuccessful; goto d80f2; d80f2: } public function setFile(string $file) : void { $this->file = $file; } public function getFile() : string { return $this->file; } public function setPattern(string $pattern) : void { $this->pattern = $pattern; } public function getPattern() : string { return $this->pattern; } }