Waraxe IT Security Portal
Login or Register
January 23, 2026
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: 118
Members: 0
Total: 118
Full disclosure
Re: Multiple Security Misconfigurations and Customer Enumeration Exposure in Convercent Whistleblowing Platform (EQS Group)
OpenMetadata <= 1.11.3 Authenticated SQL Injection
[REVIVE-SA-2026-001] Revive Adserver Vulnerabilities
Defense in depth -- the Microsoft way (part 95): the (shared)"Start Menu" is dispensable
Re: Multiple Security Misconfigurations and CustomerEnumeration Exposure in Convercent Whistleblowing Platform(EQS Group)
RIOT OS 2026.01-devel-317 Stack-Based Buffer Overflow in RIOT ethos Serial Frame Parser
RIOT OS 2026.01-devel-317 Stack-Based Buffer Overflow in tapslip6 Utility via Unbounded Device Path Construction
TinyOS 2.1.2 Stack-Based Buffer Overflow in mcp2200gpio
TinyOS 2.1.2 printfUART Global Buffer Overflow via UnboundedFormat Expansion
KL-001-2026-01: yintibao Fun Print Mobile Unauthorized Access via Context Hijacking
Multiple Security Misconfigurations and Customer Enumeration Exposure in Convercent Whistleblowing Platform (EQS Group)
Panda3d v1.10.16 Uncontrolled Format String in Panda3D egg-mkfont Allows Stack Memory Disclosure
Panda3d v1.10.16 egg-mkfont Stack Buffer Overflow
Panda3d v1.10.16 deploy-stub Unbounded Stack Allocation Leading to Uninitialized Memory
MongoDB v8.3.0 Integer Underflow in LMDB mdb_load
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> decode codelock
Post new topicReply to topic View previous topic :: View next topic
decode codelock
PostPosted: Thu Apr 26, 2012 8:33 pm Reply with quote
Delpiero
Beginner
Beginner
Joined: Apr 26, 2012
Posts: 1




hello,
I tried decoding this for a couple or hrs but I give up..
anyone willing to help.. anything is appreciated..

Code:
http://www.mediafire.com/?8jobucd1ym8qn3o
View user's profile Send private message
PostPosted: Tue Jul 03, 2012 12:43 pm Reply with quote
astra1993
Advanced user
Advanced user
Joined: Jun 20, 2012
Posts: 125




It is decoded.

Code:

<?php
if (file_exists("settings.php"))
{
include("settings.php");
$path = "";
}
else if (file_exists("../settings.php"))
{
include("../settings.php");
$path = "../";
}
else if (file_exists("../../settings.php"))
{
include("../../settings.php");
$path = "../../";
}
else
{
echo "Can't find settings.php!";
exit;
}

$logout_page = "$path$logout_page";
$login_page = "$path$login_page";
$invalidlogin_page = "$path$invalidlogin_page";

if (!isset($action))
$action = "";
if (!isset($pwd))
$pwd = "";
if (!isset($loginpwd))
$loginpwd = "";
if (!isset($loginuser))
$loginuser = "";
if (!isset($loginname))
$loginname = "";
if (!isset($password))
$password = "";

if ($registerglobal == 0)
{
$loginname = $_REQUEST['loginname'];
$password = $_REQUEST['password'];
$action = $_REQUEST['action'];
$loginpwd = $_COOKIE['loginpwd'];
$loginuser = $_COOKIE['loginuser'];
if (!isset($PHP_SELF))
$PHP_SELF = $_SERVER['PHP_SELF'];
if (!isset($HTTP_HOST))
$HTTP_HOST = $_SERVER['HTTP_HOST'];
}


