This python script is usefull to get servernames from the 'TLS_Ext_ServerName' using scapy
Make sure you have Python3+ installed
$ git clone https://github.com/hsouna/tls-servername
$ pip install -r requirements.txt
$ python3 get_servername_from_tls.py -h
usage: get_servername_from_tls.py [-h] -f FILENAME [-o OUTPUT_FILE]
optional arguments:
-h, --help show this help message and exit
-f FILENAME, --filename FILENAME
Input file name
-o OUTPUT_FILE, --output-file OUTPUT_FILE
Output file name