Is there a way to check javascript of someone else's code?

Discussion in 'JavaScript' started by lv211, Jan 25, 2008.

  1. #1
    I'm running a script on my site and I need to figure out what it is doing. It seems to be obfuscated (or at least I can't figure out what its doing).

    I want to make sure that it can not be used in an xss attack on my site.

    Are there any programs that will let you see the effect of a javascript on the website by showing what functions are being executed on the site itself?
     
    lv211, Jan 25, 2008 IP
  2. webexpert

    webexpert Banned

    Messages:
    188
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ofcourse possible if code is open (free from any encryption) :)
     
    webexpert, Jan 25, 2008 IP
  3. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Of course.

    Most js encryption methods are easily bypassed and none are 100% foolproof. Post a link or the code.
     
    MMJ, Jan 25, 2008 IP
  4. ltdraper

    ltdraper Peon

    Messages:
    30
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Run it through a code formatter, such as javascript.about.com/b/2007/06/02/format-your-javascript.htm

    Or open it in Firebug and have a look. If your browser can read it, so can you.
     
    ltdraper, Feb 1, 2008 IP