if ($action == "logout")
{
Setcookie("loginpwd","",(time() - ($expirecookie * 3600)), $CookiePath, $CookieDomain);
Setcookie("loginuser","",(time() - ($expirecookie * 3600)), $CookiePath, $CookieDomain);
include($logout_page);
exit;
}
else if ($action == "login")
{
if (($loginname == "") || ($password == ""))
{
include($invalidlogin_page);
exit;
}
else if (strcmp($user_passwords[$loginname],$password) == 0)
{
Setcookie("loginpwd",$password,time() + ($expirecookie * 3600), $CookiePath, $CookieDomain);
Setcookie("loginuser",$loginname,time() + ($expirecookie * 3600), $CookiePath, $CookieDomain);
}
else
{
include($invalidlogin_page);
exit;
}
}
else if ($action == "file")
{
$p = explode("A",$p);

$time = substr(time(),-8,8);
// $pa = ($p[1] / 2 - 3093) * 100;
$pa = ($p[1] / 39) * 100;
$timeprotection = (($p[2] / 2428) - $FileProtection);
if ($timeprotection == 0)
$timeprotection = 900;
else
$timeprotection = $timeprotection * 60 * 60;

// echo "time: $time<BR>timeprotection: $timeprotection<BR>pa: $pa<BR>p[2]: $p[2]<BR>p[1]: $p[1]";
// exit;

if ((($time + $timeprotection) > $pa) && ($pa > ($time - $timeprotection)))
{
$type = substr($file,-3,3);
if (file_exists("$hiddendirectory/$file"))
{
if (filesize("$hiddendirectory/$file") < 10500)
{
if ($type == "php")
{
echo "<B>$file</B> not found on this server";
exit;
}
else if ($type == "zip" || $type == "exe" || $type == ".gz" || $type == "tar")
$contenttype = "Content-Type: application/$type\nContent-Disposition: attachment; filename=$file";
else if ($type == "jpg" || $type == "gif" || $type == "tif" || $type == "peg" || $type == "bmp" || $type == "iff" || $type == "png")
$contenttype = "Content-Type: image/$type";
else if ($type == "mp3" || $type == "mpg" || $type == "wav" || $type == "mid" || $type == "idi")
$contenttype = "Content-Type: sound/$type";
else
$contenttype = "Content-Type: application/$type\nContent-Disposition: attachment; filename=$file";

Header($contenttype);
$intBytesRead = readfile("$hiddendirectory/$file");
exit;
}
else
{
echo "<B>$file</B> is larger than 10Kb and this version of File Protection doesn't support files larger than 10Kb. To have support for large files, please visit <A HREF=\"http://www.xaviermedia.com/php/cookieprotection.phtml\">our website</A> and upgrade to the full version.";
exit;
}
}
else
{
echo "<B>$file</B> not found on this server";
// include($invalidlogin_page);
exit;
}
}
else
{
include($invalidlogin_page);
exit;
}
exit;
}
else
{
if (($loginpwd == "") || ($loginuser == ""))
{
include($login_page);
exit;
}
else if (strcmp($user_passwords[$loginuser],$loginpwd) == 0)
{
Setcookie("loginpwd",$loginpwd,time() + ($expirecookie * 3600), $CookiePath, $CookieDomain);
Setcookie("loginuser",$loginuser,time() + ($expirecookie * 3600), $CookiePath, $CookieDomain);
}
else
{
include($invalidlogin_page);
exit;
}
}


function fileprotect($filename,$timeprotection)
{
// $time = substr(time(),-8,6) + 3093 * 2;
$time = substr(time(),-8,6) * 39;
$timeprotection = ($timeprotection + $FileProtection) * 2428;
$url = 'index.php?action=file&p=1957DE2A'. $time .'A'. $timeprotection .'A'. ($time * 9) .'&file='. $filename;
return $url;
}
?>
View user's profile Send private message
PostPosted: Tue Jul 03, 2012 12:47 pm Reply with quote
astra1993
Advanced user
Advanced user
Joined: Jun 20, 2012
Posts: 125




Just to note that this is a trial version of Xaviermedia File Protector. It only accepts file smaller than 10Kbytes. If you want to null it, change this:

Code:

if (filesize("$hiddendirectory/$file") < 10500)
{


into this:

Code:

if (true)
{
View user's profile Send private message
decode codelock
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



PCWizardHub - Helping you fix, build, and optimize your PC life
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.047 Seconds