Skip to content

ImanMontajabi/TLS-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TLS Checker 🌐

TLS Checker is a Python script for checking the Transport Layer Security (TLS) version and security settings of a list of websites. The script uses multithreading to speed up the process of checking a large number of websites.


Common Issues

نمونه خروجی آماده‌ی استفاده

رفع مشکل pip

رفع مشکل python

در ویندوز ترجیحا از این نسخه‌ی پاورشل به همراه این برنامه‌ی ترمینال استفاده کنید.

برای پیداکردن ساب دامین از این سایت استفاده کنید.

❌ رفع مشکل کار نکردن برنامه در MacOS
در حالت عادی برنامه هیچ دامنه ای رو اسکن نمیکنه و بعد از چند ثانیه اسکن بدون هیچ نتیجه ای تموم میشه که دلیلش لود نشدن لایبرری های ssl هست. برای حل این مشکل کافیه دستور زیر رو داخل ترمینال وارد کنید و دوباره اسکریپت رو اجرا کنید :
ln -s /etc/ssl/* /Library/Frameworks/Python.framework/Versions/Current/etc/openssl

Installation

To use TLS Checker, you will need Python 3.7 or later. You can download Python from the official website:

https://www.python.org/downloads/

Usage

  • Download or clone the repository to your local machine.
  • Open a terminal and navigate to the directory containing the script.
  • Run the script with the following command:

برای اجرا، در محل فایل های برنامه از دستور زیر استفاده کنید:

python tls-checker.py

🗿 ترجیحا موقع اجرا فیلترشکن خاموش باشد.

  • The script will prompt you for the name of the CSV file containing the list of websites you want to check. The CSV file should contain one website per row, with no headers.
  • The script will then prompt you for the number of websites you want to check. This number should be between 1 and the total number of websites in the CSV file.
  • The script will then prompt you for the iso-code of server location (Iran = IR, Germany = DE,....)
  • You can leave this field blank and just press "Enter"
  • Hint: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
  • The script will then begin checking the websites and print the results to the console.
  • The script will also create a JSON file named "result.json" in the same directory as the script. This file will contain the results of the website checks.
  • CSV files sources: here and here
❌ Fix script's issues on MacOS
If you ran into problems using the script, the reason is that MacOS's ssl libraries aren't defined for python, just paste the command below into your terminal and run the script again.
ln -s /etc/ssl/* /Library/Frameworks/Python.framework/Versions/Current/etc/openssl

Screenshots

Screenshot (111)

Screenshot (110)

Screenshot (112)

video

  • The following tutorial video can be a good guide for using this script:

IMAGE ALT TEXT HERE

License

TLS Checker is licensed under the MIT License. See LICENSE for more information.