Waraxe IT Security Portal
Login or Register
May 2, 2025
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: 105
Members: 0
Total: 105
Full disclosure
Microsoft Windows .XRM-MS File / NTLM Information DisclosureSpoofing
[IWCC 2025] CfP: 14th International Workshop on Cyber Crime -Ghent, Belgium, Aug 11-14, 2025
Inedo ProGet Insecure Reflection and CSRF Vulnerabilities
Ruby on Rails Cross-Site Request Forgery
Microsoft ".library-ms" File / NTLM Information Disclosure (Resurrected 2025)
HNS-2025-10 - HN Security Advisory - Local privilege escalation in Zyxel uOS
APPLE-SA-04-16-2025-4 visionOS 2.4.1
APPLE-SA-04-16-2025-3 tvOS 18.4.1
APPLE-SA-04-16-2025-2 macOS Sequoia 15.4.1
APPLE-SA-04-16-2025-1 iOS 18.4.1 and iPadOS 18.4.1
Business Logic Flaw: Price Manipulation - AlegroCartv1.2.9
Stored XSS in "Message" Functionality - AlegroCartv1.2.9
XSS via SVG Image Upload - AlegroCartv1.2.9
BBOT 2.1.0 - Local Privilege Escalation via Malicious ModuleExecution
83 vulnerabilities in Vasion Print / PrinterLogic
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.036 Seconds