Re: urlopen exception

Discussion in 'Python' started by Paul Rubin, Jan 10, 2009.

  1. Paul Rubin

    Paul Rubin Guest

    asit <> writes:
    > site="www.bput.org"
    > payloads="<script>alert('xss')</script>"
    > attack= urllib2.urlopen(site+payloads,80).readlines()
    >
    > according to my best knowledge, the above code is correct.
    > but why it throws exceptio ????


    The code is incorrect. Look at the string ou are sending into
    urlopen. What on earth are you trying to do?
    Paul Rubin, Jan 10, 2009
    #1
    1. Advertising

  2. Paul Rubin

    Steve Holden Guest

    Paul Rubin wrote:
    > asit <> writes:
    >> site="www.bput.org"
    >> payloads="<script>alert('xss')</script>"
    >> attack= urllib2.urlopen(site+payloads,80).readlines()
    >>
    >> according to my best knowledge, the above code is correct.
    >> but why it throws exceptio ????

    >
    > The code is incorrect. Look at the string ou are sending into
    > urlopen. What on earth are you trying to do?


    He's investigating potential cross-site scripting vulnerabilities.

    regards
    Steve
    --
    Steve Holden +1 571 484 6266 +1 800 494 3119
    Holden Web LLC http://www.holdenweb.com/
    Steve Holden, Jan 11, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. MAK
    Replies:
    5
    Views:
    522
    Mike Brown
    Aug 22, 2003
  2. Xu, C.S.
    Replies:
    5
    Views:
    462
    John J. Lee
    Sep 17, 2003
  3. Chris Withers

    urllib.urlopen with threads

    Chris Withers, Oct 9, 2003, in forum: Python
    Replies:
    0
    Views:
    307
    Chris Withers
    Oct 9, 2003
  4. Chris Withers

    Re: urllib.urlopen with threads

    Chris Withers, Oct 9, 2003, in forum: Python
    Replies:
    0
    Views:
    392
    Chris Withers
    Oct 9, 2003
  5. Chris
    Replies:
    0
    Views:
    1,033
    Chris
    Jul 10, 2005
Loading...

Share This Page