You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of non ascii characters (maudits français) in the group name or the description, PywerView is not able to diplay them. Same problem in get-netshare.
Affected functions : get-netlocalgroup and get-netshare (but maybe in others too)
Traceback (most recent call last):
File "./pywerview.py", line 285, in
print '\n\n'.join(str(x) for x in results)
File "./pywerview.py", line 285, in
print '\n\n'.join(str(x) for x in results)
File "/home/x/tools/pywerview/pywerview/rpcobjects.py", line 50, in str
s += '{}: {}{}\n'.format(member[0], ' ' * (max_length - len(member[0])), member[1])
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe8' in position 56: ordinal not in range(128)
COMPUTER01.domain.lan Administrateurs S-X-X-XX-XXX Les membres du groupe Admi...
COMPUTER01.domain.lan Duplicateurs S-X-X-XX-XXX Prend en charge la réplica...
COMPUTER01.domain.lan Invités S-X-X-XX-XXX Les membres du groupe Invi...
[..]
Traceback (most recent call last):
File "./pywerview.py", line 285, in
print '\n\n'.join(str(x) for x in results)
File "./pywerview.py", line 285, in
print '\n\n'.join(str(x) for x in results)
File "/home/x/tools/pywerview/pywerview/rpcobjects.py", line 50, in str
s += '{}: {}{}\n'.format(member[0], ' ' * (max_length - len(member[0])), member[1])
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in position 15: ordinal not in range(128)
Yes, "I'm fear of encoding" too 😛, but this commit should fix the issue. The encoding problem was only present when using RPC communications (impacket's LDAP seems to better handle encoding).
I also had to change how results were printed, so I took the opportunity to close #9 too.
Hope this works, if anyone else has a problem, feel free to reopen the issue.
Hi dude !
Because of non ascii characters (maudits français) in the group name or the description, PywerView is not able to diplay them. Same problem in
get-netshare
.Affected functions :
get-netlocalgroup
andget-netshare
(but maybe in others too)PywerView
$ ./pywerview.py get-netlocalgroup -w DOMAIN.lan -u administrator -p p@ssw0rd --dc-ip DC.domain.lan --computername COMPUTER01.domain.lan --list-groups
Powerview
PS C:\Users\administrator> Get-NetLocalGroup -ComputerName COMPUTER01.domain.lan -ListGroup
PywerView
$ ./pywerview.py get-netshare -w DOMAIN.lan -u administrator -p p@ssw0rd --computername COMPUTER01.domain.lan
Powerview
PS C:\Users\administrator> get-netshare -ComputerName COMPUTER01.domain.lan
(Oh for f*** sake's Github...)
By the way awesome tool ahah 👍
"I'm fear of encoding"
The text was updated successfully, but these errors were encountered: