Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. A javascript trick

A javascript trick

Scheduled Pinned Locked Moved The Lounge
javajavascripthtmlsecuritytools
25 Posts 10 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Chris S Kaiser

    Sure. Copy the javascript, and paste it directly into the url field without the url. Just the javascript. And hit enter.

    What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

    I Offline
    I Offline
    Igor Vigdorchik
    wrote on last edited by
    #8

    BTW, it does not work in FF, only in IE.

    U 1 Reply Last reply
    0
    • C Chris S Kaiser

      Say you have a wireless router, and you don't really want to restrict too much, but your neighbor keeps using your bandwidth. Sure you could tighten up the security and kick him/her out, but another option is to setup in your configurations a valid set of ips and mess with the others. One trick is to reverse all the text in the html, but another one could be the injection of some java script. Here's one: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0); Please forgive the horrible formatting. Stuff this in your browser at a site with a lot of images... think ghosts flying. Client side effect only.

      What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

      P Offline
      P Offline
      Paul Watson
      wrote on last edited by
      #9

      hehe. Lets just hope the thief isn't skilled enough to get into the unrestricted setup and do the trick right back at you.

      regards, Paul Watson Ireland & South Africa

      Shog9 wrote:

      I don't see it happening, at least not until it becomes pointless.

      J C 2 Replies Last reply
      0
      • I Igor Vigdorchik

        BTW, it does not work in FF, only in IE.

        U Offline
        U Offline
        Uwe Keim
        wrote on last edited by
        #10

        In my FF, it does work!

        -- Try our Windows-based CMS: www.zeta-producer.com Try our ticket helpdesk system: www.zeta-helpdesk.com See me working: www.magerquark.com

        I 1 Reply Last reply
        0
        • P Paul Watson

          hehe. Lets just hope the thief isn't skilled enough to get into the unrestricted setup and do the trick right back at you.

          regards, Paul Watson Ireland & South Africa

          Shog9 wrote:

          I don't see it happening, at least not until it becomes pointless.

          J Offline
          J Offline
          Johan Pretorius
          wrote on last edited by
          #11

          Dont let kyle see it!


          Artificial Intelligence is no match for Natural Stupidity
          No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
          I can't always be wrong ... or can I?

          C 1 Reply Last reply
          0
          • U Uwe Keim

            In my FF, it does work!

            -- Try our Windows-based CMS: www.zeta-producer.com Try our ticket helpdesk system: www.zeta-helpdesk.com See me working: www.magerquark.com

            I Offline
            I Offline
            Igor Vigdorchik
            wrote on last edited by
            #12

            Interesting. In my FF (2.0.0.1) it just shows "200" in the upper left corner on the otherwise blank screen.

            1 Reply Last reply
            0
            • P Paul Watson

              hehe. Lets just hope the thief isn't skilled enough to get into the unrestricted setup and do the trick right back at you.

              regards, Paul Watson Ireland & South Africa

              Shog9 wrote:

              I don't see it happening, at least not until it becomes pointless.

              C Offline
              C Offline
              Chris S Kaiser
              wrote on last edited by
              #13

              Oh now that would be messed up. There should be a law against that or sumpin'. :laugh:

              What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

              1 Reply Last reply
              0
              • J Johan Pretorius

                Dont let kyle see it!


                Artificial Intelligence is no match for Natural Stupidity
                No one can understand the truth until he drinks of coffee's frothy goodness. ~Sheik Abd-al-Kadir
                I can't always be wrong ... or can I?

                C Offline
                C Offline
                Chris S Kaiser
                wrote on last edited by
                #14

                Damn. You said the K-word.

                What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                D 1 Reply Last reply
                0
                • I Igor Vigdorchik

                  What does it have to do with a wireless router?

                  C Offline
                  C Offline
                  Chris S Kaiser
                  wrote on last edited by
                  #15

                  Well, you have the option of intercepting all html since you're at the access point. So, theoretically you could reinterpret any html coming down the pipe. With that you can plug in anything you want. Hence in this case, you can make all the images fly around like ghosts on their page. After a while, the offending bandwidth hijacker would hopefully get frustrated and stop stealing bandwidth.

                  What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                  I 1 Reply Last reply
                  0
                  • C Chris Losinger

                    look at all the little CP heads flying around! sweet.

                    image processing toolkits | batch image processing | blogging

                    D Offline
                    D Offline
                    David Wulff
                    wrote on last edited by
                    #16

                    I feel seasick. X| :)


                    Ðavid Wulff What kind of music should programmers listen to?
                    Join the Code Project Last.fm group | dwulff
                    I'm so gangsta I eat cereal without the milk

                    1 Reply Last reply
                    0
                    • C Chris S Kaiser

                      Damn. You said the K-word.

                      What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                      D Offline
                      D Offline
                      David Wulff
                      wrote on last edited by
                      #17

                      It's ok, it's term time even for the homeschooled. :cool:


                      Ðavid Wulff What kind of music should programmers listen to?
                      Join the Code Project Last.fm group | dwulff
                      I'm so gangsta I eat cereal without the milk

                      C 1 Reply Last reply
                      0
                      • D David Wulff

                        It's ok, it's term time even for the homeschooled. :cool:


                        Ðavid Wulff What kind of music should programmers listen to?
                        Join the Code Project Last.fm group | dwulff
                        I'm so gangsta I eat cereal without the milk

                        C Offline
                        C Offline
                        Chris S Kaiser
                        wrote on last edited by
                        #18

                        :cool:

                        What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                        1 Reply Last reply
                        0
                        • C Chris S Kaiser

                          Well, you have the option of intercepting all html since you're at the access point. So, theoretically you could reinterpret any html coming down the pipe. With that you can plug in anything you want. Hence in this case, you can make all the images fly around like ghosts on their page. After a while, the offending bandwidth hijacker would hopefully get frustrated and stop stealing bandwidth.

                          What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                          I Offline
                          I Offline
                          Igor Vigdorchik
                          wrote on last edited by
                          #19

                          I did not know about it. Thanks a lot for your explanation.

                          C 1 Reply Last reply
                          0
                          • I Igor Vigdorchik

                            I did not know about it. Thanks a lot for your explanation.

                            C Offline
                            C Offline
                            Chris S Kaiser
                            wrote on last edited by
                            #20

                            Sure, your welcome.

                            What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                            1 Reply Last reply
                            0
                            • C Chris S Kaiser

                              Say you have a wireless router, and you don't really want to restrict too much, but your neighbor keeps using your bandwidth. Sure you could tighten up the security and kick him/her out, but another option is to setup in your configurations a valid set of ips and mess with the others. One trick is to reverse all the text in the html, but another one could be the injection of some java script. Here's one: javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.images; DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5); void(0); Please forgive the horrible formatting. Stuff this in your browser at a site with a lot of images... think ghosts flying. Client side effect only.

                              What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                              C Offline
                              C Offline
                              Chris McGlothen
                              wrote on last edited by
                              #21

                              Beauty little piece of chaos. Thanks!


                              An American football fan - Go Seahawks! Lil Turtle

                              C 1 Reply Last reply
                              0
                              • C Chris McGlothen

                                Beauty little piece of chaos. Thanks!


                                An American football fan - Go Seahawks! Lil Turtle

                                C Offline
                                C Offline
                                Chris S Kaiser
                                wrote on last edited by
                                #22

                                Your welcome!

                                Lil Turtle wrote:

                                Go Seahawks!

                                Those poor Cowboys.... such a shame.

                                What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                                C 1 Reply Last reply
                                0
                                • C Chris S Kaiser

                                  Your welcome!

                                  Lil Turtle wrote:

                                  Go Seahawks!

                                  Those poor Cowboys.... such a shame.

                                  What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                                  C Offline
                                  C Offline
                                  Chris McGlothen
                                  wrote on last edited by
                                  #23

                                  Chris S Kaiser wrote:

                                  .... such a shame

                                  {modify} You're not a Cowboys fan are you? {/modify} Yea, we got really lucky and squeaked out of that one. But I'll tell you what, I've never heard a stadium explode like that in all my life. I'm still trying to get my voice back! Next stop Chicago!


                                  An American football fan - Go Seahawks! Lil Turtle

                                  C 1 Reply Last reply
                                  0
                                  • C Chris McGlothen

                                    Chris S Kaiser wrote:

                                    .... such a shame

                                    {modify} You're not a Cowboys fan are you? {/modify} Yea, we got really lucky and squeaked out of that one. But I'll tell you what, I've never heard a stadium explode like that in all my life. I'm still trying to get my voice back! Next stop Chicago!


                                    An American football fan - Go Seahawks! Lil Turtle

                                    C Offline
                                    C Offline
                                    Chris S Kaiser
                                    wrote on last edited by
                                    #24

                                    Lil Turtle wrote:

                                    But I'll tell you what, I've never heard a stadium explode like that in all my life. I'm still trying to get my voice back!

                                    Hahahahaha! Good for you. ;P Too bad I'm a misplaced Cowboys fan.

                                    What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                                    C 1 Reply Last reply
                                    0
                                    • C Chris S Kaiser

                                      Lil Turtle wrote:

                                      But I'll tell you what, I've never heard a stadium explode like that in all my life. I'm still trying to get my voice back!

                                      Hahahahaha! Good for you. ;P Too bad I'm a misplaced Cowboys fan.

                                      What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                                      C Offline
                                      C Offline
                                      Chris McGlothen
                                      wrote on last edited by
                                      #25

                                      It's all good just think how well they'll do next year with a more seasoned Romo and maybe no more of that guy who spends so much time whining to the media.:->


                                      An American football fan - Go Seahawks! Lil Turtle

                                      1 Reply Last reply
                                      0
                                      Reply
                                      • Reply as topic
                                      Log in to reply
                                      • Oldest to Newest
                                      • Newest to Oldest
                                      • Most Votes


                                      • Login

                                      • Don't have an account? Register

                                      • Login or register to search.
                                      • First post
                                        Last post
                                      0
                                      • Categories
                                      • Recent
                                      • Tags
                                      • Popular
                                      • World
                                      • Users
                                      • Groups