NIG-AP: a newmethod for automated penetration testing