Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
eval(gzinflate(base64_decode('5Vlhb9s2EP3eX3EzgkoGMqlbgaFwmgCdm6xB0yxLHCxbEBi0dJKZSKRCUk7c..
Decoded Output download
PhpdocxLogger::logger('Set DOCX name to: ' . $fileName . '.', 'info');
//Check if there are openbookmars and if so throw an error
if (count(CreateDocx::$bookmarksIds) > 0) {
PhpdocxLogger::logger('There are unclosed bookmarks. Please, check that all open bookmarks tags are properly closed.', 'fatal');
}
PhpdocxLogger::logger('Set DOCX name to: ' . $fileName . '.', 'info');
// trial message
$message = '<w:p xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
<w:r>
<w:t>'.str_rot13('Guvf qbphzrag unf orra trarengrq jvgu n').'</w:t>
</w:r>
<w:r>
<w:rPr>
<w:b/>
</w:rPr>
<w:t xml:space="preserve"> '.str_rot13('gevny').'</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"> '.str_rot13('pbcl bs').' </w:t>
</w:r>
<w:r>
<w:rPr>
<w:b/>
</w:rPr>
<w:t>'.str_rot13('CUCQbpK').'</w:t>
</w:r>
<w:r>
<w:t>. '.str_rot13('Cyrnfr').'</w:t>
</w:r>
<w:r>
<w:t>, '.str_rot13('ivfvg').'</w:t>
</w:r>
<w:r>
<w:t xml:space="preserve"> '.str_rot13('gur').' </w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="begin" />
</w:r>
<w:r>
<w:instrText xml:space="preserve">HYPERLINK "'.str_rot13('uggc://jjj.cucqbpk.pbz').'"</w:instrText>
</w:r>
<w:r>
<w:fldChar w:fldCharType="separate" />
</w:r>
<w:r>
<w:rPr>
<w:b/>
<w:color w:val="3333EE"/>
<w:u/>
</w:rPr>
<w:t xml:space="preserve">'.str_rot13('CUCQbpK jrofvgr').'</w:t>
</w:r>
<w:r>
<w:fldChar w:fldCharType="end" />
</w:r>
<w:r>
<w:t xml:space="preserve"> '.str_rot13('gb ohl gur yvprafr gung orfg nqncgf gb lbhe arrqf').'.</w:t>
</w:r>
</w:p>';
$this->addWordML($message);
$this->addBackgroundImage(dirname(__FILE__) . '/../examples/img/imagebg.jpg');
//$this->addProperties(array('creator' => trim($phpdocxconfig['license']['email']), 'description' => str_rot13('Trarengrq ol CUCQbpK gevny irefvba')));
$this->saveToZip($this->_contentTypeT, '[Content_Types].xml');
$this->saveToZip($this->_wordRelsDocumentRelsT, 'word/_rels/document.xml.rels');
$this->saveToZip($this->_wordSettingsT, 'word/settings.xml');
$this->saveToZip($this->_wordFootnotesT, 'word/footnotes.xml');
$this->saveToZip($this->_wordEndnotesT, 'word/endnotes.xml');
$this->saveToZip($this->_wordCommentsT, 'word/comments.xml');
if ($this->_modifiedDocxProperties) {
$this->saveToZip(self::$propsCore, 'docProps/core.xml');
$this->saveToZip(self::$propsApp, 'docProps/app.xml');
$this->saveToZip(self::$propsCustom, 'docProps/custom.xml');
$this->saveToZip(self::$relsRels, '_rels/.rels');
}
$this->generateTemplateWordDocument();
PhpdocxLogger::logger('Add word/document.xml content to DOCX file.', 'info');
if (self::$_encodeUTF) {
$contentDocumentXML = utf8_encode($this->_wordDocumentT);
} else {
if ($this->_phpdocxconfig['settings']['encode_to_UTF8'] == 'true' && !PhpdocxUtilities::isUtf8($this->_wordDocumentT)) {
$contentDocumentXML = utf8_encode($this->_wordDocumentT);
} else {
$contentDocumentXML = $this->_wordDocumentT;
}
}
// repair document.xml to make sure there is no invalid markup
$repair = Repair::getInstance();
$repair->setXML($contentDocumentXML);
$repair->addParapraphEmptyTablesTags();
$contentRepair = (string) $repair;
if (file_exists(dirname(__FILE__) . '/RepairPDF.php') && is_array($this->_repairMode)) {
$contentRepaired = RepairPDF::repairPDFConversion($contentRepair, $this->_wordNumberingT, $this->_wordStylesT, $this->_repairMode);
$contentRepair = $contentRepaired['content'];
$this->_wordStylesT = $contentRepaired['styles'];
}
$this->saveToZip($this->_wordStylesT, 'word/styles.xml');
$this->saveToZip($contentRepair, 'word/document.xml');
$this->saveToZip($this->_wordNumberingT, 'word/numbering.xml');
//Check if there are rels for footnotes, endnotes and comments
if (!empty(CreateDocx::$_relsNotesImage['footnote']) ||
!empty(CreateDocx::$_relsNotesExternalImage['footnote']) ||
!empty(CreateDocx::$_relsNotesLink['footnote'])) {
$this->generateRelsNotes('footnote');
$this->saveToZip($this->_wordFootnotesRelsT, 'word/_rels/footnotes.xml.rels');
}
if (!empty(CreateDocx::$_relsNotesImage['endnote']) ||
!empty(CreateDocx::$_relsNotesExternalImage['endnote']) ||
!empty(CreateDocx::$_relsNotesLink['endnote'])) {
$this->generateRelsNotes('endnote');
$this->saveToZip($this->_wordEndnotesRelsT, 'word/_rels/endnotes.xml.rels');
}
if (!empty(CreateDocx::$_relsNotesImage['comment']) ||
!empty(CreateDocx::$_relsNotesExternalImage['comment']) ||
!empty(CreateDocx::$_relsNotesLink['comment'])) {
$this->generateRelsNotes('comment');
$this->saveToZip($this->_wordCommentsRelsT, 'word/_rels/comments.xml.rels');
}
// delete XLSX tempfiles (CHARTS)
foreach ($this->_tempFileXLSX as $file) {
unlink($file);
unlink($file . '.docx');
}
return $this->_zipDocx->saveDocx($fileName);
Did this file decode correctly?
Original Code
eval(gzinflate(base64_decode('5Vlhb9s2EP3eX3EzgkoGMqlbgaFwmgCdm6xB0yxLHCxbEBi0dJKZSKRCUk7ctf99R1myLVtObDRoBsxAEIk8Ph0fz3fvZIDJ52SYhTK4P5JxjKrTSYr/rnOGBt7/3r0AwVIEIzvggAdbEU/w2I544HjONjhcRNJp77wo0cD3u0MMboBHYIaoEBj9yQzFQMqblCkNTIR2VksyUPKO7gGVkmoKQZNuIHNh3K5CZvA9udfpbJUAN/ow1G3Yg1dt+Ge65oGd9KZu5CJIpMYQplAenCTING5DUHhthswAS5LC45kZGBbrAiJTNKOSMUyQCgoiZlgyz8HXFy8e8WlTdufoBaM4SyBFrVmM04mtcgB2wXl718ngPk2E7tzttobGZB3f17TDlGnP7ozmIqlSZuhWxf6dVCF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90GRHuMKakdOR52yGwSdKyxfHXENQgIXJHV4CPZNTJ7N4q8E2YXT4qLTidEckuRkIkB3Pm9MDCne0XruNuymydqWHhKNVIGz4X6amXGPDahs9Visa+gl2mnljUt1hU6+XSHt1ELVBnIf77k2ekWJnACdvD/wKKSctg0RrvuT0ldRPkH+RAe7FA51fzCc8kOInY6qLqkujVBpqoVufcV27VyP83SAdju9+viZGSdFym7waOcBf2zYLDh46ZQDzlVjlpp/XuNyXczNr17OUisKYbWLsgwWt4+XnQW+nKX0tXbVmqd3AiOqkUWcxveqNj1DRO3AtPRuQ1U+i/esVRWsxeAPaMO5/nK1yPfHdl0h3y6dCpG0E3z5spQSHsbYvzdIsZ08BdYRFzc1iBXluSpEp9VCd7bosfrXqGsaNFdN4TQUx41ZLg/rKUj+FqgJxzOE9Smu1mzCcKX4Ggie135PwW8Z/0/B77dATfidIazPb7VmE34rLdzA77wqfkjcUY0OMUGDcHF0dgGGdmcrlwa3++Hdae+sPbWk7IMsGM6EkLU9INtiIdOTHzUWN5yLhChxJ3M7K6eK30GsOFrhpkKTKzGtFJ95Zqmf8GKv3OkvKu2dfwE=')));
Function Calls
| gzinflate | 1 |
| base64_decode | 1 |
Stats
| MD5 | f7dff49e588e8ea891c6a7c9e6fb5554 |
| Eval Count | 1 |
| Decode Time | 96 ms |