Cross Site Scripting (Game Macros)

Discussion in 'Programming' started by twalters84, Dec 30, 2007.

  1. #1
    Hey there,

    I have been playing a game recently and parts of it are very repetitive. Thus, I am trying to create a two frame website with one frame being the game and the other frame being my macro short-cuts.

    Everything was going great until I hit a snag. Apparently, when I try to access the form on the other frame, access is being denied. By accessing, I mean change the value of a radio button and submit the form.

    I understand that there could be security implications with this and that is why the cross-site policy was implemented.

    Because these frames are displaying locally on my own computer, is there anyway to allow cross-site scripting for just these two frames?

    I am thinking javascript is the answer because it is client-side. However, if anybody has any suggestions on how these macros could be created, please let me know. Thanks in advance.

    Sincerely,
    Travis Walters
     
    twalters84, Dec 30, 2007 IP
  2. TwistMyArm

    TwistMyArm Peon

    Messages:
    931
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you're using Firefox, it may pay to look at the Greasemonkey extension. You never know, someone may have already written a script for the game, too. Essentially Greasemonkey allows you to do heaps of things and I believe that 'data input' is one of those things. I could be wrong, though!
     
    TwistMyArm, Dec 30, 2007 IP
    twalters84 likes this.
  3. joebert

    joebert Well-Known Member

    Messages:
    2,150
    Likes Received:
    88
    Best Answers:
    0
    Trophy Points:
    145
    #3
    Use Firefox and Greasemonkey, or Opera and user.js
     
    joebert, Dec 30, 2007 IP
    twalters84 likes this.
  4. twalters84

    twalters84 Peon

    Messages:
    514
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for the great suggestions.

    Worked perfectly!
     
    twalters84, Dec 31, 2007 IP