Waraxe IT Security Portal
Login or Register
November 25, 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: 60
Members: 0
Total: 60
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 -> CALLING ALL SUPERSTARS! Pls Help Decrypt IonCube PHP File
Post new topicReply to topic View previous topic :: View next topic
CALLING ALL SUPERSTARS! Pls Help Decrypt IonCube PHP File
PostPosted: Tue Nov 01, 2011 9:19 pm Reply with quote
mpspringer
Beginner
Beginner
Joined: Nov 01, 2011
Posts: 2




IonCube Encryption

If anyone could please assist in decoding this file, you will receive major brownie points! Your help and assistance is VERY MUCH appreciated.

The source file was stored on our internal server and it had a catastrophic system failure. Sad

THANK YOU in advance

*************

Code:
<?php //003ab
if(!extension_loaded('ionCube Loader')){$__oc=strtolower(substr(php_uname(),0,3));$__ln='ioncube_loader_'.$__oc.'_'.substr(phpversion(),0,3).(($__oc=='win')?'.dll':'.so');@dl($__ln);if(function_exists('_il_exec')){return _il_exec();}$__ln='/ioncube/'.$__ln;$__oid=$__id=realpath(ini_get('extension_dir'));$__here=dirname(__FILE__);if(strlen($__id)>1&&$__id[1]==':'){$__id=str_replace('\\','/',substr($__id,2));$__here=str_replace('\\','/',substr($__here,2));}$__rd=str_repeat('/..',substr_count($__id,'/')).$__here.'/';$__i=strlen($__rd);while($__i--){if($__rd[$__i]=='/'){$__lp=substr($__rd,0,$__i).$__ln;if(file_exists($__oid.$__lp)){$__ln=$__lp;break;}}}@dl($__ln);}else{die('The file '.__FILE__." is corrupted.\n");}if(function_exists('_il_exec')){return _il_exec();}echo('Site error: the file <b>'.__FILE__.'</b> requires the ionCube PHP Loader '.basename($__ln).' to be installed by the site administrator.');exit(199);
?>
4+oV56yso1KoeJ1Qt+rTDb9ihOo4TAFIByCM1VGSvHkPWlJKs1L/c+eLStPjs9btH7sPErF7SCs2
P/c8hZGU2lNFs2U2u2+83tt9zqeZavHIlbL9sVFi60X7bsquPxuBCAblSYiMMAkz18Q9/Fp8rNAq
+o8j7a7Vssoo1mr9QCktYV5v6Gp8etoPn6k/hBjJJ9wei0sxIftdqmlLEq8oMDvUyMBLLub9qvFN
fN43WksrbDNVCpHE7ywtnmxLNL5I8TsyMRu66ldkBbjlaMHB8AEXGaeN+qU6D+NqN2+JKIZ8cz9Z
QdrD1H9p0N5rPyofZ0r6cdK29gDsSvMAW4etXs2t6KbZPs1TMQ0TTD5HlM+GEmJjceEFoPf58dWV
H57cWX9Ds2W7mO+ok8Idk1pxLe96+2IMHnI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febnhXejShTtqhCoBD9W2QF1KYzBrG/HaUHwwjcNkFuZRdAIfFmI9a2nMEl2wZp/OoW==


Last edited by mpspringer on Tue Nov 01, 2011 9:29 pm; edited 1 time in total
View user's profile Send private message
PostPosted: Tue Nov 01, 2011 9:27 pm Reply with quote
mpspringer
Beginner
Beginner
Joined: Nov 01, 2011
Posts: 2




Just to sweeten the deal, I would be willing to throw in some $$ to whomever completes this first. validation of the complete working file is necessary.

Cheers!
View user's profile Send private message
PostPosted: Wed Nov 02, 2011 2:51 am Reply with quote
fireman
Regular user
Regular user
Joined: Jun 03, 2011
Posts: 15




Code:
<?php

