after I scan a host and go to securityfocus and identify a given vulnerability..how do I use the exploit?....the come in form of .pl(perl), or .c(C) and even in .exe. How do you run this exploits agains the target machine?

thanks in advance