Jump to content

Recommended Posts

Posted
LOL

BTW: Still haven't gotten it to work

Might I direct you to my picture... paulsonfail.jpg

Posted

I had to tab out the originally posted code to get it to work:

import urllib2
subs = ["www","wi","wik","wiki","forum","forum"]
for sub in subs:
        site ="http://"+sub+".hak5.org"
        try:
                urllib2.urlopen(site).readlines()
                print site
        except:
                pass

But after that it worked like a champ.

Posted

^Thanks!

I had to tab out the originally posted code to get it to work:

import urllib2
subs = ["www","wi","wik","wiki","forum","forum"]
for sub in subs:
        site ="http://"+sub+".hak5.org"
        try:
                urllib2.urlopen(site).readlines()
                print site
        except:
                pass

But after that it worked like a champ.

Thanks, I'll give it a go!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...