avonar / impacket

Automatically exported from code.google.com/p/impacket
Other
0 stars 0 forks source link

Services.py pass the hash causes an error #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Latest stable version of impacket (0.9.11) has a small bug in services.py that 
causes an error when you try to pass the hash:

Impacket v0.9.11 - Copyright 2002-2014 Core Security Technologies

Traceback (most recent call last):
  File "./services.py", line 315, in <module>
    services = SVCCTL(username, password, domain, options)
  File "./services.py", line 46, in __init__
    self.__lmhash, self.__nthash = hashes.split(':')
NameError: global name 'hashes' is not defined

On line 46 in services.py:

self.__lmhash, self.__nthash = hashes.split(':')

should be:

self.__lmhash, self.__nthash = options.hashes.split(':')

Original issue reported on code.google.com by jsp5...@gmail.com on 8 Apr 2014 at 2:57

GoogleCodeExporter commented 9 years ago
Hey mate..

thanks for the bug report!.. I just fixed it based on your input.. Let me know 
if it works as expected.

https://code.google.com/p/impacket/source/detail?r=1203

thanks again!
beto

Original comment by bet...@gmail.com on 8 Apr 2014 at 3:06

GoogleCodeExporter commented 9 years ago
Looks like pth works fine now. 

Thanks a lot.

Original comment by jsp5...@gmail.com on 8 Apr 2014 at 3:41

GoogleCodeExporter commented 9 years ago
Thanks to you man!

cheers
beto

Original comment by bet...@gmail.com on 8 Apr 2014 at 3:44