Exploit databaseDownload repository ZIP
GH-7feacea856188eafd49a6762828c436f
chocapikk/cve-2023-35885
Sources for CVE-2023-35885
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files45
chocapikk/cve-2023-35885Revision 78ece7c3f53e
- ↑..Parent directory
- BsdTarExtractCommand.php
- CatFileCommand.php
- ChangeDatabaseUserPasswordCommand.php
- ChangeUserHomeDirectoryCommand.php
- ChangeUserPasswordCommand.php
- CheckIfFileExistsCommand.php
- CheckIfPortIsInUseCommand.php
- ChmodCommand.php
- ChownCommand.php
- CopyFileCommand.php
- CreateDatabaseDumpCommand.php
- CreateDirectoryCommand.php
- CreateSymlinkCommand.php
- CreateUserCommand.php
- DeleteDirectoryCommand.php
- DeleteFileCommand.php
- DeleteOldFilesRecursiveCommand.php
- DeleteUserCommand.php
- DownloadFileCommand.php
- FindChmodCommand.php
- GunzipCommand.php
- ImportDatabaseDumpCommand.php
- LsCommand.php
- MemoryInformationCommand.php
- MoveFileCommand.php
- NginxConfigTestCommand.php
- NvmInstallNodejsCommand.php
- ProcessorCoresCommand.php
- RcloneCopyCommand.php
- RcloneLsJsonCommand.php
- RclonePasswordObscureCommand.php
- RclonePurgeCommand.php
- SedCommand.php
- ServiceReloadCommand.php
- ServiceRestartCommand.php
- ServiceStatusCommand.php
- SetTimezoneCommand.php
- TailCommand.php
- TarCreateCommand.php
- TarExtractCommand.php
- UnzipCommand.php
- WordPressConfigCreateCommand.php
- WordPressCoreInstallCommand.php
- WordPressSetConfigValueCommand.php
- WriteFileCommand.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/System/Command/ChownCommand.php
PHP · 1,608 bytes<?php
namespace App\System\Command; use App\System\Command; class ChownCommand extends Command { private ?string $user = null; private ?string $group = null; private ?string $file = null; private bool $recursive = false; public function getCommand() : string { goto F3fbd; d3ac3: $user = $this->getUser(); goto A2859; F3fbd: if ($this->command) { goto C311e; } goto d3ac3; Ae088: C311e: goto a1de0; A2859: $group = $this->getGroup(); goto b1866; A96b0: $this->command = sprintf("\x2f\165\163\x72\x2f\142\151\156\x2f\163\165\144\157\40\57\x62\151\156\x2f\143\150\x6f\x77\x6e\40\x25\x73\x20\45\x73\72\45\x73\x20\x25\x73", true === $recursive ? "\55\x52" : '', $user, $group, escapeshellarg($file)); goto Ae088; a1de0: return $this->command; goto Ee931; b1866: $file = $this->getFile(); goto C285f; C285f: $recursive = $this->getRecursive(); goto A96b0; Ee931: } public function isSuccessful() : bool { goto aaf75; bcb72: $isSuccessful = empty($output); goto d2879; aaf75: $output = $this->getOutput(); goto bcb72; d2879: return $isSuccessful; goto F9772; F9772: } public function setUser(string $user) : void { $this->user = $user; } public function getUser() : ?string { return $this->user; } public function setGroup(string $group) : void { $this->group = $group; } public function getGroup() : ?string { return $this->group; } public function setFile(string $file) : void { $this->file = $file; } public function getFile() : ?string { return $this->file; } public function setRecursive($flag) : void { $this->recursive = (bool) $flag; } public function getRecursive() : bool { return $this->recursive; } }