byt3bl33d3r / CrackMapExec

A swiss army knife for pentesting networks
BSD 2-Clause "Simplified" License
8.41k stars 1.64k forks source link

crackmapexec /usr/lib/python3/dist-packages/pywerview/requester.py:144: SyntaxWarning: "is not" with a literal. Did you mean "!="? if result['type'] is not 'searchResEntry': #756

Closed 1Freezer closed 1 year ago

1Freezer commented 1 year ago

Describe the bug I can not use crackmapexec due this issue

To Reproduce Steps to reproduce the behavior:

  1. Go to 'terminal'
  2. Write crackmapexec smb IP
  3. See error

Expected behavior I need to use crackmapexec but I can not, i would like to fix this error

Screenshots image

Crackmapexec info

Additional context I tried to fix it by seeing the code, go to the file, and you have this code image I tried writing != instead "is not", and then I tried to do it, nothing happens,I have no the error, but crackmapexec do nothing now, whitout any request

NeffIsBack commented 1 year ago

Please update crackmapexec, your version is way out of date. This Syntax version is fixed for several versions