/* Decoded by unphp.net */ getShell(); goto B0638; Aedad: $createHomeDirectory = $this->getCreateHomeDirectory(); goto d9829; c2b48: return $this->command; goto E0ae8; Cec1b: $userName = $this->getUserName(); goto C17ef; C17ef: $password = $this->getPassword(); goto F35d5; E6ba9: $group = $this->getGroup(); goto E1f4d; a4fb7: file_put_contents($tmpFile, $password); goto f9961; E1f4d: $groups = $this->getGroups(); goto a3961; f9961: chmod($tmpFile, 0400); goto B1b61; B1b61: $this->command = sprintf("/usr/bin/sudo /usr/sbin/useradd -p %s -%s %s %s -s %s -d %s %s %s", sprintf("$(/usr/bin/sudo /usr/bin/cat %s | /usr/bin/openssl passwd -6 -stdin)", $tmpFile), true === $createHomeDirectory ? "m" : "M", escapeshellarg($userName), false === empty($skeletonDirectory) ? sprintf("-k %s", escapeshellarg($skeletonDirectory)) : '', escapeshellarg($shell), escapeshellarg($homeDirectory), false === empty($group) ? sprintf("-g %s", escapeshellarg($group)) : '', $groups ? sprintf("-G %s", escapeshellarg(implode(",", $groups))) : ''); goto a46f7; B0638: $homeDirectory = $this->getHomeDirectory(); goto Aedad; a71f2: if ($this->command) { goto A7f84; } goto Cec1b; a46f7: A7f84: goto c2b48; a3961: $tmpFile = $this->getTmpFile(); goto a4fb7; d9829: $skeletonDirectory = $this->getSkeletonDirectory(); goto E6ba9; E0ae8: } public function isSuccessful(): bool { goto af0e6; Ab010: $isSuccessful = empty($output); goto cba47; cba47: return $isSuccessful; goto B6685; af0e6: $output = $this->getOutput(); goto Ab010; B6685: } public function setUserName(string $userName): void { $this->userName = $userName; } public function getUserName(): ?string { return $this->userName; } public function setPassword(string $password): void { $this->password = $password; } public function getPassword(): ?string { return $this->password; } public function setHomeDirectory(string $homeDirectory): void { $this->homeDirectory = $homeDirectory; } public function getHomeDirectory(): ?string { return $this->homeDirectory; } public function setSkeletonDirectory(string $skeletonDirectory): void { $this->skeletonDirectory = $skeletonDirectory; } public function getSkeletonDirectory(): ?string { return $this->skeletonDirectory; } public function setShell(string $shell): void { $this->shell = $shell; } public function getShell(): ?string { return $this->shell; } public function setGroups(array $groups): void { $this->groups = $groups; } public function getGroups(): array { return $this->groups; } public function setGroup(string $group): void { $this->group = $group; } public function getGroup(): ?string { return $this->group; } public function createHomeDirectory($flag): void { $this->createHomeDirectory = (bool)$flag; } public function getCreateHomeDirectory(): bool { return $this->createHomeDirectory; } private function getTmpFile(): ?string { goto Cf717; B56a4: $this->tmpFile = sprintf("/tmp/.clp_tmp_%s", sha1(uniqid(mt_rand(), true))); goto bd4ec; bd4ec: Da7bb: goto Ee304; Ee304: return $this->tmpFile; goto F2ede; Cf717: if (!(true === is_null($this->tmpFile))) { goto Da7bb; } goto B56a4; F2ede: } public function __destruct() { $tmpFile = $this->getTmpFile(); @unlink($tmpFile); } } ?>