ini_set("max_execution_time", 99999);
@ob_start();
session_start();
require_once("includes/JSON.php");
require_once("includes/classes/pdf.php");
require_once("connection.php");
class GeneratePDF extends connection
{
public function __construct()
{
$this->conn = mysql_connect($this->host, $this->usr, $this->pass);
mysql_select_db($this->db, $this->conn);
mysql_query("SET NAMES utf8");
$this->id = $_GET['id'];
}

public function createPDF()
{
$jsonEncodedData = $this->getDataArr();
if ($jsonEncodedData != FALSE) {
$dirName = "pdf/" . $this->id;
$this->createDirectory($dirName);
foreach ($jsonEncodedData as $key => $value) {
if ($value->type == "Background") {
$printW = $value->width + 18;
$printH = $value->height + 18;
$size = array(
$printW,
$printH
);
$pdf = new PDF("P", "pt", $size);
$pdf->AddPage();
$imageDestName = "pdf/" . $this->id . "/" . $key . ".png";
$rotation = 0 - 0;
$posX = 0;
$posY = 0;
$posW = $value->width + 18;
$posH = $value->height + 18;
$query = $this->setBgQuery($value, $imageDestName);
exec($this->magick . $query);
$pdf->RotatedImage($imageDestName, 0, 0, $posW, $posH, 0);
}
if ($value->type == "Text") {
$imageDestName = "pdf/" . $this->id . "/" . $key . ".png";
$rotation = 0 - $value->rotation;
$posX = $value->pdfX;
$posY = $value->pdfY;
$posW = $value->pdfWidth;
$posH = $value->pdfHeight;
$query = $this->setTextQuery($value, $imageDestName);
exec($this->magick . $query);
$pdf->RotatedImage($imageDestName, $posX, $posY, $posW, $posH, $rotation);
}
if ($value->type == "Image") {
$imagePath = "";
$posX = $value->x;
$posY = $value->y;
$posW = $value->width;
$posH = $value->height;
$rotation = 0 - $value->rotation;
$imagePath = str_replace("large", "original", $value->url);
$imgTypeArr = getimagesize($imagePath);
$file_type = $imgTypeArr['mime'];
if ($file_type == "image/gif") {
$data = explode(".", $imagePath);
$totLen = count($data);
$extCode = $data[$totLen - 1];
if ($extCode == "gif") {
$imagePath1 = str_replace(".gif", ".png", $imagePath);
$query = " {$imagePath} {$imagePath1}";
exec($this->magick . $query);
$imagePath = $imagePath1;
} else {
$imagePath1 = str_replace($extCode, "gif", $imagePath);
copy($imagePath, $imagePath1);
$query = " {$imagePath1} {$imagePath}";
exec($this->magick . $query);
}
}
$pdf->RotatedImage($imagePath, $posX, $posY, $posW, $posH, $rotation);
}
}
}
$pdf->Output("pdf/" . $this->id . "/" . $this->id . ".pdf", "D");
}

public function getDataArr()
{
$query = "select DATA_ARR from DESIGNPRODUCT where 1 and DES_PROD_ID = '" . $_GET['id'] . "'";
$sql = mysql_query($query);
$line = mysql_fetch_assoc($sql);
return JSON::decode($line['DATA_ARR']) ? JSON::decode($line['DATA_ARR']) : FALSE;
}

public function setBgQuery($value, $imageDestName)
{
$bgColor = "#" . $value->bgColor;
$query = " -size 2000x1000 xc:" . $bgColor . " \"" . $imageDestName . "\"";
return $query;
}

public function setTextQuery($value, $imageDestName)
{
if ($value->color == "000000") {
$txtColor = "#000001";
} else if ($value->color == "FFFFFF") {
$txtColor = "#FDFFFF";
} else {
$txtColor = "#" . $value->color;
}
$fontArr = explode(".", $value->fontURL);
$font_name = $fontArr[0];
if ($value->bold == 1 || $value->italic == 1) {
if ($value->bold == 1 && $value->italic == 1) {
$fontName = $font_name . "BoldItalic.ttf";
} else if ($value->bold == 1) {
$fontName = $font_name . "Bold.ttf";
} else if ($value->italic == 1) {
$fontName = $font_name . "Italic.ttf";
}
} else {
$fontName = $font_name . ".ttf";
}
$fontFileName = "font/ttf/" . $fontName;
switch ($value->align) {
case "left":
$garvity = "West";
break;
case "center":
$garvity = "Center";
break;
case "right":
}
$garvity = "East";
break;
$garvity = "West";
break;
$text = $this->getText($value->text, $value->align);
$File = "TextFile.txt";
$Handle = fopen($File, "w");
fwrite($Handle, $text);
fclose($Handle);
$query = " -gravity \"" . $garvity . "\" -background none -fill \"" . $txtColor . "\" -font \"" . $fontFileName . "\" -size 1500x1500 -dither None +antialias label:@\"" . $File . "\" -trim png8:\"" . $imageDestName . "\"";
return $query;
}

public function getText($text, $align)
{
$lines = preg_split("/\r\n|[\r\n]/", $text);
$textArr = array();
foreach ($lines as $key => $value) {
$strLen = strlen($value);
$textArr[$value] = $strLen;
}
$maxLenText = max($textArr);
foreach ($lines as $key => $value) {
$value = $value;
switch ($align) {
case "left":
do {
if (!(strlen($value) == $maxLenText)) {
break;
} else {
$TEXT = " " . $value . " ";
}
} while (0);
if (strlen($value) < $maxLenText) {
$TEXT = " " . $value;
}
break;
case "right":
do {
if (!(strlen($value) == $maxLenText)) {
break;
} else {
$TEXT = " " . $value . " ";
}
} while (0);
if (strlen($value) < $maxLenText) {
$TEXT = $value . " ";
}
break;
case "center":
}
if (strlen($value) == $maxLenText) {
$TEXT = " " . $value . " ";
} else {
$TEXT = $value;
}
break;
if (strlen($value) == $maxLenText) {
$TEXT = " " . $value . " ";
} else if (strlen($value) < $maxLenText) {
$TEXT = " " . $value;
}
break;
$mText .= $TEXT . "\n";
}
return $mText;
}

public function createDirectory($dirName)
{
if (!is_dir($dirName)) {
mkdir($dirName);
@chmod($dirName, 511);
}
}

}

$objGeneratePDF = new GeneratePDF();
$objGeneratePDF->createPDF();
?>
View user's profile Send private message
CALLING ALL SUPERSTARS! Pls Help Decrypt IonCube PHP 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.046 Seconds