Cenzic 232 Patent
Paid Advertising
sla.ckers.org is
ha.ckers sla.cking
Sla.ckers.org
How do we crash systems, browsers, or otherwise bring things to a halt, and how do we protect those things? 
Go to Topic: PreviousNext
Go to: Forum ListMessage ListNew TopicSearchLog In
F5 key automated through linux command/script?
Posted by: apasajja
Date: May 22, 2010 07:08AM

hello,

im web developer and using various stress tools, including Slowloris and traditional F5 refresh key.

but does anyone know any way to automatically pressing F5 keys very rapidly. it can be linux command or script

thanks in advance.

Options: ReplyQuote
Re: F5 key automated through linux command/script?
Posted by: Skyphire
Date: May 22, 2010 08:58AM

Write a bash script I guess.

Options: ReplyQuote
Re: F5 key automated through linux command/script?
Posted by: Anonymous User
Date: May 23, 2010 02:20PM

Something like this (I didn't test - just blind-typed...)?

while(window.name < 5)location.reload(),name?name+=1:name=1



Edited 1 time(s). Last edit at 05/23/2010 02:20PM by .mario.

Options: ReplyQuote
Re: F5 key automated through linux command/script?
Posted by: apasajja
Date: May 24, 2010 02:41AM

thanks..
is it bash script?

I got this message after run in terminal:
bash: syntax error near unexpected token `location.reload'

I dont really understand it, can you tell me how to know the "name"?


thanks

Options: ReplyQuote
Re: F5 key automated through linux command/script?
Posted by: Anonymous User
Date: May 24, 2010 03:17AM

It's JS - I assumed in case you want to stress test a website you can add this script to the website's markup. Window.name is just a way to store a JS variable "permanently" - making sure it survives the refresh.

Options: ReplyQuote
Re: F5 key automated through linux command/script?
Posted by: apasajja
Date: May 27, 2010 09:07PM

Thanks.

but it refresh too fast, even the page not loaded. anyone know how to put limit on specific refresh/sec ?

Options: ReplyQuote
Re: F5 key automated through linux command/script?
Posted by: Skyphire
Date: May 28, 2010 07:23AM

<script>

window.setInterval("foo()", 1000);

function foo() {
    document.location = location.href;
}

</script>

Options: ReplyQuote


Sorry, only registered users may post in this forum.