Results 1 to 3 of 3

Thread: Python Help

  1. #1
    Just burned his ISO
    Join Date
    Mar 2010

    Default Python Help

    Im currently trying to write a program that resolves all the IPs from any links on a website.
    I've got this to work on most sites

    However on some sites some urls occur which will not resolve eg. '+link1+'

    and my program throws out the error: (when using socket.gethostbyname(url)

    socket.gaierror: (-5, 'No address associated with hostname')

    I've had a look around but cannot seem to find a way to make the program skip the url if it throws up this error.

    Can anyone give me some pointers / advice?


  2. #2
    Super Moderator Archangel-Amael's Avatar
    Join Date
    Jan 2010

    Default Re: Python Help

    Seems like this has already been done (if I understand your post correctly).

  3. #3
    Just burned his ISO
    Join Date
    Mar 2010

    Default Re: Python Help

    yeah im sure it has been done before, however I'm doing the PWB course and was looking for pointers on how to write it myself =]

    i managed to figure it out however, just needed to use my loop in a combination with try: and

    except socket.gaierror:

Similar Threads

  1. Airpwn-Python
    By Shatter in forum Tool Requests
    Replies: 0
    Last Post: 02-13-2010, 07:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts