{"id":13674,"date":"2019-01-15T15:02:46","date_gmt":"2019-01-15T12:02:46","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/%d8%a3%d8%af%d9%88%d8%a7%d8%aa-%d8%a7%d9%84%d9%82%d8%b1%d8%b5%d9%86%d8%a9-c99-shell\/"},"modified":"2026-11-21T11:53:35","modified_gmt":"2026-11-21T08:53:35","password":"","slug":"hacking-tools-c99-shell","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/hacking-tools-c99-shell\/","title":{"rendered":"What Is a C99 Shell? How It Gets In and How to Find and Remove It"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>In short<\/b>C99 is one of the best-known web shells: a malicious PHP file an attacker uploads to your site to control files and the database from a browser and send spam. It usually gets in through an outdated plugin, a nulled theme or an unprotected upload form. You find it by scanning files and spotting strange PHP files, and you stop it by updating and disabling PHP in the uploads folder.<\/div>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/10\/hkb-web-shell.webp\" alt=\"A malicious web shell script hidden among website files, and a protective shield\" width=\"1200\" height=\"630\" loading=\"lazy\" \/><\/figure>\n<h2>What is a web shell?<\/h2>\n<p>A web shell is a script that gives whoever opens it in a browser a full control panel over your site: browse and edit files, read the database, upload new files and run commands on the server. C99 is one of the oldest and most famous, and many modified copies exist under other names.<\/p>\n<h2>How does it get into your site?<\/h2>\n<div class=\"hkb-cards\">\n<div class=\"hkb-card\"><i>1<\/i><b>Outdated plugin or theme<\/b><span>A known flaw that allows uploading a file without logging in.<\/span><\/div>\n<div class=\"hkb-card\"><i>2<\/i><b>Nulled copies<\/b><span>\u201cFree\u201d themes and plugins from unofficial sites with the shell hidden inside.<\/span><\/div>\n<div class=\"hkb-card\"><i>3<\/i><b>Unprotected upload form<\/b><span>A form that accepts any file type, so the attacker uploads PHP disguised as an image.<\/span><\/div>\n<div class=\"hkb-card\"><i>4<\/i><b>Stolen password<\/b><span>Logging into WordPress or FTP and uploading the file directly.<\/span><\/div>\n<\/div>\n<h2>Signs it is on your site<\/h2>\n<ul class=\"hkb-list\">\n<li>PHP files inside <code>wp-content\/uploads<\/code>, a folder that should hold only images and files.<\/li>\n<li>Files with odd names, or names that mimic WordPress core files in the wrong place.<\/li>\n<li>Long, obfuscated code using functions like <code>eval<\/code>, <code>base64_decode<\/code> and <code>gzinflate<\/code>.<\/li>\n<li>Spam leaving your account, or a hosting alert about high sending.<\/li>\n<li>A new admin user you do not recognize, or visitors being redirected to other sites.<\/li>\n<\/ul>\n<h2>How to remove it and clean your site<\/h2>\n<ol class=\"hkb-steps\">\n<li><b>Back up the current state:<\/b> Even infected, you need it to review what happened.<\/li>\n<li><b>Scan your files:<\/b> Run an <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/cxs-tool-from-configserver\/\">ImunifyAV<\/a> scan from cPanel; it lists infected files and cleans them.<\/li>\n<li><b>Delete malicious files and look for more:<\/b> Attackers usually leave more than one backdoor. Check theme, plugin and upload folders.<\/li>\n<li><b>Update everything and remove what you do not use:<\/b> WordPress, plugins and themes, and replace any nulled copy with the official one.<\/li>\n<li><b>Change every password:<\/b> WordPress, cPanel, FTP, database and email.<\/li>\n<li><b>Or restore a clean backup:<\/b> If you have a backup from before the infection, restoring it and then updating is faster and safer. Follow the steps to remove malware from WordPress.<\/li>\n<\/ol>\n<h2>Prevent it: disable PHP in the uploads folder<\/h2>\n<p>The uploads folder never needs to run PHP. Create a file named <code>.htaccess<\/code> inside <code>wp-content\/uploads<\/code> with the cPanel File Manager and add:<\/p>\n<pre class=\"hkb-code\">&lt;FilesMatch &quot;\\.(php|phtml|php5|php7|phar)$&quot;&gt;\n  Require all denied\n&lt;\/FilesMatch&gt;<\/pre>\n<p>After that, even if a shell is uploaded to this folder, it will not run.<\/p>\n<div class=\"hkb-hh\">\n<h2>How Hyyat Host protects your site<\/h2>\n<ul>\n<li><strong>ImunifyAV<\/strong> scans website files daily, and <strong>Imunify360<\/strong> detects known web shells and blocks their upload.<\/li>\n<li><strong>ModSecurity<\/strong> rules stop known upload and exploit requests before they reach your site.<\/li>\n<li>Account isolation with <strong>CloudLinux<\/strong>, so an infected site cannot spread to yours.<\/li>\n<\/ul>\n<\/div>\n<h2>Frequently asked questions<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>Is deleting the shell file enough?<\/summary>\n<p>Usually not. Attackers leave more than one backdoor, and the original way in (an old plugin or a password) is still open. Clean the whole site and close the cause.<\/p>\n<\/details>\n<details>\n<summary>Will disabling PHP in uploads break my site?<\/summary>\n<p>No, because the uploads folder holds images and files only. A few plugins may store PHP files there, so test your site after the change.<\/p>\n<\/details>\n<details>\n<summary>Can you help me clean a hacked site?<\/summary>\n<p>Yes. Open a ticket and we will help you scan, read the logs and find the cause of the infection.<\/p>\n<\/details>\n<\/div>\n<div class=\"hy-svc2\" dir=\"ltr\" style=\"margin:22px 0;padding:14px 18px;border:1px solid #E3EAF3;border-inline-start:4px solid #F7931E;border-radius:10px;background:#F4F7FB\"><b style=\"display:block;margin-bottom:4px;color:#0b2a55\">Want someone to look after your site for you?<\/b><span>Technical support and maintenance for WordPress sites and forums.<\/span> <a href=\"https:\/\/www.hyyat.com\/en\/technical-support\/\" style=\"font-weight:700;color:#1557B0\">Technical support and maintenance \u2192<\/a><\/div>\n<div class=\"hkb-rel\"><b>Related guides<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/protect-website-from-hacking\/\">How to Keep Your Website Secure: Practical Tips to Prevent Hacking<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/brute-force-protection\/\">Brute Force Protection: What It Is and How Hyyat Host Protects Your Site<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/wordpress-load-scripts-vulnerability\/\">The WordPress load-scripts.php Vulnerability (CVE-2018-6389) and How to Protect Your Site<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/protect-customer-data\/\">How to Protect Your Customers\u2019 Data on Your Website: A Practical Guide<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.hyyat.com\/en\/kb\/website-protection\/\">All website security guides \u2192<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In shortC99 is one of the best-known web shells: a malicious PHP file an attacker uploads to your site to control files and the database from a browser and send spam. It usually gets in through an outdated plugin, a nulled theme or an unprotected upload form. You find it by scanning files and spotting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":19641,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2744],"doc_tag":[],"class_list":["post-13674","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-website-protection"],"year_month":"2026-11","word_count":661,"total_views":"462","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"admin","author_nicename":"admin","author_url":"https:\/\/www.hyyat.com\/en\/author\/admin\/"},"doc_category_info":[{"term_name":"Website Security","term_url":"https:\/\/www.hyyat.com\/en\/kb\/website-protection\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/13674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=13674"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/13674\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media\/19641"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=13674"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=13674"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=13674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}