Leeon123 / CC-attack

Using Socks4/5 or http proxies to make a multithreading Http-flood/Https-flood (cc) attack.
GNU General Public License v2.0
942 stars 416 forks source link

(low priority) ssl method deprecated #105

Closed vervoortkobe closed 1 year ago

vervoortkobe commented 1 year ago

I get these errors: C:\cc-attack\cc.py:253: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated. ctx = ssl.SSLContext() C:\cc-attack\cc.py:253: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated ctx = ssl.SSLContext() when I run: python3 ./cc.py -url https://url -down -f proxy.txt -v 5 -s 180 -b 1

swordapi commented 1 year ago

Yeah me too but not always im not sure if its the websites fault

vervoortkobe commented 1 year ago

No, i'm quite sure it's not a bug provided by a website. This warning shows up only when you're trying to attack https (443), but not for http, as it's related to SSL/TLS (ssl.SSLContext(), ssl.PROTOCOL_TLS). One of the used libraries' methods was deprecated as we can see from the error. I recommend that Leeon123 just has to update this project to use the newer version of the library...

Although this error appears, there's nothing wrong with the code and I can confirm this project works (both with http and https)!

Leeon123 commented 1 year ago

Not a big deal. It is fixed in latest pre-release.