from Spitzer.scanner import nmapper
from Spitzer.result.result import add

import json

category = ['safe']

def exploit(host, nmap, port):
    if 'script' in nmap and 'ftp-anon' in nmap['script'] and 'Anonymous FTP login allowed' in nmap['script']['ftp-anon']:
        print('ftp anonymous login is allowed for ' + host) 
        add(host, 'ftp', 'ftp anonymous login is allowed for ' + host)
        