The other day, I was browsing casually through the web with my laptop. I visited a site that somehow managed to open a popup ad under my notice. This popup ad site I think has malware written all over it, like mining coins in the background and how to make money fast.
I'm the kind of guy who doesn't want to take any risks, so I reset my laptop to factory settings and turn off my wifi because as far as I know, malware can infect your router and change your DNS while also infecting local computer.
Here is a three part question:
1) I have a spare router unused and unopened. Does changing the router fix this hacked wifi or is the gateway still compromised?
2) Is resetting to factory settings enough to eliminate malware or at least keep it at bay? Although rare, I see some cases in which the malware infects the boot partition.
3) My tv cable box is separated from my router but connected through wire. Can the router infect the box or the other way round?