php2shell
php2shell is the label applied by WAF vendors and honeypot operators to a recurring family of automated PHP upload-and-execution probes rather than to a single versioned project; no canonical upstream repository, vendor page, or CVE assignment documents it as a named tool, so the string should be treated as a behavioral tag rather than an authoritative product identity. Its defining signature is a POST of a PHP payload into an upload directory followed immediately by a GET for the file just written.
Traffic seen in public honeypot datasets consists of unauthenticated multipart POSTs field-named file, upload, or image against predictable handlers: /wp-content/uploads/, plugin upload.php endpoints, CKFinder and elFinder connectors, and bare /filemanager/ paths. Payload bodies open with <?php and wrap eval, system, passthru, or assert in base64_decode or str_rot13 chains so one body defeats naive signature matching. A successful write is followed within seconds by a GET to the written filename, sometimes with a ?cmd= parameter, the clearest confirmation stage. The scanner also probes writable directories first, distinguishing 403 from 200 before uploading.
Web shells delivered this way map to MITRE ATT&CK T1505.003 (Server Software Component: Web Shell) and T1105 (Ingress Tool Transfer). Mass upload probing has ranked among the highest-volume honeypot activities since the mid-2010s botnets that deposited c99 and r57 shells, but no single breach or CVE is uniquely attributable to the php2shell tag, which exploits already-known weak or unauthenticated upload handlers rather than a specific vulnerability class.
Detection rests on the literal token php2shell inside an otherwise short, generic, or empty User-Agent, missing Accept-Language and Referer headers, and a POST→GET→POST triplet against a new filename in under five seconds. Secondary indicators are multipart filenames ending in .php, .phtml, .php5, or .phar, and source addresses concentrated in bulletproof-hosting ASNs.
A successful execution yields remote code execution under the web-server account, exposing wp-config.php or .env credentials, enabling database pivoting, cron or mu-plugin persistence, and conscription of the host as a redirector or DDoS node. The shell typically survives patching because it lives in the uploads tree, not in application code.
Because one successful POST converts reconnaissance into persistent RCE, php2shell requests are blocked at first sight by WAF or IPS rules, and any logged match warrants an uploads-directory integrity review.
— Imperva Bad Bot Report 2026
How much of your traffic is automated? Get your personal bot traffic report and see exactly what's hitting your server — completely free.
📊 Get My Bot ReportSign up in seconds · No card required
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the bots listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.