m0rtem / CloudFail

Utilize misconfigured DNS and old database records to find hidden IP's behind the CloudFlare network
MIT License
2.18k stars 463 forks source link

SyntaxWarning: "is not" with a literal. Did you mean "!="? #82

Open jack3841 opened 1 year ago

jack3841 commented 1 year ago

upon running the command, I am getting below errors

python3 cloudfail.py --target seo.com
/home/kali/CloudFail/cloudfail.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="? while choice is not 'y' and choice is not 'n': /home/kali/CloudFail/cloudfail.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="? while choice is not 'y' and choice is not 'n': /home/kali/CloudFail/cloudfail.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="? while choice is not 'y' and choice is not 'n': /home/kali/CloudFail/cloudfail.py:180: SyntaxWarning: "is not" with a literal. Did you mean "!="? while choice is not 'y' and choice is not 'n': /home/kali/CloudFail/cloudfail.py:182: SyntaxWarning: "is" with a literal. Did you mean "=="? if choice is 'y': Traceback (most recent call last): File "/home/kali/CloudFail/cloudfail.py", line 9, in import socks File "/home/kali/CloudFail/socks.py", line 62, in from collections import Callable ImportError: cannot import name 'Callable' from 'collections' (/usr/lib/python3.10/collections/init.py) ~}}

benborges commented 1 year ago

Same, on arch, python3, requirements installed fine

Aholicknight commented 1 year ago

Having the same error, did anyone find a fix?

Fojx commented 1 year ago

Hello, if you are using python3 then you can fix this by with edit socks.py file. You need to change the line 62

Replace this "from collections import Callable" with this "from collections.abc import Callable"

Or just run this sed -i 's/from collections import Callable/from collections.abc import Callable/g' socks.py

But please, remember this is temporary solution, Zamanry has an open PR about this, so when this pr will merge you can just pull this

Aholicknight commented 1 year ago

Hello, if you are using python3 then you can fix this by with edit socks.py file. You need to change the line 62

Replace this "from collections import Callable" with this "from collections.abc import Callable"

@Fojx Thank you for your comment. After some time tinkering around, it now works, even with GitHub actions.