decode function: eval gzinflate base64_decode str_rot13

August 17th, 2006 by admin

es gibt ja so einige php scripte die aus irgendwelchen gründen "verschlüßelt" sind.

ein paar einfache methoden wären z.b.:

eval(gzinflate(base64_decode('FZ3HjuvQlUV...xyz')));

und

eval(gzinflate(str_rot13(base64_decode('FZ3HjuvQlUV...xyz'))));

das zu entschlüßeln ist eigentlich nicht schwer. meist reicht es schon "eval" mit "echo" oder "die" zu ersetzen.

aber in meinem fall war das ganze mit beiden methoden und recursiv verschlüßelt. tja und mit hand das ganze 100 mal durchgehen ist auch doof. also hab ich hier mal ne kleine funktion die das für euch macht.

ich denke damit sollte jeder klar kommen. wenn nicht einfach kommentar ablassen.

PHP:
  1. function decode($text_org)
  2. {
  3. $text = @gzinflate(str_rot13(base64_decode($text_org)));
  4. if($text==false)
  5. {
  6. $text = @gzinflate(base64_decode($text_org));
  7. }
  8. $start1 = '?><? eval(gzinflate(str_rot13(base64_decode(\'';
  9. $end1 = '\'))  )); ?><?';
  10. $strpos1 = strpos($text,$start1);
  11. if($strpos1===0)
  12. {
  13. $new_text = substr($text,strlen($start1),(strlen($end1))*-1);
  14. decode($new_text);
  15. }
  16. elseif($strpos1===false)
  17. {
  18. $start2 = '?><? eval(gzinflate(base64_decode(\'';
  19. $end2 = '\'))); ?><?';
  20. $strpos2 = strpos($text,$start2);
  21. if($strpos2===0)
  22. {
  23. $new_text = substr($text,strlen($start2),(strlen($end2))*-1);
  24. decode($new_text,$rec);
  25. }
  26. }
  27. if(strpos($text,'?><? eval')===false)
  28. die (substr($text,2,-2));
  29. }
  30.  
  31. //eval(gzinflate(base64_decode('FZ3HjuvQ.........')));
  32.  
  33. //decodiert den string
  34. decode('FZ3HjuvQ.........');

Posted in coding, php |

