How to use AutoPwn in Exploit Pack
Exploit Pack has a feature called AutoPwn that cna be used to automagically try to select the exploit needed to like it name claims "Pwn" the target, while we always recommed to use a more manual approach sometime it's useful if you are too lazy that day, also have in mind that the filter to iterate over the XML files to select the exploits are by ports, references or services running, and as you imagined correctly first it will launch Nmap against the target to obtain these values.
Here in this example we are running AutoPwn against our local environment:
After a few minutes it will start launching the selected exploits, and of course if you have more exploits then it will take more time and also you will have better chances to actually exploit that system.