Please help decoding these php files

Discussion in 'PHP' started by satan22o4, Jan 19, 2010.

  1. #1
    Hello, I'm using a theme on my WP website, www.randomlive.com

    but i have some erros in posts, I need to correct them and add osme more extra funtions to it. But in package the post.php and page.php files are decoded. I used some base 64 online decoders but that dint help.
    Please help me decode these files. I will be very happy.
    Single.php
    Here is page.php file.
    I will be very helpfull.

    Thank you
     
    satan22o4, Jan 19, 2010 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    This is going to be a pain. One level deep, this is what you've got.

    
    $lll=0;eval(base64_decode("JGxsbGxsbGxsbGxsPSdiYXNlNjRfZGVjb2RlJzs="));$ll=0;eval($lllllllllll("JGxsbGxsbGxsbGw9J29yZCc7"));$llll=0;$lllll=3;eval($lllllllllll("JGw9JGxsbGxsbGxsbGxsKCRvKTs="));$lllllll=0;$llllll=($llllllllll($l[1])<<8)+$llllllllll($l[2]);eval($lllllllllll("JGxsbGxsbGxsbGxsbGw9J3N0cmxlbic7"));$lllllllll=16;$llllllll="";for(;$lllll<$lllllllllllll($l);){if($lllllllll==0){$llllll=($llllllllll($l[$lllll++])<<8);$llllll+=$llllllllll($l[$lllll++]);$lllllllll=16;}if($llllll&0x8000){$lll=($llllllllll($l[$lllll++])<<4);$lll+=($llllllllll($l[$lllll])>>4);if($lll){$ll=($llllllllll($l[$lllll++])&0x0f)+3;for($llll=0;$llll<$ll;$llll++)$llllllll[$lllllll+$llll]=$llllllll[$lllllll-$lll+$llll];$lllllll+=$ll;}else{$ll=($llllllllll($l[$lllll++])<<8);$ll+=$llllllllll($l[$lllll++])+16;for($llll=0;$llll<$ll;$llllllll[$lllllll+$llll++]=$llllllllll($l[$lllll]));$lllll++;$lllllll+=$ll;}}else$llllllll[$lllllll++]=$llllllllll($l[$lllll++]);$llllll<<=1;$lllllllll--;}eval($lllllllllll("JGxsbGxsbGxsbGxsbD0nY2hyJzs="));$lllll=0;eval($lllllllllll("JGxsbGxsbGxsbD0iPyIuJGxsbGxsbGxsbGxsbCg2Mik7"));$llllllllll="";for(;$lllll<$lllllll;){$llllllllll.=$llllllllllll($llllllll[$lllll++]^0x07);}eval($lllllllllll("JGxsbGxsbGxsbC49JGxsbGxsbGxsbGwuJGxsbGxsbGxsbGxsbCg2MCkuIj8iOw=="));eval($lllllllll);
    
    PHP:
    Most likely it includes a link and/or script to make sure you don't modify anything. Probably the "Wordpress plugin" link in your footer.

    My advice, find a script that doesn't include this crap. Depending on what's in there, this script could be inadvertently used to allow the owner to take over your website or server. People usually put this stuff in their templates or scripts to try and game the search engines or to get recognition. If their product was that good, nobody would have any problem giving them credit.
     
    jestep, Jan 19, 2010 IP
  3. satan22o4

    satan22o4 Active Member

    Messages:
    144
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #3
    Man :( I cant do any thing ? I really like this theme and found it after a long search.
     
    satan22o4, Jan 19, 2010 IP
  4. izwan00

    izwan00 Active Member

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #4
    can you post the theme name? or just PM me the download link.
     
    izwan00, Jan 19, 2010 IP
  5. andymoo

    andymoo Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That's not always true, some folks are plain a-holes and it doesn't matter how good something is there's always gonna be folk wanting it for free or trying to break it.
     
    andymoo, Jan 19, 2010 IP
  6. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It's really simple. All you do is view source the page, find the html code that this produces and copy and paste it in the file in place of it. It's much easier than all this decoding crap. You can edit out the link in the html instead
     
    JAY6390, Jan 19, 2010 IP
  7. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #7
    If that's the case then what's the point in adding this stuff. It wouldn't take much to get through all of it. Might as well put all your cards on the table because people are going to use it the same way no matter what.

    Also, putting eval(base64(filegetcontents and other scripts that pull php from a remote location is a huge liability. If your server gets hacked, that person just got control of every site using your script. That whole no liability clause in a license goes out the window if the script relies on something you continuously provide in order for it to work. If what you provide takes over their site, you're completely liable for actual and punitive damages.
     
    jestep, Jan 19, 2010 IP
  8. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #8
    This is my exact reasoning for using the html. You don't get any php code running before it outputs the html. The only thing that you will need is the blog info and blog url php if you want it to be dynamic rather than the static HTML, although that's not really hard to add back in
     
    JAY6390, Jan 19, 2010 IP
  9. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #9
    single.php:

    <?php get_header(); 
    
         $urlHome = get_bloginfo('template_directory'); 
    
    	 if (have_posts()) : while (have_posts()) : the_post(); ?>
              
    			<div class="box post" id="post-<?php the_ID(); ?>">
    				<div class="content">
    					<?php $postimageurl = get_post_meta($post->ID, 'post-img', true); if ($postimageurl) { ?>
                <div class="pic fl"><img src="<?php echo $postimageurl; ?>" alt="Post Pic" width="200" height="200" /></div>
    					<?php } ?>
    					<div class="post-title">
    						<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    					</div>
    					<!--/post-title -->
    					<div class="post-date"><em>On <?php the_time('m.d.y') ?>, In <?php the_category(', ') ?>, by <?php the_author_posts_link(); ?></em></div>
    					<div class="post-excerpt"><?php the_excerpt(); ?></div>
    					<!--/post-excerpt -->
              <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
    				</div>
    				<!--/content -->
                    
    				<div class="hl"></div>
    				<div class="content">
    					<div class="pic fl"><?php echo get_avatar(get_the_author_email(), $size = '80', $default = $urlHome . '/images/default_avatar_author.gif' ); ?></div>
    					<div class="post-author">
    						<div class="author-descr">
    							<h3><?php the_author(); ?></h3>
    							<p><?php the_author_description(); ?></p>
    							<div class="author-details"><a href="<?php the_author_url(); ?>" target="_blank">Visit Authors Website</a> &nbsp;|&nbsp; <a href="<?php bloginfo('url'); ?>/author/<?php echo strtolower(get_the_author_nickname()); ?>">All Articles From This Author</a></div>
    						</div>
    						<!--/author-descr -->
    						<br class="fix" />
    					</div>
    					<!--/post-author -->
    				</div>
    				<!--/content -->
                    
    				<div class="hl"></div>
    				<div class="social-links">
    					<div class="fl">If you enjoyed this article, please consider sharing it!</div>
    					<div class="fr"><a href="http://del.icio.us/post?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="Bookmark at Delicious" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/ico-soc1.gif" alt="Icon" /></a> <a href="http://www.mixx.com/submit?page_url=<?php the_permalink() ?>" title="Bookmark at Mixx" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/ico-soc2.gif" alt="Icon" /></a> <a href="http://www.stumbleupon.com/submit?url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="Bookmark at StumbleUpon" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/ico-soc3.gif" alt="" /></a> <a href="http://digg.com/submit?phase=2&url=<?php the_permalink() ?>&title=<?php the_title(); ?>" title="Bookmark at Digg" rel="nofollow" target="_blank"><img src="<?php bloginfo('template_directory'); ?>/images/ico-soc4.gif" alt="Icon" /></a> </div>
    					<br class="fix" />
    				</div>
    				<!--/social-links -->
                    
    			</div>
    			<!--/box -->
    
    			<div class="box post-rel">
    				<div class="content">
    					<div class="subcols">
    						<div class="col1">
    							<h2>Related Posts</h2>
    							<?php
    							$results = $wpdb->get_results(yarpp_sql(array('post'),array()));
    							foreach ( (array) $results as $_post ) : ?>
    							<div class="th fl"><a href="<?php echo get_permalink($_post->ID); ?>"><img src="<?php echo get_post_meta($_post->ID, 'post-img', true); ?>" alt="" /></a></div>
    							<div><a href="<?php echo get_permalink($_post->ID); ?>"><?php echo $_post->post_title; ?></a></div>
    							<div class="hl2"></div>
    							<?php endforeach; ?>
    						</div>
    						<!--/col1 -->
    						<div class="col2">
    							<h2>Popular Posts</h2>
    							<?php
    							foreach ( (array) convergence_popular_posts() as $_post ) : ?>
    							<div class="th fl"><a href="<?php echo get_permalink($_post->ID); ?>"><img src="<?php echo get_post_meta($_post->ID, 'post-img', true); ?>" alt="" /></a></div>
    							<div><a href="<?php echo get_permalink($_post->ID); ?>"><?php echo $_post->post_title; ?></a></div>
    							<div class="hl2"></div>
    							<?php endforeach; ?>
    						</div>
    						<!--/col1 -->
    						<br class="fix" />
    					</div>
    					<!--/subcols -->
    				</div>
    				<!--/content -->
    			</div>
    			<!--/box -->
    			
          <?php comments_template(); 
            
    
    	 endwhile; else: ?>
    
    		<p>Sorry, no posts matched your criteria.</p>
    
    <?php endif; 
    
     get_sidebar() ;
    
     get_footer(); ?>
    PHP:
    page.php:

    <?php get_header(); 
    
    		 if (have_posts()) : while (have_posts()) : the_post(); ?>
            
              <div class="box post" id="post-<?php the_ID(); ?>">
                  <div class="content">
                      <div class="post-title">
                          <h2><?php the_title(); ?></h2>
                      </div>
                      <!--/post-title -->
                      <!--/post-excerpt -->
                      <?php the_content('<p class="serif">Read the rest of this page &raquo;</p>'); ?>
                  </div>
                  <!--/content -->
                </div>
                <!--/box -->
                    
    		<?php endwhile; endif; 
    
     get_sidebar(); 
    
     get_footer(); ?>
    Code (markup):
     
    danx10, Jan 19, 2010 IP
  10. OwenMelbz

    OwenMelbz Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    how the devil did you do that? could you explain the process at all please?

    thanks
     
    OwenMelbz, Jan 31, 2010 IP
  11. poblo10

    poblo10 Peon

    Messages:
    135
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I would also like to know thats pretty insane
     
    poblo10, Feb 3, 2010 IP