Fred (pokemon lab bot) source
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Full source of "Fred". To run these files, you must have python 2.7. Copy the source to notepad/python and save as ~(you can't change the name without changing the source).py. But please, we don't need 5 bots.
 
HomeLatest imagesSearchRegisterLog in

 

 -stresser.py-

Go down 
AuthorMessage
Admin
Admin



Posts : 22
Join date : 2011-09-21

-stresser.py- Empty
PostSubject: -stresser.py-   -stresser.py- EmptyWed Sep 21, 2011 8:32 pm

-C-h-a-n-g-e-s--------------------
--(Code by Cathy[who made pokemon lab]) Pulled source from http://trac.poke-lab.com/browser
-------------------------------------
-S-o-u-r-c-e-----------------------
Code:
#!/usr/bin/python

from bot import *
from pyfred import *
from challenger import *
from parser import *
import time
from multiprocessing import Process
import sys

def stresser():
    pool = []
    p = Process(target=start_pyfred)
    p.start()
    pool.append(p)
    time.sleep(2)
    for i in range(0, 100):
        p = Process(target=start_challenger, args=('localhost', 8446, 'challenger%i' % i, 'test'))
        p.start()
        pool.append(p)
        time.sleep(0.01)
    return pool

def main(argv):
    while True:
        q = stresser()
        #time.sleep(30)
        for i in q:
            i.terminate()
        time.sleep(2)

if __name__ == '__main__':
    os.close(sys.stderr.fileno()) # hide pointless stack traces
    main(sys.argv)
-------------------------------------
Back to top Go down
https://pokelabfred.forumotion.com
 
-stresser.py-
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Fred (pokemon lab bot) source :: Source code-
Jump to: