Security Issues In AD-HOC And Infrastructure