Waraxe IT Security Portal
Login or Register
November 24, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 62
Members: 0
Total: 62
Full disclosure
APPLE-SA-11-19-2024-5 macOS Sequoia 15.1.1
Local Privilege Escalations in needrestart
APPLE-SA-11-19-2024-4 iOS 17.7.2 and iPadOS 17.7.2
APPLE-SA-11-19-2024-3 iOS 18.1.1 and iPadOS 18.1.1
APPLE-SA-11-19-2024-2 visionOS 2.1.1
APPLE-SA-11-19-2024-1 Safari 18.1.1
Reflected XSS - fronsetiav1.1
XXE OOB - fronsetiav1.1
St. Poelten UAS | Path Traversal in Korenix JetPort 5601
St. Poelten UAS | Multiple Stored Cross-Site Scripting in SEH utnserver Pro
Apple web content filter bypass allows unrestricted access to blocked content (macOS/iOS/iPadOS/visionO S/watchOS)
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> Please decode this encrypted file..
Post new topicReply to topic View previous topic :: View next topic
Please decode this encrypted file..
PostPosted: Fri Jan 25, 2013 9:48 pm Reply with quote
Ashu
Beginner
Beginner
Joined: Jan 25, 2013
Posts: 4




Here is the link to file
http://pastebin.com/qdXayvKL

I think this file is encrypted with php-crypt.com

Thanks in advance.

Regards,
View user's profile Send private message Visit poster's website
Re: Please decode this encrypted file..
PostPosted: Sun Jan 27, 2013 8:16 am Reply with quote
vv456
Advanced user
Advanced user
Joined: Aug 24, 2012
Posts: 190




Ashu wrote:
Here is the link to file
http://pastebin.com/qdXayvKL

I think this file is encrypted with php-crypt.com

Thanks in advance.

Regards,


Code:
<?php
if(!function_exists("rotencode")){function rotencode($string,$amount) { $key = substr($string, 0, 1); if(strlen($string)==1) { return chr(ord($key) + $amount); } else { return chr(ord($key) + $amount) . rotEncode(substr($string, 1, strlen($string)-1), $amount); }}}
?>
View user's profile Send private message
Re: Please decode this encrypted file..
PostPosted: Sun Jan 27, 2013 12:14 pm Reply with quote
Ashu
Beginner
Beginner
Joined: Jan 25, 2013
Posts: 4




vv456 wrote:


Code:
<?php
if(!function_exists("rotencode")){function rotencode($string,$amount) { $key = substr($string, 0, 1); if(strlen($string)==1) { return chr(ord($key) + $amount); } else { return chr(ord($key) + $amount) . rotEncode(substr($string, 1, strlen($string)-1), $amount); }}}
?>


sorry mate this is not the full code and i think you have tried to decode it with http://ddecode.com/phpdecoder/ which gives same result to me every time i try to decode any file....lol
View user's profile Send private message Visit poster's website
PostPosted: Tue Jan 29, 2013 12:06 am Reply with quote
Ashu
Beginner
Beginner
Joined: Jan 25, 2013
Posts: 4




So many views and no one able to decode... this please help!!!
View user's profile Send private message Visit poster's website
PostPosted: Tue Jan 29, 2013 11:41 am Reply with quote
vince213333
Advanced user
Advanced user
Joined: Aug 03, 2009
Posts: 737
Location: Belgium




Have fun with it Smile

Code:
<?php
if( ! defined( 'DATALIFEENGINE' ) ) {
die( "Hacking attempt!" );
}

include ENGINE_DIR . '/data/searchclouddata.php';
require_once ENGINE_DIR . '/classes/search.class.php';
$search = new Searchcloud();

