MatrixTM / MHDDoS

Best DDoS Attack Script Python3, (Cyber / DDos) Attack With 56 Methods
MIT License
12.49k stars 2.6k forks source link

[BUG Report]:invalid escape sequence '\d' IP = compile("(?:\d{1,3}\.){3}\d{1,3}") arch linux #555

Closed s-b-repo closed 3 months ago

s-b-repo commented 3 months ago

Version

2.4 (Default)

Which section is the problem?

Tools

Please complete the following information

SyntaxWarning: invalid escape sequence '\d'
  IP = compile("(?:\d{1,3}\.){3}\d{1,3}")
/home/lolilover/tools/MHDDoS-main/start.py:169: SyntaxWarning: invalid

To resolve the error  you need to escape the backslashes in your regular expression pattern. Here's the corrected code:

class Tools:
    IP = compile("(?:\\d{1,3}\\.){3}\\d{1,3}")
    protocolRex = compile('"protocol":(\\d+)')

What happened (Describe the bug) ?

A bug happened!

Screenshots

none

Please provide a link to a minimal reproduction of the bug

No response

Relevant log output

No response

Additional context

No response

Your code

No response

s-b-repo commented 3 months ago

irs a bug not as planned lol

mreduar commented 2 months ago

@s-b-repo Did you solve the problem? I am experiencing the same problem