1. <?php
    2. $miwen="a1zLbgQsCESEIqRLwuQAyMwLyq2L5VwBxqGA3RQAyumZ0tmMvSGM2ZwB4tws";
    3. function encode($str){
    4. $_o=strrev($str);
    5. // echo $_o;
    6. for($_0=0;$_0<strlen($_o);$_0++){
    7. $_c=substr($_o,$_0,1);
    8. $__=ord($_c)+1;
    9. $_c=chr($__);
    10. $_=$_.$_c;
    11. }
    12. return str_rot13(strrev(base64_encode($_)));
    13. }
    14. highlight_file(__FILE__);
    15. /*
    16. 逆向加密算法,解密$miwen就是flag
    17. */
    18. ?>

    很简单的算法题
    将传进去的字符进行一次reverse,取每一位ascii码+1,最后进行一次ROT13,reverse,base64,得到flag
    那么只需要反过来就行了

    1. reverse(ascii(base64_decode(reverse(ROT_13($flag)))))