Here is what Google says:

Clean and maintain your hacked site

You’ll need:

Shell/terminal administrator access to your site’s servers: web, database, files

Knowledge of shell/terminal commands

Understanding of code (such as PHP or JavaScript)

Storage to create backups of your site (including the files, database, images, etc.)

read more…