|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 51
Members: 0
Total: 51
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Decode This Please |
|
Posted: Sat Oct 25, 2008 3:39 am |
|
|
webmark |
Beginner |
|
|
Joined: Oct 24, 2008 |
Posts: 2 |
|
|
|
|
|
|
|
I would be most grateful if someone could decode this for me and, if possible, perhaps point me to a tool I can use to decode similar pieces of code.
Code: | <?php $_F=__FILE__;$_X='Pz48P3BocA0KDQpmM25jdDQybiBjM3R0MWcoJDRudDV4dCl7DQokbDFzdD0ndDFnZzVkJzsNCnByNWdfbTF0Y2goIiMoLio/KSIuJGwxc3QuIiNzIiwgJDRudDV4dCwgJHYxbDM1KTsNCnI1dDNybiAkdjFsMzVbNl07fQ0KDQpzNXRfdDRtNV9sNG00dCgwKTsNCg0KJGY0bDUgPSAiaHR0cDovL3d3dy4xbTF6Mm4uYzJtL3Jzcy90MWcvZzJsZi9wMnAzbDFyLz90MWc9Ii4kMW0xejJuNGQ7DQoNCiRucl9uNXdzPWEwOw0KDQokcnNzX2NoMW5uNWwgPSAxcnIxeSgpOw0KJGMzcnI1bnRseV93cjR0NG5nID0gIiI7DQokbTE0biA9ICIiOw0KJDR0NW1fYzIzbnQ1ciA9IDA7DQoNCmYzbmN0NDJuIHN0MXJ0RWw1bTVudCgkcDFyczVyLCAkbjFtNSwgJDF0dHJzKSB7DQogICAJZ2wyYjFsICRyc3NfY2gxbm41bCwgJGMzcnI1bnRseV93cjR0NG5nLCAkbTE0bjsNCiAgIAlzdzR0Y2goJG4xbTUpIHsNCiAgIAkJYzFzNSAiUlNTIjoNCiAgIAkJYzFzNSAiUkRGOlJERiI6DQogICAJCWMxczUgIklURU1TIjoNCiA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|
|
|
Posted: Sat Oct 25, 2008 8:30 am |
|
|
mge |
Valuable expert |
|
|
Joined: Jul 16, 2008 |
Posts: 142 |
|
|
|
|
|
|
|
Code: | <?php
function cuttag($intext){
$last='tagged';
preg_match("#(.*?)".$last."#s", $intext, $value);
return $value[1];}
set_time_limit(0);
$file = "http://www.amazon.com/rss/tag/golf/popular/?tag=".$amazonid;
$nr_news=20;
$rss_channel = array();
$currently_writing = "";
$main = "";
$item_counter = 0;
function startElement($parser, $name, $attrs) {
global $rss_channel, $currently_writing, $main;
switch($name) {
case "RSS":
case "RDF:RDF":
case "ITEMS":
$currently_writing = "";
break;
case "CHANNEL":
$main = "CHANNEL";
break;
case "IMAGE":
$main = "IMAGE";
$rss_channel["IMAGE"] = array();
break;
case "ITEM":
$main = "ITEMS";
break;
default:
$currently_writing = $name;
break;
}
}
function endElement($parser, $name) {
global $rss_channel, $currently_writing, $item_counter;
$currently_writing = "";
if ($name == "ITEM") {
$item_counter++;
}
}
function characterData($parser, $data) {
global $rss_channel, $currently_writing, $main, $item_counter;
if ($currently_writing != "") {
switch($main) {
case "ITEMS":
if (isset($rss_channel[$main][$item_counter][$currently_writing])) {
$rss_channel[$main][$item_counter][$currently_writing] .= $data;
} else {
//print ("rss_channel[$main][$item_counter][$currently_writing] = $data<br>");
$rss_channel[$main][$item_counter][$currently_writing] = $data;
}
break;
}
}
}
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startElement", "endElement");
xml_set_character_data_handler($xml_parser, "characterData");
$data=curl_string($file);
xml_parse($xml_parser,$data);
xml_parser_free($xml_parser);
// putting in array
$news=array();
if (isset($rss_channel["ITEMS"]))
{
if (count($rss_channel["ITEMS"]) > 0)
for($i = 0;$i < count($rss_channel["ITEMS"]);$i++) $news[]=$rss_channel["ITEMS"][$i];
}
$c=0;
foreach($news as $key=>$val)
{
if($c<$nr_news)
{
echo "<div class=\"product\" align=\"left\">";
echo '<a href="'.$val['LINK'].'" target=\"_blank\"><h2>'.cuttag($val['TITLE']).'</h2></a><br />'.''.$val['DESCRIPTION'].'</div>';
}
$c++;
}
function curl_string ($url,$user_agent='Mozilla 4.0'){
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt ($ch, CURLOPT_TIMEOUT, 120);
$result = curl_exec ($ch);
curl_close($ch);
return $result;
}
?><br /> |
i don't know of any tools that can decode something like this, sorry |
|
|
|
|
|
|
|
|
Posted: Sat Oct 25, 2008 10:35 am |
|
|
webmark |
Beginner |
|
|
Joined: Oct 24, 2008 |
Posts: 2 |
|
|
|
|
|
|
|
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
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
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|