Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarfaizi2 committed Aug 6, 2019
1 parent 458bc4b commit d718a99
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/classes/IntegralObfuscator/IntegralObfuscator.php
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ private function buildHeader($handle): void

$decryptor = $this->escape(gzdeflate($this->generateDecryptor($this->stringDecryptor), 9));

$r = <<<PHP_CODE
$r = is_string($this->sheBang) ? "#!{$this->sheBang}\n" : "";
$r .= <<<PHP_CODE
<?php
/**
Expand Down Expand Up @@ -327,7 +328,7 @@ private function buildBody($handle): void
/*\0\ec*/eval({$this->stringDecryptor}("{$this->escape($this->encrypt($this->compiled, $mkey.$footerHash))}", \${$mkeyVar}.{$vars["footerHash"]}));//\0\ec
LAST_EVALUATION;

for ($i=0; $i < 5; $i++) {
for ($i=0; $i < 8; $i++) {
$lastEvaluation = <<<LAST_EVALUATION
/*\0\ec*/{$vars["time"]}==={$this->fx["time"]}() or clone new _{$this->clonerName};/*\0\ec*/
/*\0\ec*/eval({$this->stringDecryptor}("{$this->escape($this->encrypt($lastEvaluation, $this->kfk))}", "{$this->escape($this->kfk)}"));//\0\ec
Expand Down Expand Up @@ -391,7 +392,7 @@ public function writeSignalHandlers(): string
*/
private function writeCloner(): string
{
$this->clonerName = self::rstr(true, 5, self::UNPRINT_ELI_CHARS);
$this->clonerName = "\xff\xff\xff";
return "class _{$this->clonerName}{function __clone(){clone\$this;}};";
}

Expand Down

0 comments on commit d718a99

Please sign in to comment.