The first thing I should do
is using my FTPprogram/ControlPanel filemanager
and checkout filepermissions.
I hope you know how to do this.
Having 777 on a file is to allow WRITE for anybody.
About your GoDaddy account.
Changing your account password to some really safe password is not such a bad idea.
It is very probable that somebody could crack your password
and has been into your ControlPanel and used your Filemanager to do the hacking.
Here is a 16 chars password.
It is so safe that it is totally impossible to remember.
Typical for a safe password is:
1. Not too short. At least 8-10 characters.
2. Using a mix of allsort of chars, alfabet+numbers+other chars
From my own random password generator:
$password = "R53,\c%+|!k(s7tF"; // 16 chars - totally impossible to remember!