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/DeleteOldFilesRecursiveCommand.php
PHP · 1,363 bytes<?php
namespace App\System\Command; use App\System\Command; class DeleteOldFilesRecursiveCommand extends Command { private ?string $directory = null; private int $retentionPeriod = 0; public function getCommand() : string { goto c9103; Ea82c: f698b: goto c940e; Cc9f4: $directory = $this->getDirectory(); goto Bd9b5; c9103: if ($this->command) { goto f698b; } goto Cc9f4; c1f1c: $this->command = sprintf("\x2f\165\x73\x72\x2f\142\x69\156\x2f\x73\x75\x64\x6f\x20\x2f\165\163\x72\x2f\x62\x69\x6e\x2f\146\151\156\144\x20\45\163\x20\x2d\x6d\151\156\144\145\x70\x74\150\40\x31\40\x2d\164\171\x70\x65\x20\x64\40\x2d\155\164\151\155\145\40\53\45\x73\40\55\145\170\145\x63\x20\x72\x6d\40\x2d\162\146\x20\x7b\x7d\40\x5c\73\x20\x3e\40\57\x64\145\166\57\x6e\165\154\x6c\x20\x32\x3e\x26\x31", rtrim($directory, "\57"), $retentionPeriod); goto Ea82c; c940e: return $this->command; goto e0656; Bd9b5: $retentionPeriod = $this->getRetentionPeriod(); goto c1f1c; e0656: } public function isSuccessful() : bool { return true; } public function setDirectory(string $directory) : void { $this->directory = $directory; } public function getDirectory() : ?string { return $this->directory; } public function getRetentionPeriod() : int { return $this->retentionPeriod; } public function setRetentionPeriod(int $retentionPeriod) : void { $this->retentionPeriod = $retentionPeriod; } }