import socket, subprocess

def main():
    address = socket.gethostbyname('google.com')
    nmap_cmd = 'nmap -sV --script=banner ' + address

    nmap_output = subprocess.call(nmap_cmd, shell=True)
    print(nmap_output)

if __name__ == '__main__':  
      main()
