Skip to content

Instantly share code, notes, and snippets.

@avramovic
Created September 28, 2021 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avramovic/280f39717560277013bb3c21c3acd387 to your computer and use it in GitHub Desktop.
Save avramovic/280f39717560277013bb3c21c3acd387 to your computer and use it in GitHub Desktop.
Config encryption tool for GumPress
<?php function cr($yCDd6) { return sprintf("\x25\x75", crc32($yCDd6)); } function dh($yCDd6) { return dechex($yCDd6); } function r($yCDd6) { return str_rot13($yCDd6); } function t($yCDd6) { return trim($yCDd6, "\75"); } function b($yCDd6) { return base64_encode($yCDd6); } function j($yCDd6) { return json_encode($yCDd6); } function g($yCDd6) { return gzdeflate($yCDd6, 9); } if (php_sapi_name() == "\143\154\x69") { goto cMbG0; } die("\116\157\40\144\x6f\x67\x73\40\x61\154\x6c\x6f\167\145\x64\x21"); goto Cy3EX; cMbG0: $TcxzK = $argv[1]; $q2oF1 = $argv[2]; if (!empty($TcxzK)) { goto uFqpC; } print "\105\122\x52\x4f\122\x3a\40\x41\x72\147\x75\155\x65\x6e\x74\x20\x31\40\151\x73\x20\162\145\x71\165\151\x72\x65\x64\41" . PHP_EOL; exit(1); uFqpC: if (!empty($q2oF1)) { goto X2Z_I; } print "\x45\122\x52\117\x52\x3a\x20\x41\x72\x67\x75\155\145\156\x74\x20\x32\40\x69\x73\x20\x72\145\x71\165\x69\x72\x65\144\41" . PHP_EOL; exit(1); X2Z_I: if ($YhU_p = json_decode($q2oF1, true)) { goto xY9MR; } print "\x45\122\122\x4f\122\x3a\x20\103\157\x75\154\144\x6e\x27\x74\x20\x70\141\x72\x73\x65\40\x63\157\x6e\146\x69\x67\x2e\x20\101\x72\147\165\x6d\x65\x6e\164\x20\62\x20\151\x73\x20\145\x78\x70\145\143\x74\145\144\x20\164\x6f\x20\x62\145\40\141\x20\x4a\x53\x4f\116\40\145\156\143\157\144\x65\x64\40\x61\x72\x72\x61\x79\x21" . PHP_EOL; exit(2); xY9MR: if (is_array($YhU_p)) { goto CMYfD; } print "\x45\122\122\x4f\x52\72\x20\x43\x6f\x75\154\x64\156\x27\x74\40\x70\x61\x72\163\145\x20\143\x6f\x6e\146\x69\147\x2e\x20\x41\x72\x67\x75\155\145\156\164\40\x32\x20\151\163\x20\x65\x78\x70\x65\x63\164\145\x64\40\164\157\40\142\145\40\141\40\152\x73\157\x6e\x20\x65\x6e\143\x6f\144\x65\x64\40\x41\x52\122\101\x59\x21" . PHP_EOL; exit(3); CMYfD: $goxoi = t(r(b(g(r(j($YhU_p)))))); $MDtEH = dh(cr($goxoi . $TcxzK)); echo $goxoi . $MDtEH . PHP_EOL; exit(0); Cy3EX:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment