D
D
DastM2019-01-15 11:54:48
Python
DastM, 2019-01-15 11:54:48

How to connect Python vulnerability scanner and Vulners vulnerability database?

Guys, tell me please.
There is a simple host port scanner, how else can I do it to scan the host for vulnerabilities from Vulners?
Here is the port scanner

import socket
import sys

mas = [20, 21, 22, 23, 25, 42, 43, 53, 67, 69, 80, 110, 115, 123, 137, 138, 139, 143, 161, 179, 443, 445, 514, 515, 993, 995]
print (" ")
host = input('Введите имя сайта или IP адрес: ')
print ("--------------------------------")
print (" Сканирование порто!")
print ("--------------------------------")
for port in mas:
    s = socket.socket()
    s.settimeout(1)
    try:
        s.connect((host, port))
    except socket.error:
        pass
    else:
        s.close
        print (host + ': ' + str(port) + ' порт активен')
print ("--------------------------------")
print ("Процесс завершен")

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2019-01-15
@ulkoart

maybe this will help:
api

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question