28 Responses

  1. Max Körbel Says:

    Kanst du mir vieleicht agen mit was das codiert wurde, war PHP 4:

    “; exit; } $s1=”KlJPU09aZU5VWVomQyYtX146OzY0X…JoMm”; include_once(’freelock.php’); freelock_run($s1);

    Vielen Dank im vorraus.

  2. admin Says:

    es kommt darauf an was in der funktion freelock_run zu finden ist. wär nett wenn du die auch noch mal postest.

  3. ritesh jain Says:

    i have a file which is encoded in eval(gzinflate(str_rot13(base64_decode, i want to decode the same can you please tell how to do decode the same using your script

    thanking you in advance

  4. admin Says:

    ok this os really easy:
    1. create a new php file.
    2. copy my decode function to it.
    3. now look in your script and copy the code “eval(gzinflate(str_rot13(base64_decode(…copy this code…))))” without the “eval(gzinflate(str_rot13(base64_decode(”
    often the code looks starts like this “FZ3HjuvQ….”
    this code must be passed to the decode function.
    4. so write under the decode function in the php file “decode(’…’);” now replace the 3 dots with the code from you script.
    5. view the php script in an webbrowser and have fun.

  5. d.ire Says:

    wie entschlüssel ich das ??

    ?>

  6. admin Says:

    super: wie entschlüssel ich das ??

    bloß keine arbeit selbst machen.

  7. Farasy Says:

    Vielen Dank für Dein Script. Anscheinend bist sehr begabt in PHP da dein Script für mich nur ein großes ? ist !

    Ich habe ebenfalls eine

  8. Farasy Says:

    eval(gzinflate(str_rot13(base64_decode
    kodierte Datei.Evtl. kannst Du mir weiterhelfen, da ich es mit Deinem Script nicht hinbekmmen habe.
    LG,Farasy.

  9. Sergio Bayarri Gausi Says:

    Use the shell, Luke!

    $ cp file.php decoded.php
    $ echo -n “Decoding” ; while grep eval decoded.php >/dev/null ; do sed ’s/eval/echo/’ decoded.php > decoded.php.new ; php decoded.php.new > decoded.php; echo -n “.”; done ; rm decoded.php.new ; echo ” Done :-)”

    Thanks for your post, it was helpful (and it helped a lot to create the shell-script alternate method!).

    Greetings from Spain.

  10. admin Says:

    Farasy was genau is dein problem?

  11. Farasy Says:

    Hast Du meine eMail bekommen ? Gruß

  12. admin Says:

    jo jo

  13. flux Says:

    Hello sir,
    I get an error while executing the script. Can you please provide a php file for it?

    The error

    Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in ******* on line 15
    Parse error: syntax error, unexpected ‘;’ in ******* on line 15

    Line 15 says

    $start1 = ‘?>

  14. Mike Says:

    hallo, erstmal vielen dank für deine hilfe.
    ich habe ein kleine kodierte script gekauft und von was ich gehört habe hat er ein callback funktion. ich habe damit keine probleme, lizenz habe ich dafür. was mich aber interessiert ist WAS von informationen gesendet wird.

    nochmals,vielen dank
    mike

  15. mike Says:

    ja, die eichtigste habe vergessen zu posten.

    bei mir kommt der gleiche fehlermeldung:

    [code]
    Warning: Unexpected character in input: ‘\’ (ASCII=92) state=1 in ******* on line 15
    Parse error: syntax error, unexpected ‘;’ in ******* on line 15

    Line 15 says

    $start1 = ‘?>[/code]

    mike

  16. admin Says:

    Warning: Unexpected character in input: ‘\’ (ASCII=92)

    sorry but i can not help you. maybe you pass false data to the function. the only solution is to send me the file.

    egb64@macosbrain.com

  17. Alex Says:

    Hi can you help me to decoded 1 file ? becouse went your script start i see only white window 0_o i can send the script by email

  18. macosbrain » eval gzinflate base64_decode str_rot13 part 2 Says:

    [...] the most of these protected scripts use the short version to open php. so i can not execute them. therefor i coded a little function that deals with the problem. but the old function just decrypt “gzinflate(str_rot13(base64_decode(…..)))” and “gzinflate(base64_decode(…))” that is crap an does not work on most scripts (see comments). now i coded a whole class that deals with this problem. the class can recursive “decrypt” these scripts and let you download the original source code. i tested the class with scripts that are protected with the following functions (of couse recursive). PLAIN TEXT PHP: [...]

  19. admin Says:

    please check the new version.

    and to all who get the (ASCII=92) error -> DO NOT EDIT THE SOURCE AND ASK FOR HELP.
    (also a comment on any line is a change)

  20. ange1b0y Says:

    decrypter web online

    http://www.passsport.*********

    EDIT: i try it and it does not work. it seem to be ONLY a base64 decrypter. please try:

    http://wordpress.macosbrain.com/2006/10/19/eval-gzinflate-base64_decode-str_rot13-part-2/

    the class should work very fine and easy.

  21. Decoding eval gzinflate base64_decode str_rot13 | Tangential Musings Says:

    [...] The following code snippet is a simple PHP class found at the German poston MacOSBrain entitled DecodeFunction: eval gzinflate base64_decode str_rot13 [...]

  22. admin Says:

    once again.
    I DO NOT SUPPORT ANY ILLEGAL ACTIONS.
    I DO NOT HELP YOU TO CRACK PROTECTIONS IN PHP SCRIPTS!

  23. Hector Gonzalo Says:

    Regarding posted #4,

    Admin, I tried the script, closing the php ?> because I undestand is missing.

    All I get is a white browser page.

    I don’t see where the decripted results are written?
    Thank you.
    Hector

  24. admin Says:

    the code should be written to your browser as highlighted php.

  25. Base64 & gzinflate le şifrelenmiş bir kodu kıracabilecek varmı? - Webmaster Forum & Webmaster Okulu Says:

    [...] eval gzinflate base64_decode | Tangential Musings » Blog Archive decode function: eval gzinflate base64_decode str_rot13 » macosbrain __________________ Sessiz Sedasız Ayrılmayı [...]

  26. Markus Says:

    Hallo!

    bei mir funktioniert dass immer noch nicht kannst du mir bitte dass

    eJxdUMsOgjAQ3O1DuanxHzzyA6QmBHswMTEB74YAURPFRlB/313aA7KHznSnnZ3WpllmDzZPT8ccFAAggACQwLUCX3vB
    AqJcEN7a6v6um5gwdle33PmzKOe0Vs/2/Cid5Z4CnTBK9S8aGWwRo0IOI1EykoYbJgJRQaEmUjI0FMVgUr/Kb8rEIK59bhjvObJRgQiapKd2emzXl
    Z8m1cN1GRH0TdfHrr2wrdHBn2y2M/8V4Qk/NqUfiQ

    entschlüsseln?

    DANKE!

  27. admin Says:

    wie zum geier soll ich das entschlüsseln? ich kann leider noch nicht hellsehen. bitte schick mir eine mail mit dem gesamten quellcode. dann werde ich sehen was ich tun kann.

  28. Markus Says:

    HAllo admin

    wie soll ich dir ein mail schicken?

    hast du skype,msn,icq oder sonst irgendetwas?

    dort kann ich mein problem dir besser erklären und genauer schicken!

    wenn du dein mail nicht veröffentlichen willst
    schreibe ich mal

    msn:******@hotmail.com
    skype:********

    danke nochmal

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.