fork download
  1. <?php
  2.  
  3. FLAG="abcd"
  4.  
  5. function encode($value)
  6. {
  7. $data = '';
  8. for($i = 0; $i < strlen($value); $i++){
  9. $temp = ord(substr($value, i, 1)) ^ 125;
  10. while(strlen($temp) < 2){
  11. $temp = '0' . $temp;
  12. }
  13. $data = (string)$data . $temp;
  14. }
  15. return bin2hex(base64_decode($data));
  16. }
  17. printf("flag{%s}", strrev(encode(FLAG)));
  18. ?>
Runtime error #stdin #stdout #stderr 0s 82880KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected '=' in /home/ptG6oo/prog.php on line 3