Rye House Plot was a plot to assassinate Charles II. and his catholic brother , the Duke of York