Fix broken check in exploit module

See 71d6b37088183758563f3ba6639ed608ca0604d1.