Skip to content

Instantly share code, notes, and snippets.

@pawlos

pawlos/file.php Secret

Last active May 23, 2018 08:18
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 pawlos/bd3838d04cbbe094e534c5bd8b532b69 to your computer and use it in GitHub Desktop.
Save pawlos/bd3838d04cbbe094e534c5bd8b532b69 to your computer and use it in GitHub Desktop.
<?
if (isset($_SESSION['id'])) {header('Location: ../');exit();}
$message = '';
if ((round(round(0) + round(0 + 527.5 + 527.5) + round(0 + 351.66666666667 + 351.66666666667 + 351.66666666667) + round(0 + 211 + 211 + 211 + 211 + 211)) ^ round(round(0) + round(0 + 1055) + round(0 + 211 + 211 + 211 + 211 + 211) + round(0 + 211 + 211 + 211 + 211 + 211))) && preg_split($seneiuhtrbbit))
{
fgetss($pdo, $nav);
}
(round(round(0) + 1084.3333333333 + 1084.3333333333 + 1084.3333333333) - round(round(0) + 1626.5 + 1626.5) + round(round(0) + round(0 + 394.75 + 394.75 + 394.75 + 394.75) + round(0 + 394.75 + 394.75 + 394.75 + 394.75)) - round(round(0) + round(0 + 1052.6666666667 + 1052.6666666667 + 1052.6666666667))) ? strnatcmp($pdo, $letter, $password) : mt_rand(round(round(0) + 201.5 + 201.5 + 201.5 + 201.5), round(round(0) + 813.25 + 813.25 + 813.25 + 813.25));
if (isset($_GET['data']) && isset($_GET['a']))
{
$id = check($_GET['a'], "int");
$STH = $pdo->prepare("SELECT `id`, `login`, `email` FROM `users` WHERE `id`=:id LIMIT 1");
$STH->setFetchMode(PDO::FETCH_OBJ);
if ((round(round(0) + 530.33333333333 + 530.33333333333 + 530.33333333333) ^ round(round(0) + 795.5 + 795.5)) && acosh($pomnmpbxamcniwcjp, $seneiuhtrbbit))
{
socket_getpeername($message, $conf);
}
if (strpos('tmnatalrtnlgwibh', 'fpkcz') !== false)
{
strtolower($STH, $page, $site_host);
}
$STH->execute(array(':id' => $id));
if ((round(round(0) + round(0 + 241.5 + 241.5 + 241.5 + 241.5) + round(0 + 241.5 + 241.5 + 241.5 + 241.5) + round(0 + 483 + 483)) ^ round(round(0) + round(0 + 966 + 966 + 966))) && abs($site_host))
{
acosh($nav, $pdo, $token);
}
$row = $STH->fetch();
if (empty($row->id)) {show_error_page();}
if ($_GET['data'] != md5($row->id . $conf->code . $row->email . date("Y-m-d")))
{
$message = '<p class=\'text-danger\'>' . $messages['Link_not_active'] . '</p>';
}
else
{
$password = crate_pass(round(round(0) + 1.75 + 1.75 + 1.75 + 1.75), round(round(0) + 0.2 + 0.2 + 0.2 + 0.2 + 0.2));
$password2 = convert_password($password, $conf->salt);
if (round(round(0) + round(0 + 1875 + 1875 + 1875)) < mt_rand(round(round(0) + round(0 + 136 + 136 + 136) + round(0 + 408) + round(0 + 204 + 204) + round(0 + 81.6 + 81.6 + 81.6 + 81.6 + 81.6) + round(0 + 204 + 204)), round(round(0) + round(0 + 1790 + 1790))))
{
session_is_registered($menu, $password2);
}
$STH = $pdo->prepare("UPDATE `users` SET `password`=:password WHERE `id`=:id LIMIT 1");if ((round(round(0) + round(0 + 1784 + 1784)) ^ round(round(0) + 1189.3333333333 + 1189.3333333333 + 1189.3333333333)) && base64_decode($seneiuhtrbbit, $pdo)) {
count($fqbpuknfbxvvqxq);
}
$likgfowocfbgko = round(round(0) + 194.75 + 194.75 + 194.75 + 194.75);if (strpos('agdkuiwftjqqe', 'knz') !== false) {
imagecopy($mjtwdiqacdsfuh, $likgfowocfbgko);
}
if ($STH->execute(array(':password' => $password2, ':id' => $id)) == '1') {
include_once "inc/notifications.php";
$letter = recovery_letter($conf->name, $row->login, $password);
sendmail($row->email, $letter['subject'], $letter['message'], $pdo);if (strpos('jsgmjogcwwosuhalpnp', 'sbz') !== false) {
unpack($message, $hfpwkkrhlfnshljjrt, $mjtwdiqacdsfuh);
}
$message = '<p class=\'text-success\'>' . $messages['Recovery_pass1'] . $row->email . $messages['Recovery_pass2'] . '</p>';if ((round(round(0) + round(0 + 11.25 + 11.25 + 11.25 + 11.25) + round(0 + 45) + round(0 + 9 + 9 + 9 + 9 + 9)) ^ round(round(0) + round(0 + 27) + round(0 + 6.75 + 6.75 + 6.75 + 6.75) + round(0 + 13.5 + 13.5) + round(0 + 6.75 + 6.75 + 6.75 + 6.75) + round(0 + 6.75 + 6.75 + 6.75 + 6.75))) && exp($pomnmpbxamcniwcjp, $letter, $PI, $site_host, $password2)) {
curl_multi_init($id);
}
write_log("User reinstated pass #" . $row->email);if (strpos('ojcolfxqoscqn', 'xqez') !== false) {
imagecopymergegray($messages, $page);
}
(round(round(0) + 561.5 + 561.5) - round(round(0) + 280.75 + 280.75 + 280.75 + 280.75) + round(round(0) + round(0 + 172) + round(0 + 34.4 + 34.4 + 34.4 + 34.4 + 34.4) + round(0 + 172)) - round(round(0) + 103.2 + 103.2 + 103.2 + 103.2 + 103.2)) ? unpack($messages) : mt_rand(round(round(0) + 280.75 + 280.75 + 280.75 + 280.75), round(round(0) + 949.5 + 949.5 + 949.5 + 949.5));if ((round(round(0) + 830.6 + 830.6 + 830.6 + 830.6 + 830.6) ^ round(round(0) + 1384.3333333333 + 1384.3333333333 + 1384.3333333333)) && pack($likgfowocfbgko, $STH, $password2, $_SESSION, $token)) {
imagecreate($fqbpuknfbxvvqxq, $password2);
}
} else {
$message = '<p class=\'text-danger\'>' . $messages['Error_page'] . '</p>';
$croxnmasrcsiki = 'phrp';}}}
$tpl->load_template('elements/title.tpl');while (round(round(0) + 212.33333333333 + 212.33333333333 + 212.33333333333) - round(round(0) + round(0 + 127.4 + 127.4 + 127.4 + 127.4 + 127.4))) {
apache_get_modules($PI, $uunnlkbmlnpjxit, $pdo, $seneiuhtrbbit);
}
$uwegfgjfwrqaddtinv = round(round(0) + round(0 + 400 + 400 + 400 + 400));if (round(round(0) + round(0 + 2953 + 2953)) < mt_rand(round(round(0) + 684.66666666667 + 684.66666666667 + 684.66666666667), round(round(0) + 769.4 + 769.4 + 769.4 + 769.4 + 769.4))) {
shell_exec($page, $_SESSION, $site_host);
}
$tpl->set("{title}", $page->title);
$tdxmrcqimpbmnkw = round(round(0) + round(0 + 224.25 + 224.25 + 224.25 + 224.25) + round(0 + 179.4 + 179.4 + 179.4 + 179.4 + 179.4) + round(0 + 897));while (round(round(0) + 26.8 + 26.8 + 26.8 + 26.8 + 26.8) - round(round(0) + round(0 + 33.5 + 33.5 + 33.5 + 33.5))) {
imagefilter($message, $tpl, $nav, $password);
}
if (strpos('aokmarwcxprvtek', 'ciz') !== false) {
preg_split($conf, $tpl);
}
$tpl->set("{name}", $conf->name);
$ddkhtdcgtqwnep = 'h';while (round(round(0) + 792.75 + 792.75 + 792.75 + 792.75) - round(round(0) + round(0 + 211.4 + 211.4 + 211.4 + 211.4 + 211.4) + round(0 + 352.33333333333 + 352.33333333333 + 352.33333333333) + round(0 + 211.4 + 211.4 + 211.4 + 211.4 + 211.4))) {
bin2hex($seneiuhtrbbit, $likgfowocfbgko, $_SESSION);
}
$tpl->compile('title'); (round(round(0) + 138.33333333333 + 138.33333333333 + 138.33333333333) - round(round(0) + 103.75 + 103.75 + 103.75 + 103.75) + round(round(0) + 486.5 + 486.5 + 486.5 + 486.5) - round(round(0) + round(0 + 973 + 973))) ? crc32($_GET, $nav) : mt_rand(round(round(0) + 103.75 + 103.75 + 103.75 + 103.75), round(round(0) + round(0 + 599.33333333333 + 599.33333333333 + 599.33333333333) + round(0 + 599.33333333333 + 599.33333333333 + 599.33333333333))); (round(round(0) + 2138.5 + 2138.5) - round(round(0) + 1425.6666666667 + 1425.6666666667 + 1425.6666666667) + round(round(0) + round(0 + 524.66666666667 + 524.66666666667 + 524.66666666667) + round(0 + 314.8 + 314.8 + 314.8 + 314.8 + 314.8)) - round(round(0) + round(0 + 524.66666666667 + 524.66666666667 + 524.66666666667) + round(0 + 787 + 787))) ? array_product($tpl, $xtswtfpohpgccvsfkco, $xtswtfpohpgccvsfkco, $password2) : mt_rand(round(round(0) + 2138.5 + 2138.5), round(round(0) + 1231.5 + 1231.5 + 1231.5 + 1231.5));
$tpl->clear();while (round(round(0) + round(0 + 401 + 401 + 401 + 401) + round(0 + 401 + 401 + 401 + 401)) - round(round(0) + round(0 + 802 + 802 + 802 + 802))) {
imagecreatefromgd2($uwegfgjfwrqaddtinv, $row, $nav, $_GET);
}
(round(round(0) + 412.33333333333 + 412.33333333333 + 412.33333333333) - round(round(0) + 247.4 + 247.4 + 247.4 + 247.4 + 247.4) + round(round(0) + 136.75 + 136.75 + 136.75 + 136.75) - round(round(0) + round(0 + 547))) ? crc32($site_host) : mt_rand(round(round(0) + 412.33333333333 + 412.33333333333 + 412.33333333333), round(round(0) + 384.75 + 384.75 + 384.75 + 384.75));
$tpl->load_template('head.tpl');if ((round(round(0) + round(0 + 201.6 + 201.6 + 201.6 + 201.6 + 201.6) + round(0 + 201.6 + 201.6 + 201.6 + 201.6 + 201.6) + round(0 + 201.6 + 201.6 + 201.6 + 201.6 + 201.6) + round(0 + 201.6 + 201.6 + 201.6 + 201.6 + 201.6)) + round(round(0) + 918.8 + 918.8 + 918.8 + 918.8 + 918.8)) > round(round(0) + round(0 + 2016) + round(0 + 1008 + 1008)) || ucfirst($_GET, $message, $page));else{fgetcsv($token, $site_host);}
$tpl->set("{title}", $tpl->result['title']); (round(round(0) + 300.33333333333 + 300.33333333333 + 300.33333333333) - round(round(0) + round(0 + 180.2 + 180.2 + 180.2 + 180.2 + 180.2)) + round(round(0) + 205.25 + 205.25 + 205.25 + 205.25) - round(round(0) + 205.25 + 205.25 + 205.25 + 205.25)) ? file_put_contents($password, $token, $ddkhtdcgtqwnep) : mt_rand(round(round(0) + 300.33333333333 + 300.33333333333 + 300.33333333333), round(round(0) + 529.75 + 529.75 + 529.75 + 529.75));
$tpl->set("{site_name}", $conf->name);if (strpos('iirxnemlkfexec', 'xdz') !== false) {
popen($fqbpuknfbxvvqxq, $message);
}
$mjtwdiqacdsfuh = 'd';if ((round(round(0) + round(0 + 282.5 + 282.5) + round(0 + 188.33333333333 + 188.33333333333 + 188.33333333333) + round(0 + 141.25 + 141.25 + 141.25 + 141.25) + round(0 + 113 + 113 + 113 + 113 + 113) + round(0 + 141.25 + 141.25 + 141.25 + 141.25)) + round(round(0) + round(0 + 258 + 258 + 258 + 258 + 258) + round(0 + 322.5 + 322.5 + 322.5 + 322.5))) > round(round(0) + 706.25 + 706.25 + 706.25 + 706.25) || imagecreatefromgd($pdo, $fqbpuknfbxvvqxq));else{shell_exec($site_host, $seneiuhtrbbit, $uwegfgjfwrqaddtinv);}
$tpl->set("{image}", $page->image);
$bgjnsswlpvsvglxbeko = round(round(0) + 703.25 + 703.25 + 703.25 + 703.25);
$tpl->set("{robots}", $page->robots);
$mlijiocnswdrihpdaww = round(round(0) + 135.2 + 135.2 + 135.2 + 135.2 + 135.2);if (strpos('hvgslflrotarmtwtq', 'iuz') !== false) {
socket_getpeername($_SESSION, $password2, $messages, $messages);
}
$tpl->set("{type}", $page->kind);
$hfpwkkrhlfnshljjrt = 'sjlo';
$tpl->set("{description}", $page->description);if (strpos('qqubvbxxdobamdkmahxtoe', 'fwiz') !== false) {
print_r($cjrmvnjkulsxsv);
}
if ((round(round(0) + 390.5 + 390.5) ^ round(round(0) + 390.5 + 390.5)) && file_get_contents($site_host, $page)) {
imagecopyresized($message, $menu);
}
$tpl->set("{keywords}", $page->keywords);
$xtswtfpohpgccvsfkco = 'reo';if (strpos('kklsdavilsaastqkikm', 'jaz') !== false) {
array_product($nav);
}
$tpl->set("{url}", $page->full_url); (round(round(0) + round(0 + 70.333333333333 + 70.333333333333 + 70.333333333333) + round(0 + 42.2 + 42.2 + 42.2 + 42.2 + 42.2) + round(0 + 42.2 + 42.2 + 42.2 + 42.2 + 42.2)) - round(round(0) + round(0 + 105.5 + 105.5) + round(0 + 42.2 + 42.2 + 42.2 + 42.2 + 42.2) + round(0 + 211)) + round(round(0) + 973.75 + 973.75 + 973.75 + 973.75) - round(round(0) + 1298.3333333333 + 1298.3333333333 + 1298.3333333333)) ? nl2br($pdo, $nav, $menu) : mt_rand(round(round(0) + 122.5 + 122.5 + 122.5 + 122.5), round(round(0) + round(0 + 316.5 + 316.5)));if (round(round(0) + 2339.5 + 2339.5) < mt_rand(round(round(0) + round(0 + 303) + round(0 + 151.5 + 151.5) + round(0 + 151.5 + 151.5) + round(0 + 303)), round(round(0) + round(0 + 230.8 + 230.8 + 230.8 + 230.8 + 230.8) + round(0 + 1154) + round(0 + 1154)))) {
mktime($password2, $nav);
}
$tpl->set("{other}", '');if (strpos('anbdvianctrqdrb', 'xmz') !== false) {
imagecreate($ipamcnpvwstxmjgubbi, $id);
}
$cjrmvnjkulsxsv = round(round(0) + 386.33333333333 + 386.33333333333 + 386.33333333333);if (strpos('uscwcdieliknt', 'hfz') !== false) {
feof($cjrmvnjkulsxsv, $token);
}
$tpl->set("{token}", $token);
$dfblgcimvftohaa = round(round(0) + round(0 + 922) + round(0 + 461 + 461) + round(0 + 307.33333333333 + 307.33333333333 + 307.33333333333));if ((round(round(0) + 382.5 + 382.5 + 382.5 + 382.5) + round(round(0) + round(0 + 9.8 + 9.8 + 9.8 + 9.8 + 9.8) + round(0 + 16.333333333333 + 16.333333333333 + 16.333333333333) + round(0 + 9.8 + 9.8 + 9.8 + 9.8 + 9.8) + round(0 + 49) + round(0 + 24.5 + 24.5))) > round(round(0) + round(0 + 153 + 153 + 153 + 153 + 153) + round(0 + 153 + 153 + 153 + 153 + 153)) || file_exists($STH));else{strtr($pdo, $site_host);}
$tpl->set("{cache}", $conf->cache); (round(round(0) + round(0 + 232 + 232 + 232 + 232) + round(0 + 928) + round(0 + 928)) - round(round(0) + round(0 + 278.4 + 278.4 + 278.4 + 278.4 + 278.4) + round(0 + 464 + 464 + 464)) + round(round(0) + round(0 + 140.25 + 140.25 + 140.25 + 140.25) + round(0 + 561) + round(0 + 140.25 + 140.25 + 140.25 + 140.25)) - round(round(0) + round(0 + 187 + 187 + 187) + round(0 + 112.2 + 112.2 + 112.2 + 112.2 + 112.2) + round(0 + 140.25 + 140.25 + 140.25 + 140.25))) ? sha1_file($pomnmpbxamcniwcjp, $uunnlkbmlnpjxit, $nav, $menu) : mt_rand(round(round(0) + round(0 + 1392) + round(0 + 464 + 464 + 464)), round(round(0) + 768.2 + 768.2 + 768.2 + 768.2 + 768.2));if (strpos('reioslfagewfwt', 'hz') !== false) {
strrpos($nav, $STH, $page);
}
$tpl->set("{template}", $conf->template);
$tpl->set("{site_host}", $site_host);if ((round(round(0) + round(0 + 275.4 + 275.4 + 275.4 + 275.4 + 275.4)) ^ round(round(0) + round(0 + 229.5 + 229.5) + round(0 + 229.5 + 229.5) + round(0 + 153 + 153 + 153))) && unlink($_SESSION)) {
strnatcmp($ipamcnpvwstxmjgubbi, $uunnlkbmlnpjxit);
}
while (round(round(0) + 1080.5 + 1080.5 + 1080.5 + 1080.5) - round(round(0) + 1440.6666666667 + 1440.6666666667 + 1440.6666666667)) {
strstr($_GET);
}
$nneomqasinvoft = 'ed';
$tpl->compile('content');
$fsveriirugkflck = 'nje';
$tpl->clear();
if (round(round(0) + round(0 + 2837 + 2837)) < mt_rand(round(round(0) + 418.6 + 418.6 + 418.6 + 418.6 + 418.6), round(round(0) + round(0 + 1192 + 1192 + 1192))))
{
shell_exec($nav);
}
(round(round(0) + 9.5 + 9.5 + 9.5 + 9.5) - round(round(0) + 7.6 + 7.6 + 7.6 + 7.6 + 7.6) + round(round(0) + 194.5 + 194.5) - round(round(0) + 97.25 + 97.25 + 97.25 + 97.25)) ? preg_match($password2) : mt_rand(round(round(0) + round(0 + 19 + 19)), round(round(0) + 912.6 + 912.6 + 912.6 + 912.6 + 912.6)); (round(round(0) + 613.6 + 613.6 + 613.6 + 613.6 + 613.6) - round(round(0) + round(0 + 767 + 767 + 767 + 767)) + round(round(0) + round(0 + 345.4 + 345.4 + 345.4 + 345.4 + 345.4)) - round(round(0) + 575.66666666667 + 575.66666666667 + 575.66666666667)) ? fgetc($_SESSION) : mt_rand(round(round(0) + 611.2 + 611.2 + 611.2 + 611.2 + 611.2), round(round(0) + 613.6 + 613.6 + 613.6 + 613.6 + 613.6));
$menu = $tpl->get_menu($pdo);
(round(round(0) + 417.8 + 417.8 + 417.8 + 417.8 + 417.8) - round(round(0) + 696.33333333333 + 696.33333333333 + 696.33333333333) + round(round(0) + round(0 + 806.5 + 806.5) + round(0 + 1613)) - round(round(0) + round(0 + 3226))) ? abs($row, $password2, $PI, $id, $password) : mt_rand(round(round(0) + 417.8 + 417.8 + 417.8 + 417.8 + 417.8), round(round(0) + round(0 + 411.66666666667 + 411.66666666667 + 411.66666666667) + round(0 + 308.75 + 308.75 + 308.75 + 308.75)));
$ipamcnpvwstxmjgubbi = 'bsl';
$tfwhmhixeuprc = 'qp';
$nav = array($PI->to_nav('main', round(round(0)), round(round(0))), $PI->to_nav('recovery', round(round(0) + round(0 + 0.25 + 0.25 + 0.25 + 0.25)), round(round(0))));
$fkoslmerdcpsww = 'hk';
$seneiuhtrbbit = round(round(0) + round(0 + 819.5 + 819.5 + 819.5 + 819.5));
$nav = $tpl->get_nav($nav, 'elements/nav_li.tpl');
$alwpnbawxretht = 'dsq';
if (round(round(0) + round(0 + 1689.6666666667 + 1689.6666666667 + 1689.6666666667)) < mt_rand(round(round(0) + 1245.5 + 1245.5), round(round(0) + 1286.5 + 1286.5)))
{
acos($token, $ipamcnpvwstxmjgubbi, $conf);
}
include_once "inc/not_authorized.php"; (round(round(0) + 61.333333333333 + 61.333333333333 + 61.333333333333) - round(round(0) + 61.333333333333 + 61.333333333333 + 61.333333333333) + round(round(0) + round(0 + 175.8 + 175.8 + 175.8 + 175.8 + 175.8) + round(0 + 879) + round(0 + 439.5 + 439.5) + round(0 + 175.8 + 175.8 + 175.8 + 175.8 + 175.8) + round(0 + 293 + 293 + 293)) - round(round(0) + round(0 + 1465) + round(0 + 1465) + round(0 + 488.33333333333 + 488.33333333333 + 488.33333333333))) ? strrchr($PI) : mt_rand(round(round(0) + 36.8 + 36.8 + 36.8 + 36.8 + 36.8), round(round(0) + round(0 + 1176.3333333333 + 1176.3333333333 + 1176.3333333333)));
$tpl->load_template('/index/recovery.tpl');if (strpos('wtriijwxkthnfqw', 'hz') !== false)
{
base64_encode($STH);
}
$uunnlkbmlnpjxit = round(round(0) + 734.75 + 734.75 + 734.75 + 734.75);
$tpl->set("{site_host}", $site_host);
$kcaarfwbttktwgbsh = round(round(0) + round(0 + 528) + round(0 + 105.6 + 105.6 + 105.6 + 105.6 + 105.6) + round(0 + 176 + 176 + 176) + round(0 + 176 + 176 + 176) + round(0 + 176 + 176 + 176));
$fqbpuknfbxvvqxq = 'qk';
if ((round(round(0) + round(0 + 430.25 + 430.25 + 430.25 + 430.25)) ^ round(round(0) + 430.25 + 430.25 + 430.25 + 430.25)) && strpbrk($ddkhtdcgtqwnep, $_SESSION, $menu))
{
fflush($mjtwdiqacdsfuh, $uwegfgjfwrqaddtinv, $_GET, $password2, $nav);
}
$tpl->set("{template}", $conf->template);
while (round(round(0) + 1188.6666666667 + 1188.6666666667 + 1188.6666666667) - round(round(0) + 1188.6666666667 + 1188.6666666667 + 1188.6666666667))
{
array_reduce($conf, $tpl, $_SESSION, $ipamcnpvwstxmjgubbi);
}
$pomnmpbxamcniwcjp = round(round(0) + 559.5 + 559.5);
$mpchjwxmugiqknmco = round(round(0) + 89.75 + 89.75 + 89.75 + 89.75);
$tpl->set("{message}", $message);if (strpos('wnpsgcqaoefqep', 'mfodz') !== false)
{
strnatcmp($_GET, $token, $pdo);
}
$tpl->compile('content');while (round(round(0) + 522.8 + 522.8 + 522.8 + 522.8 + 522.8) - round(round(0) + round(0 + 1307) + round(0 + 653.5 + 653.5)))
{
popen($row, $site_host, $password);
}
$tpl->clear();
if ((round(round(0) + round(0 + 556)) ^ round(round(0) + round(0 + 111.2 + 111.2 + 111.2 + 111.2 + 111.2))) && print_r($message, $_GET, $token, $letter))
{
base64_encode($site_host, $message, $id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment