This script can help users extract the IP address associated with a specific SSL certificate serial number. By leveraging the socket connection and SSL/TLS handshake, the script is able to retrieve the certificate's serial number and use the FOFA search engine to query all IP addresses that share the same certificate serial number.
Features:
1.Retrieve the IP address associated with the SSL certificate serial number.
2.Supports custom domain names and ports for SSL connections.
3.The connection timeout can be customized.
4.Displays the queried domain name, certificate serial number, and IP address list.
5.Perform batch queries by importing a domain name list in a text file.
6.Export query results to a text file for reference.
Python installs dependent libraries:
To install the required dependencies, use the following command:
pip install cryptography requests beautifulsoup4
Tool usage
Run the script using the command line interface
python main.py [domain] [--port PORT] [--timeout TIMEOUT] [--file FILE] [--output OUTPUT]
domain: The domain name of the SSL certificate IP to be queried.
--port (optional): Specify the port number for the SSL connection (default is 443).
--timeout (optional): Set the timeout for socket connections (default is 10000 milliseconds).
--file (optional): Provide the file path containing the domain name and port for batch query, in the format of domain:port.
--output (optional): Specify the output file path where the results are saved. If not provided, the results will be displayed in the console.
Features:
1.Retrieve the IP address associated with the SSL certificate serial number.
2.Supports custom domain names and ports for SSL connections.
3.The connection timeout can be customized.
4.Displays the queried domain name, certificate serial number, and IP address list.
5.Perform batch queries by importing a domain name list in a text file.
6.Export query results to a text file for reference.
Python installs dependent libraries:
To install the required dependencies, use the following command:
pip install cryptography requests beautifulsoup4
Tool usage
Run the script using the command line interface
python main.py [domain] [--port PORT] [--timeout TIMEOUT] [--file FILE] [--output OUTPUT]
domain: The domain name of the SSL certificate IP to be queried.
--port (optional): Specify the port number for the SSL connection (default is 443).
--timeout (optional): Set the timeout for socket connections (default is 10000 milliseconds).
--file (optional): Provide the file path containing the domain name and port for batch query, in the format of domain:port.
--output (optional): Specify the output file path where the results are saved. If not provided, the results will be displayed in the console.