Waraxe IT Security Portal
Login or Register
November 22, 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: 53
Members: 0
Total: 53
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 -> 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



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.035 Seconds