攻防世界-web-高手进阶区016-web2

1.审计代码,写出逆向加密算法

<?php

$str='a1zLbgQsCESEIqRLwuQAyMwLyq2L5VwBxqGA3RQAyumZ0tmMvSGM2ZwB4tws';

$_ = base64_decode(strrev(str_rot13($str)));

$_o=NULL;

for($_0=0;$_0<strlen($_);$_0++){  

        $_c=substr($_,$_0,1);  

        $__=ord($_c)-1;  

        $_c=chr($__);  

        $_o=$_o.$_c;   

    }

 

echo strrev($_o);

?>

 

2.运行出结果

 

 

 

 


 

posted @ 2020-03-12 23:42  joker0xxx3  阅读(341)  评论(0编辑  收藏  举报