PHP Malware Analysis

Back to list

Filename: 115.php

Tags

Files
  • file_get_contents

Deobfuscated code

No debofuscation yet...

Original code

<?php
    libxml_disable_entity_loader (false);
    $xmlfile = file_get_contents('php://input');
    $dom = new DOMDocument();
    $dom->loadXML($xmlfile, LIBXML_NOENT | LIBXML_DTDLOAD);
    $creds = simplexml_import_dom($dom);
    $user = $creds->user;
    $pass = $creds->pass;
    echo "You have logged in as user $user";
>
</php>