Just download the zip/tarball of the Drupal version you are using from Drupal.org:
Uncompress it locally, and then copy index.php up to your server.
Also, never ever do that again, and more importantly be more careful, because next time it might be a file you can't just easily replace.