-
Notifications
You must be signed in to change notification settings - Fork 2
!notes
Artëm Tsvetkov edited this page Jan 20, 2020
·
3 revisions
gpg --keyserver hkp://keys.gnupg.net --recv-key ED444FF07D8D0BF6
gpg --fingerprint ED444FF07D8D0BF6
wget -q -O - archive.kali.org/archive-key.asc | apt-key add
apt update
apt install kali-archive-keyring#!/usr/bin/env python3
from bs4 import BeautifulSoup as BS
from pathlib import Path
'''
nmap -Pn -n -vvv --script ssl-enum-ciphers -p 443 -oA nmap.ssl -iL hosts
'''
xml = Path('nmap.ssl.xml')
if not xml.exists():
exit(f'{xml} not found!')
soup = BS(xml.read_text(), 'lxml')
print(f'] TLSv1.0'.rjust(30, '='))
for host in soup.find_all('host'):
_ip = host.find('address')['addr']
for port in host.find_all('port'):
_port = port['portid']
script = port.find('script')
if not script:
continue
output = script['output']
if 'TLSv1.0' not in output:
continue
print(f'{_ip}:{_port}')