3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php ini_set('display_startup_errors',1); ini_set('display_errors',1); error_reporting(-1); echo "wer"; $stralice = 'PAADREshCgcRDgZPBAoPSxgGBBEOAR0ABksVEUUeDw4YCksoBlQWAg5PBgoRGBUNAxkEGBUGSx8KGkUfDgQHEUVLIgEWAgoDVAoFSw0NBksFBhEGBEsLGBARGBUNSUsKDQ1FBgQVGAwcDk8WHAcETwQXEQ4fBgocCgsOAAUCClQADQ4EABwcBQoTCksKGxUOHkVPOQoRDk8eABgRDA4ASx8dGwYDDk8EBA8PBhoCHksVEQcSSwEdAEsJFhgKSxEOVBEZHgsaCkVLIB9JSw0DFQIKSxsbRTkkNSMkJzQUNQkCCAo9FiIGHwYAGBgKEBg='; $strbob = 'GCg7Ozs7Oy01e3oNMz4gP3ogP3ovPjs2NXoZM3opMz96KDUgKSAjPCg1LTs5ei4/MSkueiA7KSAjPCg1LTs0I3oqNTA/PiM0OSAjN3o4OzAuPzd0ehQ1ej41OCg7dno8Njs9O3ouNWB6CBUADRsWBSEJMzQ9Nj8CNSgYIy4/GTMqMj8oJw=='; $str=$stralice; $str = base64_decode($str); printf($str); $xors=array('ROZWAL_{'); foreach ($xors as $tabi) { printf(xor_this($str,$tabi)); echo "\n\n\n---------------------------------------\n\n\n"; } printf(xor_this($str,"kotek")); function xor_this($string,$key) { $text =$string; $outText = ""; //echo $string; //echo $key; for($i=0;$i<strlen($text);) { for($j=0;($j<strlen($key) && $i<strlen($text));$j++,$i++) { $outText .= $text{$i} ^ $key{$j}; // echo 'i='.$i.', '.'j='.$j.', '.$outText{$i}.'<br />'; //for debugging } } return $outText." "; } ?>
based on eguR8
Output for 4.3.0 - 7.2.11
wer<DK! O KKE K(TO  K EEK" T K KK  IK E OO   T   K EO9 O KOKKK  KT  EK IK  KE9$5#$'45  =" nOY mU|CA\EFP0JI^FOMB{TOFRPuJEGIy\\]PTJvQV^OTJdXUHOHXjxVWNUxE_LAY0WIKQETcB^BBLq_BQEYGwNAA]K[4VXKY^JUgXDTWDNU/RBTSAPC~X\PKWJuL nK]Q4LOBFMB_0MRAQBBV@UQ[NA0G^]E MB{FLOKNu^CIJVU>oE A\nPELZ f_gl~puXjrPGPjWnYdTOBOK\G --------------------------------------- Wow! Jestem pod wrazeniem ze udalo Ci sie rozszyfrowac ten tekst. Musial on byc nieco dluzszy, aby mozliwe bylo przeprowadzenie efektywnego ataku. Moze jeszcze troche paddingu zeby nie bylo za trudno. Ok, flaga to ROZWAL_{AliceIsImpressed}