hposton / python-for-cybersecurity

This repository holds the Python scripts discussed in the Infosec Institute's Python for Cybersecurity learning Path
GNU General Public License v3.0
327 stars 202 forks source link

Added try/catch to ReverseDNS() #2

Closed InvaderKrim closed 3 years ago

InvaderKrim commented 3 years ago

I was running the DNSExploration.py recipe, and got a socket error when the host could not be found in the ReverseDNS() function. Added a Try/Catch block to handle this and the script has the expected output now.

Initial error output and try/catch output are attached.

error1-herror.txt output.txt