'Wordpress website index.php is injected with malware and code regenerated once deleted and wp-admin is not access

Problem 1: can not access to wp-admin even top logedined bar is visible and body with 500 error as show in picture below black page image
Home page image

Problem 2: can not delete the malware from index.php it again regenerate when refresh as show in the pic. Index.php file image Problem 3: user automatically added to database. user table image

.htacces file image

index.php in wp-admin enter link description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source