Attacks And Countermeasures In Communications And Power Networks