if (!$tpl->result['search_cloud']) {
$counts = array();
$tags = array();
$list = array();
$sizes = array( "clouds_xsmall", "clouds_small", "clouds_medium", "clouds_large", "clouds_xlarge" );
$min = 1;
$max = 1;
$range = 1;
if($searchcloud['order'] == "1"){
$order = "datetime DESC";
}
if($searchcloud['order'] == "2"){
$order = "tag DESC";
} if($searchcloud['order'] == "3"){
$order = "RAND()";
}
$db->query("SELECT SQL_CALC_FOUND_ROWS tag, COUNT(*) AS count FROM " . PREFIX . "_search GROUP BY tag ORDER BY {$order} LIMIT 0,{$searchcloud['limit']}");
while($row = $db->get_row()){
$tags[$row['tag']] = $row['count'];
$counts[] = $row['count'];
}
$db->free();
if (count($counts)) {
$min = min($counts);
$max = max($counts);
$range = ($max-$min);
}
if (!$range)
$range = 1;
foreach ($tags as $tag => $value) {
$list[$tag]['tag'] = $tag;
$list[$tag]['size'] = $sizes[sprintf("%d", ($value-$min)/$range*4 )];
$list[$tag]['count'] = $value;
$char_mixed = $search->ddlrandom($searchcloud['alpha'], $searchcloud['numeric'], $search->CHAR_ALPHA . $search->CHAR_NUMERIC, $list);
$list[$tag]['mixed'] = $char_mixed;
}
$tags = array();
foreach ($list as $value) {
if( dle_strlen( $value['tag'], $config['charset'] ) > $searchcloud['urllimit'] )
$title = dle_substr( $value['tag'], 0, $searchcloud['urllimit'], $config['charset'] ) . " ...";
else
$title = $value['tag'];
if (!$searchcloud['urlpath']) {
$urlpath = "";
} else {
$urlpath = $searchcloud['urlpath']."/";
}
if ($searchcloud['random'] != "no") {
$full_link = $config['http_home_url'] . $urlpath. $value['mixed'] ."/". $search->dleUrlEncode($value['tag']) . ".html";
} else {
$full_link = $config['http_home_url'] . $urlpath. $search->dleUrlEncode($value['tag']) . ".html";
}
if (trim($value['tag']) != "" ) {
if ($config['allow_alt_url'] == "yes")
$tags[] = "<a href=\"" . $full_link . "\" title=\"".mb_convert_case($value['tag'], MB_CASE_TITLE, "UTF-8")."\">".mb_convert_case($title, MB_CASE_TITLE, "UTF-8")."</a>";
else
$tags[] = "<a href=\"$PHP_SELF?do=search&subaction=search&story=".$search->dleUrlEncode($value['tag'])."&searchterm=tag\" title=\"".$lang['tags_count']." ".$value['count']."\">".mb_convert_case($title, MB_CASE_TITLE, "UTF-8")."</a>";
}
}
$tpl->result['search_cloud'] = implode(", ", $tags);
$row = $db->super_query("SELECT FOUND_ROWS() as count");
if ($row['count'] >= $searchcloud['limit']) {
if ($config['allow_alt_url'] == "yes")
$tpl->result['search_cloud'] .= ", ...<a href=\"".$config['http_home_url']."searchs\">&raquo; Show all search results</a><span style=\"display:none;\"><a href=\"http://www.ddl-turkey.net\">DataLife Engine English Support</a></span>";
else
$tpl->result['search_cloud'] .= ", ...<a href=\"$PHP_SELF?do=allsearchs\">&raquo; Show all search results</a><span style=\"display:none;\"><a href=\"http://www.ddl-turkey.net\">DataLife Engine English Support</a></span>";
}
}
if ($do == "allsearchs") {
$tpl->result['content'] = dle_cache("allsearchs", $config['skin']);
if (!$tpl->result['content']) {
$tpl->load_template('searchcloud.tpl');
$counts = array();
$tags = array();
$list = array();
$sizes = array( "clouds_xsmall", "clouds_small", "clouds_medium", "clouds_large", "clouds_xlarge" );
$min = 1;
$max = 1;
$range = 1;
$db->query("SELECT tag, COUNT(*) AS count FROM " . PREFIX . "_search GROUP BY tag");
while($row = $db->get_row()){
$tags[$row['tag']] = $row['count']; $counts[] = $row['count'];
}
$db->free();
if (count($counts)) {
$min = min($counts);
$max = max($counts);
$range = ($max-$min);
}
if (!$range)
$range = 1;
foreach ($tags as $tag => $value) {
$list[$tag]['tag'] = $tag;
$list[$tag]['size'] = $sizes[sprintf("%d", ($value-$min)/$range*4 )];
$list[$tag]['count'] = $value;
$char_mixed = $search->ddlrandom($searchcloud['alpha'], $searchcloud['numeric'], $search->CHAR_ALPHA . $search->CHAR_NUMERIC, $list);
$list[$tag]['mixed'] = $char_mixed;
}
$tags = array();
foreach ($list as $value) {
if (!$searchcloud['urlpath']) {
$urlpath = "";
} else {
$urlpath = $searchcloud['urlpath']."/";
}
if ($searchcloud['random'] != "no") {
$full_link = $config['http_home_url'] . $urlpath. $value['mixed'] ."/". $search->dleUrlEncode($value['tag']) . ".html";
} else {
$full_link = $config['http_home_url'] . $urlpath. $search->dleUrlEncode($value['tag']) . ".html";
}
if (trim($value['tag']) != "" ) {
if ($config['allow_alt_url'] == "yes")
$tags[] = "<a href=\"" . $full_link . "\" class=\"{$value['size']}\" title=\"".$lang['tags_count']." ".$value['count']."\">". mb_convert_case($value['tag'], MB_CASE_TITLE, "UTF-8") ."</a>";
else
$tags[] = "<a href=\"$PHP_SELF?do=search&subaction=search&story=".$search->dleUrlEncode($value['tag'])."&searchterm=tag\" class=\"{$value['size']}\" title=\"".$lang['tags_count']." ".$value['count']."\">".mb_convert_case($value['tag'], MB_CASE_TITLE, "UTF-8")."</a>";
}
}
$tags = implode(", ", $tags);
$tpl->set('{tags}', $tags . '<p align="center" style="padding-top:24px;"><a href="http://www.ddl-turkey.net">Powered by Engine</a></p>');
$tpl->compile('content');
$tpl->clear();
create_cache ("allsearchs", $tpl->result['content'], $config['skin']);
}
}
?>
View user's profile Send private message
PostPosted: Tue Jan 29, 2013 2:35 pm Reply with quote
Ashu
Beginner
Beginner
Joined: Jan 25, 2013
Posts: 4




