Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #1  
Old 27th July 2008, 03:48
skygate skygate is offline
Member
 
Join Date: Jul 2008
Posts: 12
Default TS SE 5.1 - ts_message.php
... ok ..

... I came across this bit of code ...

ts_message.php

Code:
<?php 
/*
Please do not edit this file! 
This file is also your identify verification for TS SE! 
--BEGIN-- 
VERSION: 5.1 
TSSE: xxxxxxxxxxxxxxxxxxxxxx_xxxxxx  <- I blanked this so as not to identify who's source this was     
--END--
*/ 
define('aImaGe_TS_SE','v.0.2_by_xam');
$xqQsTPaCzzRE=strtoupper(htmlspecialchars($_SERVER['HTTP_HOST']));
$eGzzQ3_bQtSeVVv=IMageCreatefromPNG(offline.png);
$yXtSExaMqZ290O=ImageSx($eGzzQ3_bQtSeVVv);
$xyXetSExaMqZ290O121=ImageSy($eGzzQ3_bQtSeVVv);
$yXtSExaMqZ290O1=ImageCreateTrueColor($yXtSExaMqZ290O,$xyXetSExaMqZ290O121);
ImageCopyReSampled($yXtSExaMqZ290O1,$eGzzQ3_bQtSeVVv,00,00,00,00,$yXtSExaMqZ290O,$xyXetSExaMqZ290O121,$yXtSExaMqZ290O,$xyXetSExaMqZ290O121);
$yXetSExaMqZ290O12=ImageColorAllocate($yXtSExaMqZ290O1,555,555,555);
ImageString($yXtSExaMqZ290O1,5,250,5,$xqQsTPaCzzRE,$yXetSExaMqZ290O12);
header(Content-Type: image/jpeg);
ImageJPEG($yXtSExaMqZ290O1);
?>
in the above code I decoded the base64 stuff ... so you cal all see what it is ...

the original code with the base64 is shown below ...

Code:
<?php 
/*
Please do not edit this file! 
This file is also your identify verification for TS SE! 
--BEGIN-- 
VERSION: 5.1 
TSSE: xxxxxxxxxxxxxxxxxxxxxx_xxxxxx  <- I blanked this so as not to identify who's source this was
--END--
*/ 
define('aImaGe_TS_SE','v.0.2_by_xam');
$xqQsTPaCzzRE=strtoupper(htmlspecialchars($_SERVER['HTTP_HOST']));
$eGzzQ3_bQtSeVVv=IMageCreatefromPNG(base64_decode('b2ZmbGluZS5wbmc='));
$yXtSExaMqZ290O=ImageSx($eGzzQ3_bQtSeVVv);
$xyXetSExaMqZ290O121=ImageSy($eGzzQ3_bQtSeVVv);
$yXtSExaMqZ290O1=ImageCreateTrueColor($yXtSExaMqZ290O,$xyXetSExaMqZ290O121);ImageCopyReSampled($yXtSExaMqZ290O1,$eGzzQ3_bQtSeVVv,00,00,00,00,$yXtSExaMqZ290O,$xyXetSExaMqZ290O121,$yXtSExaMqZ290O,$xyXetSExaMqZ290O121);
$yXetSExaMqZ290O12=ImageColorAllocate($yXtSExaMqZ290O1,555,555,555);
ImageString($yXtSExaMqZ290O1,5,250,5,$xqQsTPaCzzRE,$yXetSExaMqZ290O12);
header(base64_decode('Q29udGVudC1UeXBlOiBpbWFnZS9qcGVn'));
ImageJPEG($yXtSExaMqZ290O1);
?>
the actual base64 stuff is here ...

Code:
$eGzzQ3_bQtSeVVv=IMageCreatefromPNG(base64_decode('b2ZmbGluZS5wbmc='));
and

Code:
header(base64_decode('Q29udGVudC1UeXBlOiBpbWFnZS9qcGVn'));
which translate to ...

Code:
$eGzzQ3_bQtSeVVv=IMageCreatefromPNG(offline.png);
AND

Code:
header(Content-Type: image/jpeg);
respectively ...

... so when you 'run' this code ... you get the following IMAGE ...

t.jpg

... so wtf? is all this for?

OK ... why use all this to generate a static image with your domain ... saying we are closed ... come back later?

... also why all the cryptic variable tags?

... I have not gone further to look at the image library code and the resultant output ... but it seems a TOTAL overkill for just this simple placeholder message ...

UNLESS there is something more behind it?

... now if I was a dick .. trying to be clever ... I would use some stenography to encode the site domain as well as any serial number 'tags' into the image ...

... then possibly index search for these images ... which look innocent ... to identify specific site ID's ...

... however I don't believe in all this crap ... and am certain that not what all this does .. in fact you can totally delete the ts_message.php ... the site still works ... unless you 'close it' from the control panel ...

ANYWAY ...

just a little rant ...

... but would welcome some input from others about this 'stupid' bit of code ...

(perhaps not and I missed it all ... any input on this mrdecoder? )
Reply With Quote
Reply

Tags
51 , se , tsmessagephp


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 11:35. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.