0

i am a little bit cofused about three ways encoding of php codes (base64 & str_rot13 & gzinflate!)specially for str_rot13 and gzinflate ways.
the latest php file after encoding should be like this :

<?php
eval(gzinflate(str_rot13(base64_decode('Your Encoded string'))));
?>

for example this is my php codes:

<?php
echo('This Is A PHP Code');
?>

learn me step by step how to encode these php codes?
i could n't find any online encoders about this, just many decoders!
i am looking for the fastest ways, because i want to use these encoding method always.
i think the step 1 and 2 are like below :
1- convert that php codes to this :

?><?php
echo('This Is A PHP Code');
?><?php

2-encode codes in step 1 form here :
base_64 encoder
3-?????? help me

really appreciate for attention

4

3 に答える 3

1

以下は、eval() で動作するサンプル PHP コードです。

<?php // sample answer by chathurya
/*
$string  = '<?php echo \'<p>Hello World</p>\'; ?> ';
*/

$string  = ' echo \'<p>Hello World</p>\'; ?> ';
$encoded = base64_encode(str_rot13(gzdeflate($string)));
$uncompressed = gzinflate(str_rot13(base64_decode($encoded)));

eval($uncompressed);
?>

注 : エンコードする必要がある文字列に含まれていてはなりません

于 2013-12-05T11:21:08.693 に答える