Page 1 of 2 12 LastLast
Results 1 to 15 of 16

Thread: why can't I crash browsers by embedding the same page in the page?

  1. #1
    Your very own Pikachu! Banned Peegee's Avatar
    Join Date
    Mar 2001
    Posts
    19,488
    Blog Entries
    81

    Grin why can't I crash browsers by embedding the same page in the page?

    assume for example that eoff allowed html file embedding (good thing it doesn't). The rest will be in pseudocode:

    html
    body
    embed src="same file name as this file"
    /body
    /html

    When I thought of that, the first thing that came to mind is 'infinite loop leading to an error. Yet it doesn't do that. Sometimes it doesn't embed, and sometimes it embeds once. Why once, and not a million times?

  2. #2
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Try iframes instead. I'm not responsible for what happens though, since I've not tried that myself so dunno how browsers would behave
    Problems playing downloaded videos? Try CCCP


  3. #3

    Join Date
    Nov 2003
    Location
    Sup
    Posts
    1,010
    Contributions
    • Former Administrator
    • Former Cid's Knight
    • Former Senior Site Staff

    Default

    I got a windows nt4 machine running IE5 to crash by making a page with infinite frames like that, but I think browsers are smarter than that now. Not sure, though.
    goku

  4. #4

    Default

    Try <a href = "http://www.gentoo.org">this,</a> you foolish IE user.

    Wait, what?


    Actually, I'll mess around with this tomorrow to see what it does. The browser shouldn't matter, since that's handled on the server side. I think it is, at least.

  5. #5
    Last Exile Baloki's Avatar
    Join Date
    Sep 2003
    Location
    Dreaming a dream~
    Posts
    8,425
    Articles
    5
    Blog Entries
    2

    FFXIV Character

    Baloki Kyuu (Sargatanas)
    Contributions
    • Former Senior Site Staff

    Default

    Embed scripts are mainly a netscape feature
    while bgsound and Iframes are mainly an IE feature.

    Edit: Please note the words in bold.
    Last edited by Baloki; 02-01-2004 at 10:59 AM.
    FOA

  6. #6
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Used to be rather, since I get both in Mozilla, and iframes in an old version of Opera
    Problems playing downloaded videos? Try CCCP


  7. #7

    Default

    I was thinking of SSI. Silly me.

    *tries that*

    EDIT: Ok, with SSI, the file CAN call itself - however, when it tries to call itself again, you get a [an error occurred while processing this directive] message and it continues on in the called file.
    Last edited by Doomgaze; 02-02-2004 at 06:03 AM.

  8. #8
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    Server software probably has built-in safeguards against recursively obliterating itself through included files like that.

  9. #9
    Prinny God Recognized Member Endless's Avatar
    Join Date
    Aug 2000
    Location
    Prinny Moon
    Posts
    2,641
    Contributions
    • Former Cid's Knight

    Default

    Javascript is the way to go to saturate memory. Just put a variable that you increase in an infinite loop and there you go.

    And then there is Death

  10. #10
    Your very own Pikachu! Banned Peegee's Avatar
    Join Date
    Mar 2001
    Posts
    19,488
    Blog Entries
    81

    Grin

    okay thanks. It doesn't work with either embed src or iframe

    *learns javascript*

  11. #11

    Default

    Originally posted by Dr Unne
    Server software probably has built-in safeguards against recursively obliterating itself through included files like that.
    It's always more fun if you make your host's server melt down.

  12. #12
    Hypnotising you crono_logical's Avatar
    Join Date
    May 2001
    Location
    Back in Time
    Posts
    9,313
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    Originally posted by Pureghetto
    okay thanks. It doesn't work with either embed src or iframe

    *learns javascript*
    I think IE has safeguards against that - if a script runs for too long at too high a CPU load, it'll pause the script and ask if you want to terminate it or not
    Problems playing downloaded videos? Try CCCP


  13. #13
    Silent Emotion Rainecloud's Avatar
    Join Date
    Sep 2000
    Location
    England
    Posts
    5,345
    Articles
    70
    Contributions
    • Former Site Staff

    Default

    Just out of interest, PG, why do you want to do this? O_o
    "As the days go by, we face the increasing inevitability that we are alone in a godless,
    uninhabited, hostile and meaningless universe. Still, you've got to laugh, haven't you?"

  14. #14

    Default

    I don't really know how to do this in javascript. I think its got safeguards against it, but I did it accidently in php, so if your really that interested, I can tell you how I did it in php

    Out of 15 records I had, when the computer crashed it was on record 75000 or so
    --Cal

  15. #15
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    It's not hard to write a program to crash a server, but yeah, I'd question why you would want to do such thing. My hosts, for example, will terminate the account of anyone who makes a habit of doing things that eat too much resources.

    Anyways you can use a fork bomb. Note, I hope you aren't stupid enough to do this, and if you are, don't blame me.

    #!/usr/bin/perl
    fork while 1;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •