This is pointless as, for this to take place. U have to commandeer the victims pc to make any changes to the host file or proxy setting etc. If you have control of the pc, why use this techniques to get a password ? simple key logger will be enough .