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('pVj/T9s4FP+9f8W7Ci2pxFruJp1QWCtNpdzQGOuVcuMOochNnDSQ2MZ2Ct2N..

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. Check that all open bookmarks tags are properly closed.', 'fatal');
}

// 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->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');
$this->saveToZip($this->_wordCommentsExtendedT, 'word/commentsExtended.xml');
if (file_exists(dirname(__FILE__) . '/Tracking.php')) {
    $this->saveToZip($this->_wordDocumentPeople, 'word/people.xml');
}

if ($this->_modifiedDocxProperties) {
    $this->saveToZip($this->propsCore, 'docProps/core.xml');
    $this->saveToZip($this->propsApp, 'docProps/app.xml');
    $this->saveToZip($this->propsCustom, 'docProps/custom.xml');
    $this->saveToZip($this->relsRels, '_rels/.rels');
}

$this->generateTemplateWordDocument();

PhpdocxLogger::logger('Add word/document.xml content to DOCX file.', 'info');

if (self::$_encodeUTF || ($this->_phpdocxconfig['settings']['encode_to_UTF8'] == 'true' && !PhpdocxUtilities::isUtf8($this->_wordDocumentT))) {
    if (PHP_VERSION_ID >= 80200) {
        $contentDocumentXML = mb_convert_encoding($this->_wordDocumentT, 'UTF-8', mb_list_encodings());
    } else {
        $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');
}

Did this file decode correctly?

Original Code

eval(gzinflate(base64_decode('pVj/T9s4FP+9f8W7Ci2pxFruJp1QWCtNpdzQGOuVcuMOochNnDSQ2MZ2Ct2N//2ek7htoF17A4k2cfz5vK9+76XDqQh58HjG45hKz0uLb9e5oBqOv/SvgJGMguYeONCGvShJ6blZaYPTdvbBSVjEndZRo9PpT2lwB0kEekolBYL/XFA24fwuI1IBYaF5qjhukPwB74FKyWUDF92A50y7fUmJpseojuftVcA7dRqqFvTgoAX/NgD/hus1Hi/E5ixIuaIhLCjaUGqnp0QDSdNCs+Vj0CRWBVRIfCLTOZQMhYkR0SQ1Nj410EzQMiEpZFQpEtPGXnUBXXDeP3gCHrOUKe+h25xqLbxORwVTmhHVNhLxWcRlRjTeyrjzwGWIAgNkSFicpZ3fDg5+72QkYc0ecknzoXtOW2npS65/fec6f+SzCO4nYvpNkhgNjYBLSVAnVJ7F8h5uZ3EOzGm1nfcdgzafcsEmh8XXpFOul3fa6OwpQQLabQpJFZUz2uxBTXBMZ2y+i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SP2a5E4z7MJNeqP6+sXep4WpX+NJkdr9DABfqbYtVMtODe1ArLKvxamimcG9fSDhl3TsmqPxe3mBvPMD86LyrK1L626q4Qzu2Lxa9/ETEUEfPeARQveB9tOizcz29eK3PmFmrSrv44VpfXc7D/NcJa5diyTc9PCwrY4yT/GmraJuZi+huMsYXc16LPOZmv9yALc5eYtraQ+t6yZoWoTzEqf2dlrldNf47SfoSh9tkRud5ndu4vH7KS2xmGrM9vP+KvKy9f462coSn8tkdv9Zffu4i87Xa7x1+qUujrHYI8KaUo1hauziyvQqL2p8Arc/scPo/FFq4Gnm5JgupwwzJ4T3FMAiCp/vLGG5CxFE91y7ejFUvH7jpkyCvH/AQ==')));

Function Calls

gzinflate 1
base64_decode 1

Variables

None

Stats

MD5 6a127d5e0658f2240b996f148fae46f5
Eval Count 1
Decode Time 54 ms