'''This will run the exploit that tests whether it was patched or not'''
# from resources import exploits
from resources.exploits import struts_0
from resources.exploits import struts_1
def exploit(program_name, version):
    '''Runs the exploit on the program'''
    if program_name == 'struts':
        if '0' in version:
            struts_0.exploit()
        elif '1' in version:
            struts_1.exploit()