vince213333 wrote:
Have fun with it Smile



You are the superman mate... Thank you Very Very much for this....
you too have fun...haha
View user's profile Send private message Visit poster's website
PostPosted: Tue Jan 29, 2013 2:50 pm Reply with quote
vince213333
Advanced user
Advanced user
Joined: Aug 03, 2009
Posts: 737
Location: Belgium




Haha my pleasure. Nothing better than a good manual decoding ^^
View user's profile Send private message
PostPosted: Thu Jan 31, 2013 4:55 am Reply with quote
HURRYCANE
Beginner
Beginner
Joined: Jan 26, 2013
Posts: 3




vince213333 wrote:
Haha my pleasure. Nothing better than a good manual decoding ^^

Can you teach us the basics or provide some s/w Cool
View user's profile Send private message
PostPosted: Thu Jan 31, 2013 7:28 am Reply with quote
vince213333
Advanced user
Advanced user
Joined: Aug 03, 2009
Posts: 737
Location: Belgium




Well most encodings just use a neat combination of the base64 encoding and the eval function, which takes PHP code as a string and executes it. So most of the times, decoding is just decoding the base64 and look what it says. Then use that outcome and replace the eval function with an echo or highlight_string.
View user's profile Send private message
PostPosted: Thu Jan 31, 2013 10:30 am Reply with quote
vv456
Advanced user
Advanced user
Joined: Aug 24, 2012
Posts: 190




vince213333 wrote:
Well most encodings just use a neat combination of the base64 encoding and the eval function, which takes PHP code as a string and executes it. So most of the times, decoding is just decoding the base64 and look what it says. Then use that outcome and replace the eval function with an echo or highlight_string.


would have an example to share with us?
View user's profile Send private message
PostPosted: Fri Feb 01, 2013 11:33 am Reply with quote
vince213333
Advanced user
Advanced user
Joined: Aug 03, 2009
Posts: 737
Location: Belgium




Well for example, here's how I decoded this file:

First I changed the first eval into highlight_string and put a die() after that line to prevent further execution of the script. This step revealed a function declaration of "rotencode", probably used later on.

Then I wanted to know what the $OO000OO000OO variable contained, when it is used in the second and last eval. So I just put echo $OO000OO000OO; die(); before the last eval, which revealed that $OO000OO000OO contains "gzinfla2e". Though this cannot be correct because gzinfla2e is not a PHP function, but gzinflate is. The 2 probably slipped in as an error due to character encoding issues considering the line $keystroke2 = $O0O0O0O0O0O0("„q>BF?~Anâ€r‡D…pt{sl??E{y‚xCwuov|@?z}", -13); contains a lot of non-ascii characters. So I replaced "eval($OO000OO000OO" with "highlight_string(gzinflate(". This revealed another encoded string:

Code:
eval($OO000OO000OO(base64_decode('LZS1rsYKgoNfZqWZqxRh+DWaIszMaVZhZs7T7ym2cenCn+3ySod//49pQhD0//LvLN1LAvvfosznovz3v7QkRN89VmPMuJSLreq7Qp29u8+rKgeAK0uwCvDnfFPGkGe6DIJvoygYGFlfskFqB8NsjRgrBZ1kspxqsirSrvutM0Kyl93g3ehT0eIJAyuPnHaAfwUroEhyXtln+5HbRKroCZQZTZOu4+SctHW37oiDQ+sZLLP+2099e67pVt7REMem5VAd+8Fj6WufogCvzsS1PJ3Bys6dIQNBxU+wv1qtd+IlRGN7dk5m/HaulT0ITGhJLXKUhaHRRBiVpeIQiURvOn6mOIoExcrVQwbEcEdALoDy+oRAU7ttnzTiXDpJgXDamZIeq4xuAD/zX15o1RWVwL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sI0p8yLu/ctRsLUrfUxbOS6IP0fR6+3JpMh5khvkhSSf9Kb/aYNfO33avsQKwYznou1J5uI6ai1fGXuNJrSu3uuoU0OUEJIeEkof+Kk1MjVvLF1vVB/E6OU+Gp1FpIAdR/1DfkUI88MEzGcQ8BBZ464FOdIqc+qGtPdzn4i0beDN+5NO1QhCPGDSOHc0gzH8XVj/GBbFdVAfUMKXyD909VX2agtgj/W9Lh7IzdGOTbApayw7TtZtQgAY0BSYIx9eLI2PyuB3ToSvwjAuCZlWB4O9HgiB3//e///rnn3/+838=')));


Now just keep replacing the "eval($OO000OO000OO" with "highlight_string(gzinflate" and the original script will eventually come up. This was just encoded multiple times in the same way.
View user's profile Send private message
Please decode this encrypted file..
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

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.053 Seconds