1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[HELP] decoding a php script for a school initiative

Discussion in 'PHP & Perl' started by xxpaigexx, Feb 10, 2013.

  1. xxpaigexx

    xxpaigexx Registered Member

    Joined:
    Apr 6, 2009
    Messages:
    83
    Likes Received:
    27
    Hi, my school wanted to host our very first online test website for many years now. So this week i kinda decided to try it out myself. I found a neat nulled script and it works perfectly. But the sad part is its encoded using "smarty template engine"

    So i was wondering if anyone could help me out in decoding the template?

    i would really appreciate your help.
     
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    A templete engine doesn't have to do anything about encoding.
     
  3. xxpaigexx

    xxpaigexx Registered Member

    Joined:
    Apr 6, 2009
    Messages:
    83
    Likes Received:
    27
    Thank you for the reply Jazzc but when i searched for the raw template code lines all i see is encoded lines.

    Do you want me to link you the files ?
     
  4. cgimaster

    cgimaster Power Member

    Joined:
    Jun 30, 2012
    Messages:
    525
    Likes Received:
    311
    Gender:
    Male
    There is a lot of ways to encode a script and without looking at it, its hard to pin point which method is being used.
     
  5. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    Perhaps the script you have is encrypted - but encryption and templates are two different things.

    A template is mostly html code with some placeholders that will be filled with content on the fly. We use templates as a separation tool between business logic and presentation code.
     
  6. xxpaigexx

    xxpaigexx Registered Member

    Joined:
    Apr 6, 2009
    Messages:
    83
    Likes Received:
    27
    okay i understand. Am gonna PM u both with a download link :) Then you guys can see it and tell me about it :)
     
  7. innozemec

    innozemec Jr. VIP Jr. VIP

    Joined:
    Aug 19, 2011
    Messages:
    5,290
    Likes Received:
    1,799
    Location:
    www.Indexification.com
    Home Page:
  8. xxpaigexx

    xxpaigexx Registered Member

    Joined:
    Apr 6, 2009
    Messages:
    83
    Likes Received:
    27
    Nope not really. This is just going to be used by students in our school only. This is just for internal purposes only. PS: This script got leaked like 3-4 years ago. Its not a new one :D

    but it does work perfectly. If you dont mind checking it out for me then do please let me know.

     
  9. cgimaster

    cgimaster Power Member

    Joined:
    Jun 30, 2012
    Messages:
    525
    Likes Received:
    311
    Gender:
    Male
    well it would be faster if u just post 1 of the HTML or template files here.
     
  10. phpbuilt

    phpbuilt Jr. VIP Jr. VIP

    Joined:
    May 16, 2011
    Messages:
    1,650
    Likes Received:
    5,208
    Occupation:
    $ from websites I own.
    Location:
    putting monkeys in paypal
    It sounds like it is probably encoded with zend framework. Zend is a method PHP developers use to protect their code. If the PHP source code looks encrypted that's the only thing I think it could be.

    Sadly, decompiling it will take a larger skill set than simply redesigning it from scratch.
     
  11. xxpaigexx

    xxpaigexx Registered Member

    Joined:
    Apr 6, 2009
    Messages:
    83
    Likes Received:
    27
  12. innozemec

    innozemec Jr. VIP Jr. VIP

    Joined:
    Aug 19, 2011
    Messages:
    5,290
    Likes Received:
    1,799
    Location:
    www.Indexification.com
    Home Page:
    bro, i am not seeing anything encoded in any of the templates in: \inc\templates\default

    they are just pure html and smarty code

    should i be looking elsewhere?
     
  13. innozemec

    innozemec Jr. VIP Jr. VIP

    Joined:
    Aug 19, 2011
    Messages:
    5,290
    Likes Received:
    1,799
    Location:
    www.Indexification.com
    Home Page:
  14. xxpaigexx

    xxpaigexx Registered Member

    Joined:
    Apr 6, 2009
    Messages:
    83
    Likes Received:
    27
    yes bro u are right, its all smarty encoded. would it be possible for u to convert them to normal codes ?

     
  15. innozemec

    innozemec Jr. VIP Jr. VIP

    Joined:
    Aug 19, 2011
    Messages:
    5,290
    Likes Received:
    1,799
    Location:
    www.Indexification.com
    Home Page:
    nope, i can't help on there, since i never dealt with smarty.. maybe someone else around that worked with it could help..