Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
izone
Involved
Involved



Joined: Sep 07, 2004
Posts: 354
Location: Sweden

PostPosted: Thu Apr 14, 2005 3:49 am Reply with quote

Hi,

I have a theme.php file which is like this:
Code:


<?php
// Do not Remove//
eval(base64_decode('JGNvZGVsb2NrX2NvZGU9IklASkhSb1pXMWxlakVnUFNBblpFZG9iR0pYVm5wTU1XaEZURlZrUjB3eVduWmpibFowWTNrNWQySXpUakJoVnpWdVdETlNkbU5IYkdwTWJsSjNZa0U5UFNjN0RRb2dJQ0FrZEdobGJXVjZJRDBnWW1GelpUWTBYMlJsWTI5a1pTZ2tkR2hsYldWNk1TazdEUW9nSUNCeVpYRjFhWEpsSUNSMGFHVnRaWG83IjsgJGNvZGVsb2NrX2NvZGU9c3RyX3JlcGxhY2UoIkAiLCJDQWciLCAkY29kZWxvY2tfY29kZSk7ICRjb2RlbG9ja19jb2RlPXN0cl9yZXBsYWNlKCIhIiwgIlc1IiwgJGNvZGVsb2NrX2NvZGUpOyAkY29kZWxvY2tfY29kZT1zdHJfcmVwbGFjZSgiKiIsICJDQWdJIiwgJGNvZGVsb2NrX2NvZGUpOyAkY29kZWxvY2tfY29kZT1iYXNlNjRfZGVjb2RlKCRjb2RlbG9ja19jb2RlKTsgZXZhbCgkY29kZWxvY2tfY29kZSk7IAo='));
?>


I wanted to change some php code in it but there is coded by some mystic way as u see.

Is there any way to translate these codes to regular php an html code?

thanks for helping
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Thu Apr 14, 2005 5:12 am Reply with quote

Replace eval(...); with echo ...;

Execute that file and you'll see the code. There are 2 more eval, base64_decode functions built into that (i.e. you have to copy the displayed code and again replace eval with echo), but in the end it boils down to these 2 lines:

Code:


$themez = "themes/XD-GF/forums/posting_topic.tpl";
require $themez;

Basically, it's used in one or more other files as an include or require to make sure what's in posting_topic.tpl (probably a copyright) is displayed.

Read Only registered users can see links on this board! Get registered or login! before changing anything.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
izone







PostPosted: Thu Apr 14, 2005 5:32 am Reply with quote

kguske, thank you very much for your reply.

I have learned a new lesson today too from this great site.
 
vietpho
New Member
New Member



Joined: Aug 04, 2006
Posts: 2

PostPosted: Fri Aug 04, 2006 1:33 am Reply with quote

Is there a program that decodes these?
 
View user's profile Send private message
vietpho







PostPosted: Fri Aug 04, 2006 1:34 am Reply with quote

Is there a program that decodes these?
 
kguske







PostPosted: Fri Aug 04, 2006 7:34 am Reply with quote

maybe, but I just used PHP scripts as identified above to display.
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Aug 13, 2006 10:03 am Reply with quote

Sure, just fine a program that does base64 decode... or use the function built into php Smile

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©