I'm just a student, still learning programming :)
Interested in cyber-attack
Using Socks4/5 or http proxies to make a multithreading Http-flood/Https-flood (cc) attack.
License: GNU General Public License v2.0
I want to test my servers,and i find a computer with 4 cores of cpu.but when i run this cc-attack,i find that only one core be used and others are free!So the result isn't good, it only has hundreds of Concurrencies.
I hope you can add the support for Multithreading,thanks.
Hope you can be successful with your codes
Traceback (most recent call last):
File "cc.py", line 12, in
import requests
ModuleNotFoundError: No module named 'requests'
how fix?
Traceback (most recent call last):
File "cc.py", line 361, in
main()
File "cc.py", line 302, in main
ip = str(input("> Host/Ip:"))
File "", line 1
79.133.43.229
SyntaxError: invalid syntax
I want you to bring back the port and ip option that use to attack
because the new CC-attack cant attack the normal website and i really love the older one with my friends too
It's easy to use and manual way
Thank you.
如题
以及我觉得现在的输出很不好,建议您换回原来的
Master!
I had a question does cc-attack also hide your ip4 address or not?
Greetz to you!
Hello, can you explain what to put in magnification ?
New versions of running threads get stuck
Can you update the socks list
That would be awesome!
Exception in thread Thread-1920:
Traceback (most recent call last):
File "cc.py", line 213, in cc
proxy = random.choice(proxies).strip().split(":")
File "/usr/lib64/python3.6/random.py", line 260, in choice
raise IndexError('Cannot choose from an empty sequence') from None
IndexError: Cannot choose from an empty sequence
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "cc.py", line 240, in cc
s.close()
UnboundLocalError: local variable 's' referenced before assignment
Exception in thread Thread-1921:
Traceback (most recent call last):
File "cc.py", line 213, in cc
proxy = random.choice(proxies).strip().split(":")
File "/usr/lib64/python3.6/random.py", line 260, in choice
raise IndexError('Cannot choose from an empty sequence') from None
IndexError: Cannot choose from an empty sequence
Hi!
With fresh Python 3 and the latest commit from your repo,
It keeps raising this exception when flooding from many threads.
From tags/v3.4 and older version, It works properly!
Does anyone run into the same problem as me?
Exception in thread Thread-620:
Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 870, in run
self._target(*self._args, **self._kwargs)
File "cc.py", line 293, in cc
proxy = Choice(proxies).strip().split(":")
File "/usr/local/Cellar/python/3.7.6_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/random.py", line 261, in choice
raise IndexError('Cannot choose from an empty sequence') from None
IndexError: Cannot choose from an empty sequence
Hello dear!
Can you pls upgrade socks5 list
You get my star ☆ anyway!
Very thanks!
if you add a www. in the host/ip/target
example: www.target.com
port 443 / ssl enabled is not working
showing thread error
获取代理列表后 验证可用的数量均为0
使用验证好的代理后 未发出数据包 且cpu占用奇高
请问POST数据究竟是怎样自定义?
我试图在脚本目录下创建一个文本文件,然后把数据放在里面,但是攻击时报错!
请说明使用方法,感激不尽!!
Add an option to run the commands on a single line, so you could use the script together from others, such as "cc.py command cc host.com ...."
I think that the python script having hard time sending a CTRL+C command to end the script
Hello, They are some connection error on the slow but with the CC much more, if you I can help or I do something wrong could you tell me ?
请问post数据是直接写在一个文本文件里面,然后使用时直接填写路径,是这样吗,不太懂操作,谢谢!
Do you have a source layer 7 ddos?
Very strong one
Hi sir @Leeon123 , as a suggestion, you could add ratelimit, because many targets when they receive a lot of requests will ban the whole class of IP, etc.
So ratelimit would help circumvent this protection.
You could also add cloudscraper (python) or this library https://github.com/pavlodvornikov/aiocfscrape/tree/na/update-to-latest-cfscrape to bypass cloudflare
String url, hiting all pages on the target (sending requests on all pages)
also some like https: // target //?q=% RANDOM% your script can't send req to this page
So, all these options could be added as an alternative if you want to use them, not by default.
the script cant read cf content
can u make headers like that, or to use custome headers
headers: {
'Connection': 'keep-alive',
'Cache-Control': 'no-cache',
'Pragma': 'no-cache',
'DNT': 1,
'Upgrade-Insecure-Requests': 1,
'User-Agent': user-agents,
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'en-US,en;q=0.9',
'X-Forwarded-For': proxy-etc`
Of course, if you have time you want to do this
Slow attack is not working, dont send any req
1. none | Rps: 0
2. none | Rps: 0
3. none | Rps: 0
4. none | Rps: 0
5. none | Rps: 0
6. none | Rps: 0
7. none | Rps: 0
8. none | Rps: 0
9. none | Rps: 0
10. none | Rps: 0
我希望您能去除限制
Traceback (most recent call last):
File "cc.py", line 11, in
import socks
ModuleNotFoundError: No module named 'socks'
pip3 install requests pysocks not working for me?
ineffective to blogspot ,please help tyvm
could you make the script send requests to any url?
if the url is in https: // target-url / hit or https: //target.url/index.php format. the script does not work
Also headers like that @Leeon123
headers: {
'Accept-Encoding': 'gzip, deflate, br',
'Connection': 'keep-alive',
'Cache-Control': 'max-age=0',
'Referer': url,
'Upgrade-Insecure-Request': 1,
upgrade insiecure requests, etc
Traceback (most recent call last):
File "cc.py", line 11, in
import socks
ModuleNotFoundError: No module named 'socks'
您是否能考虑使用HTTP代理进行攻击?
因为目前的socks4/5代理数量少,容易被封
谢谢!
after reaching the thread of my set example i set a thread of 500
between 415 - 460 connections
Exception in thread Thread-345:ections: 455
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "cc.py", line 294, in slow
s.send("X-a: {}\r\n".format(random.randint(1, 5000)).encode("utf-8"))
File "/usr/lib/python3/dist-packages/socks.py", line 387, in send
return _BaseSocket.send(self, bytes, flags, **kwargs)
ConnectionResetError: [Errno 104] Connection reset by peer
errors shows
Line 360 in 31eb3e7
https://mega.nz/#!oW5ARYLL!CvJliyVd_Up4OqeECzX6KLLQ0jqe2JerwdMLiANWFZI
hi this is the video from the last issue I have encounter hope this can help
when i grab the list of proxy that the script download and go to proxyscrape.com and check it with their online proxy checker it get list of proxy that work but from the script it says Total Worked:0 . please help
how to idk help me and u can giv eme ur discord&
Please leave your Telegram contact information.
I would like to discuss with you about the optimization of your program.
Also, I will reward you some money for upgrading your software. (100$-200$)
A suggestion to add random head, get and post would be great for testing attacks that cheat the cache, cc is very easy to block using two lines in nginx :/
1,希望可以自定义POST提交的参数,这样更有效率
2,自定义cookie,与post一样,放在单独文件中,使用时候提取并发送就好了
3,能否随机生成一些参数,如 baidu.cim/?ref=[$随机生成数字与字母组合]
4,自定义UA
5,伪造IP源
6,最好可以添加破盾参数以应对CDN
我需要怎么做才可以更强大
Why is it that when I put "https" as "n" or port 80, most socks are marked offline?
The first time I used this tool it worked great. Thanks very much for the hard work you put in. Its just since the second time I have been having a problem where it says checking proxy 0 proxys worked. Or maybe sometimes 1 proxy will work. And I try but then it freezes up most likely because I don't have enough proxys Is there a fix you have for that?
我记得之前的版本有SO_REUSEPORT的设置,现在版本去除了是因为不需要了吗
能发个详细点的安装,和使用教程吗?
Not sent attack xit az.. testcookie module have
I have a list of about 1k + proxies but when checked, the script indicator is always no more than 700, so what?
when I try to to attack, script is throwing an error
Exception in thread Thread-384:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "cc.py", line 230, in post
proxy = Choice(proxies).strip().split(":")
File "/usr/lib/python3.6/random.py", line 260, in choice
raise IndexError('Cannot choose from an empty sequence') from None
IndexError: Cannot choose from an empty sequence
Exception in thread Thread-179:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "cc.py", line 230, in post
proxy = Choice(proxies).strip().split(":")
File "/usr/lib/python3.6/random.py", line 260, in choice
raise IndexError('Cannot choose from an empty sequence') from None
IndexError: Cannot choose from an empty sequence
thanks for this wonderful script. it worked great! unfortunately no longer plz fix itxD
Greetz!
let me know it would be powerful if there is a good layer 7 for cloudflare or DDoS-Guard
how to add proxy usernam and password in a custom list?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.