Energy And Power Systems Simulated Attack Algorithm For Defense Testbed And Analysis