Closed ThePirateWhoSmellsOfSunflowers closed 7 years ago
Goddammit, José! Thanks for the issue, I'll try to fix it this weekend.
Cheers,
Y
Should be fixed now:
$ ./pywerview.py invoke-userhunter -t 192.168.47.132 -w uselessdomain.local -u root -p "awesomepassword" --username josé --computername 192.168.47.132
computername: 192.168.47.132
localadmin:
sessionfrom: 192.168.47.1
userdomain: uselessdomain.local
username: JOSÉ
Let me know if you have more problems. Cheers!
Y
Zblah !
Once again, encoding error (develop branch)
$ ./pywerview.py invoke-userhunter -u Administrator -p password -w domain.local --username josé --dc-ip 172.16.0.1
Oh come on José, get your shit together !
It's beacause here : https://github.com/the-useless-one/pywerview/blob/master/pywerview/worker/hunting.py#L83 you compare
str
object withunicode
object. (The line numbers in the example above is wrong)After some tests, this works for me :
if "".format(target_user.membername.lower()) in username.lower():
orif target_user.membername.lower() in unicode(username.lower(), 'utf-8'):
But I'm sure you have a better solution :smile:(icym : https://stackoverflow.com/a/35444608)
Big Up :cactus: