superhedgy / AttackSurfaceMapper

AttackSurfaceMapper is a tool that aims to automate the reconnaissance process.
https://AttackSurfaceMapper.com
GNU General Public License v3.0
1.3k stars 192 forks source link

Pull Request #45

Closed Smurkulator closed 12 months ago

Smurkulator commented 1 year ago

[+] added import of functools and concurrent.futures libraries [+] added lru_cache decorator to resolve_domain function to cache resolved DNS queries and improve performance [+] modified resolve_domain function to use ThreadPoolExecutor from concurrent.futures to resolve DNS queries in parallel and improve performance [+] added try-except block to handle exceptions in resolve_domain function [+] added IP variable as list to store multiple IP addresses returned from socket.getaddrinfo function [+] added print statement to display exception message in case of failure in resolving DNS queries.