the-useless-one / pywerview

A (partial) Python rewriting of PowerSploit's PowerView
GNU General Public License v3.0
924 stars 114 forks source link

Kali 2020 compatibility #38

Closed Chantal2019 closed 2 years ago

Chantal2019 commented 4 years ago

it does not work with either python 2.7 or 3 in new kali

raceback (most recent call last): File "pywerview.py", line 21, in from pywerview.cli.main import main File "/root/HADES/pywerview-fix_preauth/pywerview/cli/main.py", line 22, in from pywerview.cli.helpers import * File "/root/HADES/pywerview-fix_preauth/pywerview/cli/helpers.py", line 21, in from pywerview.functions.net import NetRequester File "/root/HADES/pywerview-fix_preauth/pywerview/functions/net.py", line 22, in from impacket.dcerpc.v5.ndr import NULL ImportError: No module named impacket.dcerpc.v5.ndr

Chantal2019 commented 4 years ago

and python3 Traceback (most recent call last): File "pywerview.py", line 21, in from pywerview.cli.main import main File "/root/HADES/pywerview-fix_preauth/pywerview/cli/main.py", line 467 print x ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(x)?

ThePirateWhoSmellsOfSunflowers commented 4 years ago

Hi, On your first post, impacket (python 2 version) seems not be installed on your machine. On your second post, you try to execute a python 2 script with python 3, hence the error.

:sunflower:

the-useless-one commented 4 years ago

Hi @Chantal2019,

We're in the middle of porting pywerview to Python 3 (see the PR here), but there are still some bugs we need to iron out (see the PR here).

Thanks for your patience while we try to fix this stuff!

Cheers,

Y

Chantal2019 commented 4 years ago

Thank you so much guys ::)

the-useless-one commented 2 years ago

Hi @Chantal2019,

pywerview is now Python 3 compatible and works in Kali 2022. Closing.