fixed get attacker input and submit calc scripts

there were some syntax and logic errors