Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question